I’ve recently upgraded my Windows 10 machine to Windows 11. I’ve had no issues with any of my Unity games prior to the upgrade, but now they’re crashing very frequently on Windows 11. When I say crashing, the game process would terminate and a crash dump would be generated (found here %localappdata%\CrashDumps). It is very intermittent, sometimes the game will run fine for hours (but eventually crash), sometimes it’ll run for just 30 minutes and crash.
I thought perhaps the upgrade had gone wrong, so I did a fresh install of Windows 11. I installed the latest Windows Update patches and it is fully up to date. All the drivers are installed as well. This Windows 11 has nothing else installed except for the Unity game itself. However, the games are STILL crashing. I then took 2 other machines, did the same thing as above, and the result is the same. At this point, I can tell you the issue is not due to a specific CPU (tested both Intel and AMD) and it’s not GPU specific either (tested both Intel integrated, Nvidia and AMD).
Just to emphasize, these games run fine on the SAME machines on Windows 10. They’re only crashing on Windows 11. I have a total of 5 machines at home, 3 of which are on Windows 11 (as mentioned above) and 2 of which are still on Windows 10. When I did my tests, I run the same game across all 5 machines for multiple hours. The games have been running fine for multiple days on the Windows 10 machines.
I’ve read a lot of discussions on the forum and on other sites (Reddit, Steam) about similar issues on Windows 11. A lot of them talk about Citrix (which I don’t have installed), about AMD Ryzen CPUs (but it’s happening on Intel as well) and about RAM memory timings (but I tested different RAM on different machines and it’s not the issue). I went through a lot of different suggestions and none of them worked. Again, if this is happening on a brand new Windows 11 install, with nothing else installed except for the latest drivers and Windows Update, then it seems like the issue is with Unity itself.
Anyway, here’s the error:
Here’s the crash dump when extracted from WinDbg:
Microsoft (R) Windows Debugger Version 10.0.25111.1000 X86
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [C:\Users\XYZUser\AppData\Local\CrashDumps\ToW.exe.4088.dmp]
User Mini Dump File: Only registers, stack and portions of memory are available
Symbol search path is: srv*
Executable search path is:
Windows 10 Version 22000 MP (8 procs) Free x86 compatible
Product: WinNt, suite: SingleUserTS
Edition build lab: 22000.1.amd64fre.co_release.210604-1628
Machine Name:
Debug session time: Wed Jun 22 22:06:07.000 2022 (UTC + 12:00)
System Uptime: not available
Process Uptime: 0 days 0:23:45.000
................................................................
.....................................
Loading unloaded module list
......
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(ff8.4240): Access violation - code c0000005 (first/second chance not available)
For analysis of this file, run !analyze -v
eax=00000001 ebx=3b3c9880 ecx=75808e36 edx=624b0015 esi=23cdf314 edi=00000400
eip=7a5796b8 esp=23cded18 ebp=23cdeff0 iopl=0 nv up ei pl nz na po nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202
UnityPlayer+0x8696b8:
7a5796b8 8b4a04 mov ecx,dword ptr [edx+4] ds:002b:624b0019=????????
************* Path validation summary **************
Response Time (ms) Location
Deferred srv*
OK D:\5. Program Files (x86)\Unity\Editor
NatVis script unloaded from 'C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2205.18001.0_x64__8wekyb3d8bbwe\x86\Visualizers\atlmfc.natvis'
NatVis script unloaded from 'C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2205.18001.0_x64__8wekyb3d8bbwe\x86\Visualizers\ObjectiveC.natvis'
NatVis script unloaded from 'C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2205.18001.0_x64__8wekyb3d8bbwe\x86\Visualizers\concurrency.natvis'
NatVis script unloaded from 'C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2205.18001.0_x64__8wekyb3d8bbwe\x86\Visualizers\cpp_rest.natvis'
NatVis script unloaded from 'C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2205.18001.0_x64__8wekyb3d8bbwe\x86\Visualizers\stl.natvis'
NatVis script unloaded from 'C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2205.18001.0_x64__8wekyb3d8bbwe\x86\Visualizers\Windows.Data.Json.natvis'
NatVis script unloaded from 'C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2205.18001.0_x64__8wekyb3d8bbwe\x86\Visualizers\Windows.Devices.Geolocation.natvis'
NatVis script unloaded from 'C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2205.18001.0_x64__8wekyb3d8bbwe\x86\Visualizers\Windows.Devices.Sensors.natvis'
NatVis script unloaded from 'C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2205.18001.0_x64__8wekyb3d8bbwe\x86\Visualizers\Windows.Media.natvis'
NatVis script unloaded from 'C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2205.18001.0_x64__8wekyb3d8bbwe\x86\Visualizers\windows.natvis'
NatVis script unloaded from 'C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2205.18001.0_x64__8wekyb3d8bbwe\x86\Visualizers\winrt.natvis'
Microsoft (R) Windows Debugger Version 10.0.25111.1000 X86
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [C:\Users\XYZUser\AppData\Local\CrashDumps\ToW.exe.4088.dmp]
User Mini Dump File: Only registers, stack and portions of memory are available
************* Path validation summary **************
Response Time (ms) Location
Deferred srv*
OK D:\5. Program Files (x86)\Unity\Editor
Symbol search path is: srv*;D:\5. Program Files (x86)\Unity\Editor
Executable search path is:
Windows 10 Version 22000 MP (8 procs) Free x86 compatible
Product: WinNt, suite: SingleUserTS
Edition build lab: 22000.1.amd64fre.co_release.210604-1628
Machine Name:
Debug session time: Wed Jun 22 22:06:07.000 2022 (UTC + 12:00)
System Uptime: not available
Process Uptime: 0 days 0:23:45.000
................................................................
.....................................
Loading unloaded module list
......
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(ff8.4240): Access violation - code c0000005 (first/second chance not available)
For analysis of this file, run !analyze -v
eax=00000001 ebx=3b3c9880 ecx=75808e36 edx=624b0015 esi=23cdf314 edi=00000400
eip=7a5796b8 esp=23cded18 ebp=23cdeff0 iopl=0 nv up ei pl nz na po nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202
UnityPlayer+0x8696b8:
7a5796b8 8b4a04 mov ecx,dword ptr [edx+4] ds:002b:624b0019=????????
0:134> !analyze -v
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************
KEY_VALUES_STRING: 1
Key : AV.Fault
Value: Read
Key : Analysis.CPU.mSec
Value: 2093
Key : Analysis.DebugAnalysisManager
Value: Create
Key : Analysis.Elapsed.mSec
Value: 267974
Key : Analysis.Init.CPU.mSec
Value: 1077
Key : Analysis.Init.Elapsed.mSec
Value: 221893
Key : Analysis.Memory.CommitPeak.Mb
Value: 100
Key : Timeline.Process.Start.DeltaSec
Value: 1425
Key : WER.OS.Branch
Value: co_release
Key : WER.OS.Timestamp
Value: 2021-06-04T16:28:00Z
Key : WER.OS.Version
Value: 10.0.22000.1
Key : WER.Process.Version
Value: 2017.4.40.0
FILE_IN_CAB: ToW.exe.4088.dmp
NTGLOBALFLAG: 0
PROCESS_BAM_CURRENT_THROTTLED: 0
PROCESS_BAM_PREVIOUS_THROTTLED: 0
APPLICATION_VERIFIER_FLAGS: 0
CONTEXT: 23cdf5b8 -- (.cxr 0x23cdf5b8)
eax=75808d51 ebx=7c271620 ecx=00dd0000 edx=00dd0000 esi=7c2715c5 edi=7c000fc7
eip=75808e36 esp=23cdfa23 ebp=624b0015 iopl=0 nv up ei pl nz na po nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202
kernel32!RPCRT4_NULL_THUNK_DATA_DLB+0x65e2:
75808e36 696c6554696d6554 imul ebp,dword ptr [ebp+54h],54656D69h ss:002b:624b0069=????????
Resetting default scope
EXCEPTION_RECORD: 23cdf568 -- (.exr 0x23cdf568)
ExceptionAddress: 75808e36 (kernel32!RPCRT4_NULL_THUNK_DATA_DLB+0x000065e2)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 00000000
Parameter[1]: 624b0069
Attempt to read from address 624b0069
PROCESS_NAME: ToW.exe
READ_ADDRESS: 624b0019
ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.
EXCEPTION_CODE_STR: c0000005
EXCEPTION_PARAMETER1: 00000000
EXCEPTION_PARAMETER2: 624b0019
IP_ON_HEAP: 00dd0000
The fault address in not in any loaded module, please check your build's rebase
log at <releasedir>\bin\build_logs\timebuild\ntrebase.log for module which may
contain the address if it were loaded.
FRAME_ONE_INVALID: 1
FAULTING_THREAD: ffffffff
UNALIGNED_STACK_POINTER: 23cdfa23
STACK_TEXT:
23cdfa23 75808e36 kernel32!RPCRT4_NULL_THUNK_DATA_DLB+0x65e2
23cdfa27 00dd0000 unknown!unknown+0x0
23cdfa2b cdfa2c75 unknown!unknown+0x0
23cdfa2f 00924523 ToW+0x391d9f
SYMBOL_NAME: ToW+391d9f
MODULE_NAME: ToW
IMAGE_NAME: ToW.exe
STACK_COMMAND: .cxr 23cdf5b8 ; kb ; ** Pseudo Context ** Pseudo ** Value: c38e320 ** ; kb
FAILURE_BUCKET_ID: INVALID_POINTER_READ_c0000005_ToW.exe!Unknown
OS_VERSION: 10.0.22000.1
BUILDLAB_STR: co_release
OSPLATFORM_TYPE: x86
OSNAME: Windows 10
IMAGE_VERSION: 2017.4.40.0
FAILURE_ID_HASH: {421cfceb-bc26-d3fc-55a1-bffe1b431954}
Followup: MachineOwner
---------
