Editor closes without error after "Initialize Scripting" or "Initialize Graphics"

Hi guys,
so basically any version after and including 2021.3 doesnt start for me. It almonst instantly crashes after reaching "Initialize Graphics".
9014488--1242889--upload_2023-5-15_13-29-13.png

Some caveats:

  • I have no VPN
  • Versions BEFORE 2021 work fine

  • I have a Pro license but it doesnt start with a Personal license either (re-adding licenses)

  • Editor.log shows no relevant information, these are the last couple lines :[quote]
    [Licensing::Client] Successfully resolved entitlements
    Initialize mono
    Mono path[0] = 'H:/Unity 2021.3.25f1/Editor/Data/Managed'
    Mono path[1] = 'H:/Unity 2021.3.25f1/Editor/Data/MonoBleedingEdge/lib/mono/unityjit-win32'
    Mono config path = 'H:/Unity 2021.3.25f1/Editor/Data/MonoBleedingEdge/etc'
    Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,server=y,suspend=n,address=127.0.0.1:56708
    [/quote]

  • the Windows Event viewer suggests the source of the crash is a module named "mono-2.0-bdwgc.dll"

What ive tried so far - to no avail:

  • Started with admin rights
  • Looked into firewall settings
  • Complete uninstall and reinstall of Unity and Unity Hub (+ removing files in AppData, ProgramData and in the registry)
  • Using older Unity Hub versions (2.4.5, 2.0.4)

Device specs:

  • Ryzen R5 5600X
  • AMD 7900XT
  • Windows 10 2H22

The problem has been persistent for a couple months now. It was managable til now because I could comfortably work on the project on my Ubuntu device but not anymore due to an incompatible plugin.
I was suspecting there was something wrong with my GPU drivers but that is unlikely because I have switched from my old Nvidia GTX 1070 to an AMD 7900XT.

Im lost and frustrated, the last couple days showed no progress whatsoever. I would appreciate any help..
Thank you

1 Like

Hey,
I have the exact same problem as you, would also be interested to know.

Running Windows 11, AMD 3900X, RTX 3080Ti

The only meaningful log I've found is this:
{"timestamp":"2023-06-05T14:39:30.069Z","level":"info","moduleName":"LaunchProcess","message":"[ 'child process exited with code 3221225477' ]"}

