I’m using Unity for Android. As soon as the last scene finishes building, it will flash the next part of the build process for a single frame and the editor will close. There is no error message and the unity bug reporter does not open. The crashing happens most of the time but I can still successfully build occasionally.
I have found that three things appear to help, although I have no idea why:
moving items from the resources folder to other folders (not an option for the remaining assets I have)
deleting assets completely (they were unused in the first place so not sure why this helps)
Closing other things in the task manager (not sure why this helps, unity never goes above 450mb of RAM used throughout the entire build process and I always have plenty of RAM)
Has anyone else experienced this? This is a major setback for my project, and I’m at a loss as to what to do. Thanks in advance for your help!
I have moved almost all assets that were previously in the resources folder to just regular asset folders, and the privlep persists. This is a major setback. Does anyone have any ideas?
I’m using Unity 5.5.1. The problem does not occur with an empty project and I have not been able to reproduce it outside of my current project, so it looks like I will have no choice but to send the entire project.
I can’t find anything that could relate to the issue I’m experiencing. I will send in my project, which I’ve been holding off on because it isn’t small and I haven’t been able to reproduce with small projects.
It may be an asset problem, but I’m unsure of why this would happen. The problem suddenly began (I used to be able to consistently build successfully) and I can still sometimes on rare occasions get a successful build. Reimporting assets and also trying to copy all assets to a new project did not help.
I’m not on my computer at the moment, I will find the log when I can. If my memory serves me correctly I tried inspecting the log several weeks ago and it just abruptly ended with no indication of an error-I will find it anyways. This error is particularly strange because the bug reporter does not automatically open like it usually does with other errors; instead, unity just closes as if someone used the task manager to end the process. Fortunately I haven’t lost any data from the crashes.
Unloading 160 unused Assets to reduce memory usage. Loaded Objects now: 6294.
Total: 25.299026 ms (FindLiveObjects: 1.414355 ms CreateObjectMapping: 0.417511 ms MarkObjects: 21.609381 ms DeleteObjects: 1.851422 ms)
Shader 'Custom/Cars/Paint/Gloss/Procedural Textured': fallback shader 'Custom/Cars/Paint/VertexLit' not found
Shader 'Custom/Cars/Rim': fallback shader 'Custom/Cars/VertexLit' not found
Shader 'Custom/Cars/Paint/Metallic/Colored Decal': fallback shader 'Custom/Cars/Paint/VertexLit' not found
Opening scene 'Assets/Levels/Prefabs/Scenes/Race90.unity'
Load scene 'Assets/Levels/Prefabs/Scenes/Race90.unity' time: 0.022488 ms
Unloading 58 Unused Serialized files (Serialized files now loaded: 0)
System memory in use before: 80.6 MB.
System memory in use after: 80.8 MB.
Unloading 1180 unused Assets to reduce memory usage. Loaded Objects now: 6967.
Total: 27.664270 ms (FindLiveObjects: 1.974133 ms CreateObjectMapping: 0.586666 ms MarkObjects: 22.130535 ms DeleteObjects: 2.966578 ms)
Opening scene 'Assets/Levels/Prefabs/Scenes/Race95.unity'
Load scene 'Assets/Levels/Prefabs/Scenes/Race95.unity' time: 0.024933 ms
Unloading 23 Unused Serialized files (Serialized files now loaded: 0)
WARNING: ETC2 texture format is not supported, decompressing texture
WARNING: ETC2 texture format is not supported, decompressing texture
System memory in use before: 87.9 MB.
System memory in use after: 88.8 MB.
Unloading 1878 unused Assets to reduce memory usage. Loaded Objects now: 14894.
Total: 39.460670 ms (FindLiveObjects: 3.592844 ms CreateObjectMapping: 1.625066 ms MarkObjects: 27.816803 ms DeleteObjects: 6.419600 ms)
These are the last lines of the logs. It always fails after the very last scene in my project finishes building. As you can see, there is no indication anywhere of a crash-the log just abruptly ends.
Seems like one of your object failed in serialization.
If you clean build every time, does it reproduces every time?
And it worths a try in 5.6 while you are waiting support reply.
Sorry, I don’t understand-what do you mean by clean build? I looked online and could only find information on clean cloud builds, but I am not using cloud builds.
Interesting…I have narrowed the crash down to one specific scene. The scene is a race (my game is a racing game) and it also happens to be the longest race so far with over 1000 checkpoints. If I exclude it from the build the build works. If I exclude any other scene but leave this scene in, the build fails.