- Home /
Crash On MonoBehaviour::RebuildMonoInstance before scene finishes loading.
Our iOS project is no longer able to run, and we're unsure as to what the issue might be. We have the same problem on multiple machines. We are both running XCode 4.5.2 and 3.5.6f4. The game runs fine in the editor or JIT, but AOT-compiled code for iOS causes the game to crash as soon as it attempts to initialize any monobehaviour.
Here is the stack trace from XCode: https://www.evernote.com/shard/s219/...17fff1191372d3
And here's me handtyping it out: mono_runtime_invoke mono_runtime_object_init_exception MonoBehaviour::RebuildMonoInstance MonoBehaviour::SetScript void MonoBehaviour::VirtualRedirectTransfer SerializedFile::ReadObject PersistentManager::LoadFileCompletely PreloadLevelOperation::Perform PreloadManager::Run PreloadManager::Run(void *) Thread::RunThreadWrapper()
Our current theory is that there is a bug in the AOT compiler that is causing the initialization of the MonoBehaviour to throw a null exception. This occurs with any monobehaviour in our (large) project. By removing all 2400 C# files from the project and putting a test C# behaviour in a scene we do not get the error.
Has anyone seen something like this? Any thoughts on how to fix this would be much appreciated!
Your answer
Follow this Question
Related Questions
Unity crashes on startup 2 Answers
iPad: Line Renderer causes crash on on startup 0 Answers
Unity now crashes on startup loading ANY png file 0 Answers
Android game crash startup 0 Answers
Unity crash on startup OS X 10.7.3 1 Answer