Since updating to 5.3.2 (from 5.2), my game often crashes when entering play mode. It doesn’t happen always, but around one time every 5 starts, which is obviously very annoying. Any ideas what could cause it?
Receiving unhandled NULL exception
Launching bug reporter
Obtained 32 stack frames.
#0 0x007fff9503ca78 in _platform_memmove$VARIANT$Nehalem
#1 0x00000100be7ad0 in std::basic_string<char, std::char_traits<char>, stl_allocator<char, (MemLabelIdentifier)1, 16> >::_Rep::_M_clone(stl_allocator<char, (MemLabelIdentifier)1, 16> const&, unsigned long)
#2 0x00000100ffea8e in std::basic_string<char, std::char_traits<char>, stl_allocator<char, (MemLabelIdentifier)1, 16> > std::operator+<char, std::char_traits<char>, stl_allocator<char, (MemLabelIdentifier)1, 16> >(char const*, std::basic_string<char, std::char_traits<char>, stl_allocator<char, (MemLabelIdentifier)1, 16> > const&)
#3 0x000001011957fc in GetMiniMemoryOverview()
#4 0x0000010243952b in ProfilerDriver_Get_Custom_PropMiniMemoryOverview()
#5 0x00000124de823a in (wrapper managed-to-native) UnityEditorInternal.ProfilerDriver:get_miniMemoryOverview () + 0x8a (0x124de81b0 0x124de8269) [0x116cd1660 - Unity Child Domain]
#6 0x00000124de80d1 in UnityEditor.AppStatusBar:OnInspectorUpdate () + 0x51 (0x124de8080 0x124de81a0) [0x116cd1660 - Unity Child Domain]
#7 0x00000117e1d38a in (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) + 0xfa (0x117e1d290 0x117e1d4bd) [0x116cd1660 - Unity Child Domain]
#8 0x00000109b5d10c in mono_get_runtime_build_info
#9 0x00000109c8b3f6 in mono_runtime_invoke
#10 0x00000101155d0a in ScriptingInvocation::Invoke(MonoException**, bool)
#11 0x00000101156e5b in ScriptingInvocationNoArgs::InvokeChecked()
#12 0x0000010112ddc1 in MonoBehaviour::CallMethodInactive(ScriptingMethodMono)
#13 0x0000010112e895 in MonoBehaviour::CallMethodInactive(char const*)
#14 0x00000101b62917 in SceneTracker::TickInspector()
#15 0x000001019e45f7 in Application::TickTimer()
#16 0x007fff9523a85b in __NSFireTimer
#17 0x007fff93471bc4 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
#18 0x007fff93471853 in __CFRunLoopDoTimer
#19 0x007fff934efe6a in __CFRunLoopDoTimers
#20 0x007fff9342ccd1 in __CFRunLoopRun
#21 0x007fff9342c338 in CFRunLoopRunSpecific
#22 0x007fff82b9e935 in RunCurrentEventLoopInMode
#23 0x007fff82b9e76f in ReceiveNextEventCommon
#24 0x007fff82b9e5af in _BlockUntilNextEventMatchingListInModeWithFilter
#25 0x007fff8fd610ee in _DPSNextEvent
#26 0x007fff9012d943 in -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
#27 0x007fff8fd56fc8 in -[NSApplication run]
#28 0x007fff8fcd9520 in NSApplicationMain
#29 0x00000101c47d5e in EditorMain(int, char const**)
#30 0x00000101c48419 in main
#31 0x00000100002a74 in start
WSAIoctl: Need to translate 6 [(null)] into winsock error
Launching external process: /Applications/Unity 5.3.2f1/Unity.app/Contents/BugReporter/Unity Bug Reporter.app/Contents/MacOS/unity.bugreporter.exe
Here’s another crash report:
Process: Unity [13180]
Path: /Applications/Unity 5.3.2f1/Unity.app/Contents/MacOS/Unity
Identifier: com.unity3d.UnityEditor5.x
Version: Unity version 5.3.2f1 (5.3.2f1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Unity [13180]
User ID: 501
Date/Time: 2016-02-01 15:20:08.401 +0100
OS Version: Mac OS X 10.11.2 (15C50)
Report Version: 11
Anonymous UUID: AFB72A68-0F2F-1773-E344-45929B573BAA
Sleep/Wake UUID: 1C38BF07-7A39-44F7-A797-A24918A7A975
Time Awake Since Boot: 90000 seconds
Time Since Wake: 10000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0x8:
-->
__TEXT 0000000100000000-0000000103378000 [ 51.5M] r-x/rwx SM=COW /Applications/Unity 5.3.2f1/Unity.app/Contents/MacOS/Unity
Application Specific Information:
abort() called
Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff80fab002 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff8a1c05c5 pthread_kill + 90
2 libsystem_c.dylib 0x00007fff94d206e7 abort + 129
3 com.unity3d.UnityEditor5.x 0x000000010113a767 HandleSignal(int, __siginfo*, void*) + 359
4 libmono.0.dylib 0x0000000109c166f9 mono_chain_signal + 75
5 libmono.0.dylib 0x0000000109b5b491 mono_sigsegv_signal_handler + 210
6 libsystem_platform.dylib 0x00007fff9503feaa _sigtramp + 26
7 libmono.0.dylib 0x0000000109b5d10c 0x109b53000 + 41228
8 com.unity3d.UnityEditor5.x 0x0000000100f993aa Transform::SetHideFlags(int) + 186
9 com.unity3d.UnityEditor5.x 0x0000000100c2250f Unity::GameObject::SetHideFlags(int) + 207
10 com.unity3d.UnityEditor5.x 0x0000000100d271a7 AwakeAndActivateClonedObjects(vector_map<int, int, std::less<int>, stl_allocator<std::pair<int, int>, (MemLabelIdentifier)1, 16> > const&) + 151
11 com.unity3d.UnityEditor5.x 0x0000000100d272e9 CloneObject(Object&) + 153
12 com.unity3d.UnityEditor5.x 0x0000000101cad881 Object_CUSTOM_Internal_CloneSingle(ReadOnlyScriptingObjectOfType<Object>) + 97
13 ??? 0x0000000124abbff2 0 + 4910202866
14 ??? 0x0000000124abbe31 0 + 4910202417
15 ??? 0x0000000124abba05 0 + 4910201349
16 ??? 0x000000011808338a 0 + 4698157962
17 libmono.0.dylib 0x0000000109b5d10c 0x109b53000 + 41228
18 libmono.0.dylib 0x0000000109c8b3f6 mono_runtime_invoke + 117
19 com.unity3d.UnityEditor5.x 0x0000000101155d0a ScriptingInvocation::Invoke(MonoException**, bool) + 74
20 com.unity3d.UnityEditor5.x 0x0000000101130704 MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodMono, MonoObject*, MonoException**) + 1748
21 com.unity3d.UnityEditor5.x 0x00000001011309c8 MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodMono, MonoObject*) + 264
22 com.unity3d.UnityEditor5.x 0x0000000100d2666a DelayedCallManager::Update(int) + 762
23 com.unity3d.UnityEditor5.x 0x000000010100a416 PlayerLoop(bool, bool, IHookEvent*) + 1030
24 com.unity3d.UnityEditor5.x 0x00000001019e7a68 Application::UpdateScene(bool) + 680
25 com.unity3d.UnityEditor5.x 0x00000001019e4fb9 Application::UpdateSceneIfNeeded() + 89
26 com.unity3d.UnityEditor5.x 0x00000001019e4647 Application::TickTimer() + 2919
27 com.apple.Foundation 0x00007fff9523a85b __NSFireTimer + 95
28 com.apple.CoreFoundation 0x00007fff93471bc4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
29 com.apple.CoreFoundation 0x00007fff93471853 __CFRunLoopDoTimer + 1075
30 com.apple.CoreFoundation 0x00007fff934efe6a __CFRunLoopDoTimers + 298
31 com.apple.CoreFoundation 0x00007fff9342ccd1 __CFRunLoopRun + 1841
32 com.apple.CoreFoundation 0x00007fff9342c338 CFRunLoopRunSpecific + 296
33 com.apple.HIToolbox 0x00007fff82b9e935 RunCurrentEventLoopInMode + 235
34 com.apple.HIToolbox 0x00007fff82b9e76f ReceiveNextEventCommon + 432
35 com.apple.HIToolbox 0x00007fff82b9e5af _BlockUntilNextEventMatchingListInModeWithFilter + 71
36 com.apple.AppKit 0x00007fff8fd610ee _DPSNextEvent + 1067
37 com.apple.AppKit 0x00007fff9012d943 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
38 com.apple.AppKit 0x00007fff8fd56fc8 -[NSApplication run] + 682
39 com.apple.AppKit 0x00007fff8fcd9520 NSApplicationMain + 1176
40 com.unity3d.UnityEditor5.x 0x0000000101c47d5e EditorMain(int, char const**) + 1374
41 com.unity3d.UnityEditor5.x 0x0000000101c48419 main + 9
42 com.unity3d.UnityEditor5.x 0x0000000100002a74 start + 52
Make sure to update your code to account for the way Unity uses scenes. They changed things from using Application.LoadLevel to SceneManager.LoadScene. Check out all the Scene Manager changes, you might find what you are looking for.