Unity games crashing on brand new Windows 11 install

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
---------
1 Like

Can you share the dump file with me?

Sure. I only have 2 at the moment because I deleted the rest, as they’re around 20MB each and they can add up (due to crashing so frequently). I’ll send a few more once I have more dumps.

I’ve attached one here and the other is too big to attach so I’ve uploaded to here:
https://easyupload.io/p5ovjj

8227338–1074786–Crash_2022-06-20_141628.zip (44.8 KB)

That link you gave me unfortunately doesn’t work. And the dump you attached is bizarre… looks like the crash is on some random thread where both the stack and the instruction pointer are completely garbage. I’m not sure what would cause it… I’d really like to see more dumps before making any conclusions.

I also noticed that you’re building it as 32-bit. Do these crashes also happen in 64-bit builds? Lastly, the support for Unity version you’re using went out of support over 2 years ago… so even if this is an issue in Unity, we wouldn’t be able to fix it in that version.

Looks like that site has an issue with uploaded files. Try this one, this link includes 3 dump files:

I’m not a developer, I’m just reporting issues with Unity games on Windows 11. I’ve seen a lot of people posting the same issue for newer Unity versions (2019, 2021, etc). So I think it’s worthwhile for you to take a look at the dumps, as you might find an issue that is present in all versions of Unity running on Windows 11.

Hello all,
I’ve the same problem with Windows 11 22H2, it happens with every game which runs Unity Engine.

I’ve experimented hard crash/freezes with the following titles:

Farthest Frontier
Captain of Industries
Disney Dreamlight Valley

This is occurring at random times, sometimes after ten minutes and sometimes after 3hours of gameplay. It’s not happening on Windows10 21H1 with the same hardware.
The main problem is that the OS freezes completely, you can listen to the background music but all is frozen like a snapshot. System is totally unresponsive, it’s impossibile to launch task manager, Alt-f4 doesn’t work, forcing the shutdown of the system with the power button too. So , no logs neither warning/error popups, only thing to do is to do a power cycle with the power button pressed for 4 seconds.

Every other game works perfectly, never had a crash/bsod like those. I’ve tried to reset the system too, it’s always the same story.
There is a way to collect logs for unity in an unresponsive situation like this one?

Is this about games made with unity?Because when i boot my games, they show a window wth unitycrashhandler showing the game logo with an exclamation mark on the top left corner showing an error code on the window name.it happens with every game.valheim,deducto,banana shooter etc.

no matter what i try it does not work my drivers are updated, i dont know about citrix and etc.

This was one of the few links that came up when I was searching for an answer to the same issue as the OP, I had no issues with crashes on Unity based games on Windows 10 but after upgrading to Windows 11 every single Unity based game would crash randomly. Sometimes within a couple of minutes of starting, sometimes within 15 minutes, rarely I might get to 20 minutes but never any longer. The crashes were commonly full lockups of the system, sometimes just causing the system to restart, rarely there would just be a crash to desktop. Other games, including system intensive games like Cyberpunk 2077, were as rock solid as they’d been under Win 10 without a single crash.

Thankfully I’d spotted a link to the following - Reddit - Dive into anything

And that has fixed the problem instantly for me. As it says in the comments on it, it’s a workaround rather than a fix as it means losing the advantages of the Intel Turbo mode, but until someone works out what the problem between Win 11/Unity/Intel Turbo is (and it looks like the AMD version can cause the same problem) someone else searching for why all of a sudden their games have started crashing might find the link useful!

1 Like

I actually fixed this,i had so many missing game drivers that the games couldn’t run. I had the visual drivers missing.

Can you provide me the drivers? Im having some trouble playing deducto.