Build process never finishes

Hi there,

Lately I’ve found that I cannot build my game into an .exe to test with.

After pressing [Build] and selecting where to save the executable, the build process hangs somewhere in between and never recovers. It usually freezes when it is “Building level X” but has (just now, actually) also frozen on the “Building Resources Folder” stage. In order to use Unity again, I’ll actually have to end the process.

The target platform is Windows, x86. Development build, autoconnect profiler and script debugging are all disabled.

Restarting the computer does not solve the problem. Other than Unity, no code or asset editors are open, though we are using Git which sometimes have background processes running that can interfere with a build. TGitCache.exe can cause a build to freeze, though it recovers when killing that process, but in this case it isn’t running.

Building with more or fewer levels can improve it’s odds of finishing. An empty level will build in under a minute.

Why did this start happening? Does anyone else have experience with Unity not being able to build out of the blue? Does Git have anything to do with it? What solved the problem?

Thanks! :smile:

I had a few problems like this. One time it got so bad that I got an ice pack and put it under my computer for it to cool down. I would check in the build settings, see if there is anything wrong there.

I narrowed down the cause of the freeze-up. It turns out when I had a uLink prefab registration object in one level, it’d never finish building. I’d have to move it into another level and then it’d work.

Doesn’t make sense. :confused: