I’m no longer able to make a standalone build of my project as the build freezes after light baking at ‘Building scene 0:’. There is no information in the Editor.log after the lighting completes and no indication there of what the problem might be. I’ve tried checking out older versions of my project from git and haven’t yet found one that I’m able to build successfully despite the fact that builds were working until quite recently.
Is there anything I can do to try and debug this problem? I’ve searched here and on google and found other people reporting build freezes at this point in the build but have not found anything that has helped me get to the bottom of my problem.
I’m on Unity 5.3.4p1.
Edit
I found a git submit that appears to have been the one that caused the standalone builds to stop working but I can’t see anything obvious that changed to cause the problem. The submit had a few changes to the scene and some minor edits to a C# script. I’ve made a lot of further submits since and so can’t easily revert the scene changes now and I’m pretty sure the script changes are not the issue.
Update
I’m pretty baffled by the behavior I’ve been seeing. I thought maybe some temporary files or cached data was corrupt so I deleted the entire project directory and re-synced from Git. I cleared the GI cache as well in case there was something corrupt there. The build still froze.
I then started going through and deleting elements from the scene one at a time to try and identify a game object that was perhaps causing the build to freeze. I eventually deleted something and got a successful build. Thinking I’d found the culprit, I reverted my changes and tried to build again and it succeeded.
I’m now in a situation where there are no local changes from what’s checked in to git but the build is working again. This seems very odd and I don’t know if there’s some hidden or cached data somewhere that’s changed as a result of me deleting an object even though those changes were later reverted. My build is working again for now but I’ve still no idea what the source of the problem is and whether the same process will fix it if it happens again.