I’ve just discovered a new issue since switching to Unity 5.
My project has no errors etc in the Editor - all works fine. When I create a Mac OS build however (Universal, x86_64, doesn’t matter), and then run the game - it consistently freezes when loading into new scenes, or sometimes once a scene is loaded and I click the mouse on a button or something. I have to Force Quit it to get out.
If I create a Development Build, it all works perfectly in the resulting app file.
Anyone experienced anything similar or maybe have some ideas on what might be causing it?
I was experiencing the same bug. My project was using the third party plugin NGUI and I replicated it by having two panels that activate and de-activate the two pannels with button presses. I could not replicate the same issue with Unity UI. Strangely, I was able to work around the issue with this little bit of code:
Are you sure that the game is frozen? I experience something similar using Unity 5.0 on Mavericks. In the Editor my Arch Viz project works fine, but the exported build just stays black after the splash screen. The game is there however, since I can here the sound. CPU load goes up to 100% and I can only force-quit out.
In the Editor, I got another error: When I use LoadLevel(int) the pre-computed GI doesn’t kick in, all the colors are garbled.
Both errors go away when I use real-time lighting only.
I might try using a dev build in 5.0, then I will try 5.0.1 soon to see if the update improved things.
In my case, yes - the game freezes completely. It has to be “Force Killed” through Finder.
What’s interesting is that it seems to happen in the same spot in each scene where it happens. e.g. my “MainMenu” scene loads up fine and has no issues running. If I go into my “Credits” scene, it freezes almost immediately. If instead, I go into my “PartyBuilder” scene (I’m building an RPG), then it doesn’t freeze until I try to click a button.
The common element is NGUI. Maybe there is something going to there.
I’ll open a thread on the NGUI forum and link it back here just in case.
We are having the exact same issue on a Mac OX 10.10, on Yosemite, it’s extremely hard to track and frustrating to debug. In our case we are using DFGUI.
The line Receiving unhandled NULL exception Obtained 10 stack frames. is printed in our logs but no stack frames are…
Has it been reported by someone yet? Otherwise I’ll do it.
@Rene-Damm @
P.-S. By the way, why is there a forum if you guys (Unity people) will not look at the problem until there is a bug reported? You lost 1 month of potential time to fix the issue, this is ridiculous and makes this forum useless.
The bug is still there. I’ve tried 5.2.0f2 (beta) and bug is partly resolved, i.e. it works only for x64 build.
We cannot send a final release to our publisher because of this. 5.1 is crashing and 5.2 is still beta.
Do you, by chance, know how to remove “development build” inscription?
Same experience here with 5.1.2p1, the OSX standalone version runs only under Development Build, and I have no NGUI plugin in the project. To be honest, the project contains no plugins at all, but I am using a lot of Unity UI.