Windows build stops at around 15%

I try to build a game, but it doesn’t go beyond ~15%. The small Building Player window with the progress bar says Build Player. I even can’t cancel it.
I also get two errors:

StackOverflowException: The requested operation caused a stack overflow.
UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) (at <83a73882c51c4602b3d34743827d03e7>:0)
TLS Allocator ALLOC_TEMP_THREAD, underlying allocator ALLOC_TEMP_THREAD has unfreed allocations, size 30557

Unity version is 2019.3.0f3

I hope someone can help with that problem. :-/

Does nobody know a solution for this?

Suggestions:

  • You’re using a Beta version of Unity, not an official release. Either stick to 2019.2 until 2019.3 is released, or you can try updating to a newer beta/RC of 2019.3 to see if they’ve fixed this.
  • This link (Reddit - Dive into anything) suggest you do a Reimport All. It’s an ancient thread, but it’s worth a try.
  • See if the issue happens in a brand new project. If not, then you might need to try to triangular the issue in your build by building only a subset of your scenes until it breaks.