The exit code in hex is 'C0000005', so segfault happening somewhere :(

UPDATE: Managed to make it run by attaching VS19 debugger to the Unity.exe process....

3 Likes

Incredible, but true. It solved my issue !

I can launch the editor using this solution. but still crash after stop attaching.

[quote]


  • *
  • Exception Analysis *
  • * ******************************************************************************* KEY_VALUES_STRING: 1 Key : AV.Dereference Value: NullClassPtr Key : AV.Fault Value: Read Key : Analysis.CPU.Sec Value: 2 Key : Analysis.DebugAnalysisProvider.CPP Value: Create: 8007007e on morriszliu-PC2 Key : Analysis.DebugData Value: CreateObject Key : Analysis.DebugModel Value: CreateObject Key : Analysis.Elapsed.Sec Value: 7 Key : Analysis.Memory.CommitPeak.Mb Value: 367 Key : Analysis.System Value: CreateObject Key : Timeline.Process.Start.DeltaSec Value: 296 NTGLOBALFLAG: 402 PROCESS_BAM_CURRENT_THROTTLED: 0 PROCESS_BAM_PREVIOUS_THROTTLED: 0 APPLICATION_VERIFIER_FLAGS: 0 CONTEXT: (.ecxr) rax=0000000000000000 rbx=000001ec09f857e0 rcx=0000005a38901750 rdx=000000000000002f rsi=0000000000000010 rdi=0000000000000000 rip=000001ec09f85807 rsp=0000005a389016d0 rbp=0000000000000000 r8=0000000000000002 r9=0000000000000000 r10=000000007ffe03d8 r11=0000005a389fe420 r12=000001ebc1db58a0 r13=0000005a386c7000 r14=000001ebc1db5890 r15=0000000000000000 iopl=0 nv up ei pl nz na pe nc cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202 mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7: 000001ec09f85807 4c8b04d0 mov r8,qword ptr [rax+rdx*8] ds:0000000000000178=???????????????? Resetting default scope EXCEPTION_RECORD: (.exr -1) ExceptionAddress: 000001ec09f85807 (mono_2_0_bdwgc!mono_breakpoint_clean_code+0x00000000000023b7) ExceptionCode: c0000005 (Access violation) ExceptionFlags: 00000000 NumberParameters: 2 Parameter[0]: 0000000000000000 Parameter[1]: 0000000000000178 Attempt to read from address 0000000000000178 PROCESS_NAME: Unity.exe READ_ADDRESS: 0000000000000178 ERROR_CODE: (NTSTATUS) 0xc0000005 - 0x%p 0x%p %s EXCEPTION_CODE_STR: c0000005 EXCEPTION_PARAMETER1: 0000000000000000 EXCEPTION_PARAMETER2: 0000000000000178 STACK_TEXT: 0000005a389016d0 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a38901710 00007ffab60a12d6 : 0000005a38901eb0 0000005a389019c0 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a389017b0 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a389019c0 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a38902150 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a38902190 00007ffab60a12d6 : 0000005a38902930 0000005a38902440 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a38902230 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a38902440 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a38902bd0 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a38902c10 00007ffab60a12d6 : 0000005a389033b0 0000005a38902ec0 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a38902cb0 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a38902ec0 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a38903650 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a38903690 00007ffab60a12d6 : 0000005a38903e30 0000005a38903940 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a38903730 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a38903940 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a389040d0 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a38904110 00007ffab60a12d6 : 0000005a389048b0 0000005a389043c0 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a389041b0 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a389043c0 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a38904b50 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a38904b90 00007ffab60a12d6 : 0000005a38905330 0000005a38904e40 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a38904c30 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a38904e40 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a389055d0 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a38905610 00007ffab60a12d6 : 0000005a38905db0 0000005a389058c0 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a389056b0 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a389058c0 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a38906050 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a38906090 00007ffab60a12d6 : 0000005a38906830 0000005a38906340 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a38906130 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a38906340 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a38906ad0 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a38906b10 00007ffab60a12d6 : 0000005a389072b0 0000005a38906dc0 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a38906bb0 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a38906dc0 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a38907550 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a38907590 00007ffab60a12d6 : 0000005a38907d30 0000005a38907840 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a38907630 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a38907840 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a38907fd0 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a38908010 00007ffab60a12d6 : 0000005a389087b0 0000005a389082c0 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a389080b0 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a389082c0 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a38908a50 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a38908a90 00007ffab60a12d6 : 0000005a38909230 0000005a38908d40 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a38908b30 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a38908d40 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a389094d0 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a38909510 00007ffab60a12d6 : 0000005a38909cb0 0000005a389097c0 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a389095b0 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a389097c0 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a38909f50 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a38909f90 00007ffab60a12d6 : 0000005a3890a730 0000005a3890a240 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a3890a030 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a3890a240 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a3890a9d0 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a3890aa10 00007ffab60a12d6 : 0000005a3890b1b0 0000005a3890acc0 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a3890aab0 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a3890acc0 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a3890b450 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a3890b490 00007ffab60a12d6 : 0000005a3890bc30 0000005a3890b740 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a3890b530 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a3890b740 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a3890bed0 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a3890bf10 00007ffab60a12d6 : 0000005a3890c6b0 0000005a3890c1c0 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a3890bfb0 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a3890c1c0 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a3890c950 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a3890c990 00007ffab60a12d6 : 0000005a3890d130 0000005a3890cc40 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a3890ca30 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a3890cc40 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a3890d3d0 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a3890d410 00007ffab60a12d6 : 0000005a3890dbb0 0000005a3890d6c0 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a3890d4b0 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a3890d6c0 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a3890de50 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 0000005a3890de90 00007ffab60a12d6 : 0000005a3890e630 0000005a3890e140 0000000000000000 0000000000000000 : ntdll!RtlpCallVectoredHandlers+0x108 0000005a3890df30 00007ffab60f0ebe : 0000000000000000 0000000000000000 000001ec09f857e0 0000000000000000 : ntdll!RtlDispatchException+0x66 0000005a3890e140 000001ec09f85807 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!KiUserExceptionDispatch+0x2e 0000005a3890e8d0 00007ffab60c8b1c : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : mono_2_0_bdwgc!mono_breakpoint_clean_code+0x23b7 SYMBOL_NAME: mono_2_0_bdwgc!mono_breakpoint_clean_code+23b7 MODULE_NAME: mono_2_0_bdwgc IMAGE_NAME: mono-2.0-bdwgc.dll STACK_COMMAND: ~127s ; .ecxr ; kb FAILURE_BUCKET_ID: NULL_CLASS_PTR_READ_c0000005_mono-2.0-bdwgc.dll!mono_breakpoint_clean_code OS_VERSION: 10.0.19041.1 BUILDLAB_STR: vb_release OSPLATFORM_TYPE: x64 OSNAME: Windows 10 FAILURE_ID_HASH: {a1d3400a-4e9e-a719-6489-44086cdcf0b6} Followup: MachineOwner --------- [/quote]