My project is instantly crash when I launch it. My object aren’t sorted by Alphabetical order (so it’s not the DontDestroyOnLoad issue).
Here is my crash log. Anyone experienced crash issue ? Two project of our team can’t run Unity 5.2 without a crash in a minute in the editor, or instant crash by pressing play.
We are pretty disappointed here as all unity upgrades since 5.0 never doing bad stuff like this in the past.
EDIT 1 : More information, we figure out that we crash when we are changing scene. I’m still investigate.
EDIT 2 : We found the issue : if Application.LoadLevel is called in Start(), the editor crash. I’m looking for a test project for issue tracker
EDIT 3 : We reproduce it :
Make two scenes
Import some images, set in Sprite mode
Right click on scene → UI → Image, it wille create a simple canvas with an image inside
Put one of the image imported on the Image component
Make a script that do Application.LoadLevel(“Scene2”) on Start
I noticed that you can also simply replace Application.LoadLevel (“yourscene”) in Start() with Application.LoadLevelAsync (“yourscene”). That stopped the crashes for me.
Same with crash here after upgrading to 5.2.1f1 from 5.1.something, i enabled a game object that was responsible for changing scenes and editor crashes.
Compiled version does not crash but compiling doesn’t help testing.
Whatever you changed in the last update most probably broke it.
Application.LoadLevel crashes if it’s called at Start or Update BUT it WORKS if it’s called on Awake.
LoadLevelAsync works EVERYWHERE. This is not a solution however
This problem also persists with the latest patch release 5.2.1p2 . I also still have to use async load at the moment to not crash the editor. @phil-Unity , could you kindly recheck on your statement that there is a fix somewhere and the state of its integration in a future release? Thanks!