Hard crash after update to RC1

After updating to RC1 our project will crash immediately on playback. Still trying to figure out why, but regardless of what it is and whether we did something to cause it a hard crash should not happen.

Packing sprites:
- Importing Assets/GUI/textures/tab1_off.psd.

Hashing assets ... 0.000396 seconds
Updating Assets/GUI/textures/tab1_off.psd - GUID: 54d87201c5d4f48ceb2d9dfd25633a11...
done. [Time: 19.909901 ms]

----- Total AssetImport time: 0.061810s, AssetImport time: 0.040888s, Asset hashing: 0.000445s [42.0 KB, 92.279640 mb/s]

!IsPersistent()
(Filename: /Applications/buildAgent/work/d63dfc6385190b60/Editor/Src/AssetPipeline/AssetImporter.cpp Line: 72)

Unknown NPOT scale mode
(Filename: /Applications/buildAgent/work/d63dfc6385190b60/Editor/Src/AssetPipeline/TextureImporter.cpp Line: 711)

m_CachedClassID != 0
(Filename: ./Runtime/BaseClasses/BaseObject.h Line: 472)

Receiving unhandled NULL exception
Launching bug reporter
Obtained 24 stack frames.
#0  0x000000004f09d0 in EventManager::InvokeEvent(EventEntry*, void*, int)
#1  0x000000004dea02 in delete_object_internal_step1(Object*)
#2  0x000000004ddeeb in UnloadObject(Object*)
#3  0x0000000162e9f2 in SpritePacker::RebuildAtlasCacheIfNeeded(BuildTargetPlatform, bool, SpritePacker::SpritePackerExecution, bool)
#4  0x0000000149e6f0 in Application::SetIsPlaying(bool)
#5  0x0000000149e01d in Application::TickTimer()
#6  0x0000000168d9a8 in -[EditorApplication TickTimer]
#7  0x0000009617776b in __NSFireTimer
#8  0x0000009b078ea6 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
#9  0x0000009b078863 in __CFRunLoopDoTimer
#10 0x0000009b0f306d in __CFRunLoopDoTimers
#11 0x0000009b030353 in __CFRunLoopRun
#12 0x0000009b02f9ea in CFRunLoopRunSpecific
#13 0x0000009b02f84b in CFRunLoopRunInMode
#14 0x00000099f99b5d in RunCurrentEventLoopInMode
#15 0x00000099f998e2 in ReceiveNextEventCommon
#16 0x00000099f996bd in _BlockUntilNextEventMatchingListInModeWithFilter
#17 0x00000090428349 in _DPSNextEvent
#18 0x00000090427870 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
#19 0x0000009041a15c in -[NSApplication run]
#20 0x00000090402ff8 in NSApplicationMain
#21 0x000000016a1e7b in EditorMain(int, char const**)
#22 0x000000016a25b8 in main
#23 0x00000000003975 in start

*** Launching bug reporter due to crashbug.
Obtained 29 stack frames.
0   Unity                               0x01685cb1 _Z17LaunchBugReporter13BugReportMode + 1073
1   Unity                               0x009441c5 _Z12HandleSignaliP9__siginfoPv + 53
2   libmono.0.dylib                     0x04423716 mono_chain_signal + 76
3   libmono.0.dylib                     0x0436e5f6 mono_sigsegv_signal_handler + 234
4   libsystem_platform.dylib            0x933bedeb _sigtramp + 43
5   ???                                 0xffffffff 0x0 + 4294967295
6   Unity                               0x004dea02 _Z28delete_object_internal_step1P6Object + 130
7   Unity                               0x004ddeeb _Z12UnloadObjectP6Object + 27
8   Unity                               0x0162e9f2 _ZN12SpritePacker25RebuildAtlasCacheIfNeededE19BuildTargetPlatformbNS_21SpritePackerExecutionEb + 2002
9   Unity                               0x0149e6f0 _ZN11Application12SetIsPlayingEb + 448
10  Unity                               0x0149e01d _ZN11Application9TickTimerEv + 2269
11  Unity                               0x0168d9a8 -[EditorApplication TickTimer] + 24
12  Foundation                          0x9617776b __NSFireTimer + 117
13  CoreFoundation                      0x9b078ea6 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
14  CoreFoundation                      0x9b078863 __CFRunLoopDoTimer + 1395
15  CoreFoundation                      0x9b0f306d __CFRunLoopDoTimers + 349
16  CoreFoundation                      0x9b030353 __CFRunLoopRun + 1779
17  CoreFoundation                      0x9b02f9ea CFRunLoopRunSpecific + 394
18  CoreFoundation                      0x9b02f84b CFRunLoopRunInMode + 123
19  HIToolbox                           0x99f99b5d RunCurrentEventLoopInMode + 259
20  HIToolbox                           0x99f998e2 ReceiveNextEventCommon + 526
21  HIToolbox                           0x99f996bd _BlockUntilNextEventMatchingListInModeWithFilter + 92
22  AppKit                              0x90428349 _DPSNextEvent + 1602
23  AppKit                              0x90427870 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
24  AppKit                              0x9041a15c -[NSApplication run] + 727
25  AppKit                              0x90402ff8 NSApplicationMain + 1165
26  Unity                               0x016a1e7b _Z10EditorMainiPPKc + 1339
27  Unity                               0x016a25b8 main + 24
28  Unity                               0x00003975 start + 53

I’m guessing its the SpritePacker (from the call stack). this is a known issue and has been fixed for RC2 from my knowledge.

Is there anything we can do to circumvent the problem until you let us have RC2? Our development depends a bit on a fix in RC1 (togglegroups losing their settings)…

Edit: Sigh…cleared out the workspace to get a fresh import from the repository. Once that is done I will try to disable sprite packing (think we have it set to always).

Check Updating from build 20 to RC1 = Editor always crashes in play mode. - Unity Engine - Unity Discussions for the workaround.

1 Like

Disabling the Sprite Packer solved the crash issue.

Indeed - reimporting sprites solves the problem as well. Since I had just pulled the full workspace from the rep I could reenable the SpritePacker without suffering the crash. Thanks! :slight_smile: