Editor consistently crashing when entering play mode (5.2.1 p2)

The editor is consistently crashing for us using a few different versions, all on Windows:

  • 5.2 p1
  • 5.2.1 p2

It occurs while modifying a prefab placed in a scene, applying changes to it and then hitting “Play”.

Is this a known bug ? if so, was it already fixed, or going to be fixed soon ?

Here is the stack trace i got using WinDbg, note it’s coming from DX11, which fits the description of reproducing only on Windows:

AULTING_IP:
d3d11!CreateDirect3D11SurfaceFromDXGISurface+7bef
00007ff9`ac9b79df 408ab0ea030000  mov     sil,byte ptr [rax+3EAh]

EXCEPTION_RECORD:  ffffffffffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 00007ff9ac9b79df (d3d11!CreateDirect3D11SurfaceFromDXGISurface+0x0000000000007bef)
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000000
NumberParameters: 2
   Parameter[0]: 0000000000000000
   Parameter[1]: 00000000000003ea
Attempt to read from address 00000000000003ea

FAULTING_THREAD:  00000000000021a0

DEFAULT_BUCKET_ID:  NULL_CLASS_PTR_READ

PROCESS_NAME:  Unity.exe

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_PARAMETER1:  0000000000000000

EXCEPTION_PARAMETER2:  00000000000003ea

READ_ADDRESS:  00000000000003ea

FOLLOWUP_IP:
d3d11!CreateDirect3D11SurfaceFromDXGISurface+7bef
00007ff9`ac9b79df 408ab0ea030000  mov     sil,byte ptr [rax+3EAh]

NTGLOBALFLAG:  0

APPLICATION_VERIFIER_FLAGS:  0

APP:  unity.exe

PRIMARY_PROBLEM_CLASS:  NULL_CLASS_PTR_READ

BUGCHECK_STR:  APPLICATION_FAULT_NULL_CLASS_PTR_READ

LAST_CONTROL_TRANSFER:  from 00007ff9aca5d511 to 00007ff9ac9b79df

STACK_TEXT: 
00000000`151fecc0 00007ff9`aca5d511 : 00000000`00000000 00000000`00000001 00000000`000001a8 00000000`03550f60 : d3d11!CreateDirect3D11SurfaceFromDXGISurface+0x7bef
00000000`151fecd0 00007ff9`ac9d22de : 00000000`0ef15f48 00000000`00000000 00000000`03550f60 00000000`00000066 : d3d11!CreateDirect3D11SurfaceFromDXGISurface+0xad721
00000000`151fed70 00000001`4027769f : 00000000`0ef15f30 00000000`07cb32e0 00000000`07cb4718 00000000`03220ba0 : d3d11!CreateDirect3D11SurfaceFromDXGISurface+0x224ee
00000000`151feda0 00000001`41412fc3 : 00000000`066325a0 00000000`151feef0 00000000`12ff9a40 00000000`03220ba0 : Unity!GeometryJobTasks::EndGeometryJobFrame+0xef
00000000`151fede0 00000001`41418a4f : ffffffff`fffffffe 00000001`405607d8 00000000`066325a0 00000000`03220ba0 : Unity!GfxDeviceWorker::RunCommand+0xfa3
00000000`151ffed0 00000001`41411576 : 00000000`066325a0 00000001`426d0601 00000001`4313d510 00000000`15209a10 : Unity!GfxDeviceWorker::Run+0x2f
00000000`151fff00 00000001`4055dc76 : 00000000`03220ba0 00000000`0322cae0 00000001`4055dc40 00000000`00000000 : Unity!GfxDeviceWorker::RunGfxDeviceWorker+0x46
00000000`151fff30 00007ff9`b4f02d92 : 00000001`4055dc40 00000000`00000000 00000000`00000000 00000000`00000000 : Unity!Thread::RunThreadWrapper+0x36
00000000`151fff60 00007ff9`b5709f64 : 00007ff9`b4f02d70 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0x22
00000000`151fff90 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x34


SYMBOL_STACK_INDEX:  0

SYMBOL_NAME:  d3d11!CreateDirect3D11SurfaceFromDXGISurface+7bef

FOLLOWUP_NAME:  MachineOwner

MODULE_NAME: d3d11

IMAGE_NAME:  d3d11.dll

DEBUG_FLR_IMAGE_TIMESTAMP:  559f39a5

STACK_COMMAND:  dt ntdll!LdrpLastDllInitializer BaseDllName ; dt ntdll!LdrpFailureData ; ~43s ; kb

FAILURE_BUCKET_ID:  NULL_CLASS_PTR_READ_c0000005_d3d11.dll!CreateDirect3D11SurfaceFromDXGISurface

BUCKET_ID:  APPLICATION_FAULT_NULL_CLASS_PTR_READ_d3d11!CreateDirect3D11SurfaceFromDXGISurface+7bef

WATSON_STAGEONE_URL:  http://watson.microsoft.com/StageOne/Unity_exe/5_2_1_35572/560a9bbd/d3d11_dll/10_0_10240_16384/559f39a5/c0000005/001379df.htm?Retriage=1

Followup: MachineOwner
---------

On OSX, this is the crash i am experiencing in the same scenario (attaching the full output as a file):

Crashed Thread:        0  CrBrowserMain  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000008

VM Regions Near 0x8:
-->
    __TEXT                 0000000100000000-000000010338a000 [ 51.5M] r-x/rwx SM=COW  /Applications/Unity_521/Unity.app/Contents/MacOS/Unity

Application Specific Information:
abort() called

Thread 0 Crashed:: CrBrowserMain  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib            0x00007fff96f63286 __pthread_kill + 10
1   libsystem_c.dylib                 0x00007fff971379b3 abort + 129
2   com.unity3d.UnityEditor5.x        0x0000000101062121 HandleSignal(int, __siginfo*, void*) + 385
3   libmono.0.dylib                   0x0000000109ceb50a mono_chain_signal + 71
4   libmono.0.dylib                   0x0000000109c38a33 mono_sigsegv_signal_handler + 213
5   libsystem_platform.dylib          0x00007fff9845ff1a _sigtramp + 26
6   com.unity3d.UnityEditor5.x        0x0000000100f46f91 MarkObjectAsRoot(Object const&, GarbageCollectorThreadState&) + 17
7   com.unity3d.UnityEditor5.x        0x0000000100ba4315 Unity::GameObject::MarkGameObjectAndComponentDependencies(GarbageCollectorThreadState&) const + 117
8   com.unity3d.UnityEditor5.x        0x0000000100f4720d MarkDependencies(GarbageCollectorThreadState&, unsigned int) + 93
9   com.unity3d.UnityEditor5.x        0x0000000100f4574b GarbageCollectSharedAssets(bool) + 2011
10  com.unity3d.UnityEditor5.x        0x0000000100f5c4f2 UnloadUnusedAssetsOperation::IntegrateMainThread() + 18
11  com.unity3d.UnityEditor5.x        0x0000000100f5783c PreloadManager::UpdatePreloadingSingleStep(PreloadManager::UpdatePreloadingFlags, int) + 540
12  com.unity3d.UnityEditor5.x        0x0000000100f583aa PreloadManager::UpdatePreloading() + 378
13  com.unity3d.UnityEditor5.x        0x0000000100f539b6 PlayerLoop(bool, bool, IHookEvent*) + 630
14  com.unity3d.UnityEditor5.x        0x00000001019af5b3 Application::UpdateScene(bool) + 547
15  com.unity3d.UnityEditor5.x        0x00000001019aaa94 Application::TickTimer() + 3220
16  com.apple.Foundation              0x00007fff8e622a23 __NSFireTimer + 95
17  com.apple.CoreFoundation          0x00007fff9449d2e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
18  com.apple.CoreFoundation          0x00007fff9449cf73 __CFRunLoopDoTimer + 1059
19  com.apple.CoreFoundation          0x00007fff9451053d __CFRunLoopDoTimers + 301
20  com.apple.CoreFoundation          0x00007fff94458608 __CFRunLoopRun + 2024
21  com.apple.CoreFoundation          0x00007fff94457bd8 CFRunLoopRunSpecific + 296
22  com.apple.HIToolbox               0x00007fff9724156f RunCurrentEventLoopInMode + 235
23  com.apple.HIToolbox               0x00007fff972412ea ReceiveNextEventCommon + 431
24  com.apple.HIToolbox               0x00007fff9724112b _BlockUntilNextEventMatchingListInModeWithFilter + 71
25  com.apple.AppKit                  0x00007fff8a33d8ab _DPSNextEvent + 978
26  com.apple.AppKit                  0x00007fff8a33ce58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
27  com.apple.AppKit                  0x00007fff8a332af3 -[NSApplication run] + 594
28  com.apple.AppKit                  0x00007fff8a2af244 NSApplicationMain + 1832
29  com.unity3d.UnityEditor5.x        0x0000000101bf2396 EditorMain(int, char const**) + 1494
30  com.unity3d.UnityEditor5.x        0x0000000101bf2be9 main + 9
31  com.unity3d.UnityEditor5.x        0x00000001000027c4 start + 52

2350405–159153–crash.txt (121 KB)

Hello! :smile: So sorry you are having so many issues. Have you submitted a bug report?? :slight_smile:

Yes you can have a look it is 737576

1 Like

Cool! Thank you so much @liortal :smile: I’ve check the bug and its listed as Incoming which means they probably wont get to take a closer look at it till tomorrow. I’ll check it tomorrow for you too and see if there is more info/update :smile:

Thanks for your reply! can you check if anyone had a chance to look at this issue? it’s really killing us