Search Issue Tracker




Found in


Issue ID




DirectX12 crash when re-importing a large number of assets



-- Steps to reproduce the crash:
1. Clone the following project:
2. Open the project with latest trunk
3. Switch to DirectX12 by going to Edit -> Project Settings... -> Player -> Other Settings -> Rendering -> Untick "Auto Graphics API for Windows" -> Drag & Drop "Direct3D12" to the top of the list -> Restart
4. Reimport all assets by going to Assets -> Reimport All -> Reimport
5. A driver timeout might occur & Unity crashes once the "Importing..." window is finished

-- Reproducible with: 2021.2.0a14

-- Stack Trace:
========== OUTPUTTING STACK TRACE ==================

0x00007FF7B131EB68 (Unity) [unity\Runtime\GfxDevice\d3d12\D3D12SwapChain.cpp:409] D3D12SwapChain::CreateHWND
0x00007FF7B1323548 (Unity) [unity\Runtime\GfxDevice\d3d12\D3D12Window.cpp:29] D3D12Window::Reshape
0x00007FF7B1316753 (Unity) [unity\Runtime\GfxDevice\d3d12\D3D12Window.cpp:13] D3D12Window::D3D12Window
0x00007FF7B13C0FB4 (Unity) [unity\Runtime\GfxDevice\d3d12\GfxDeviceD3D12.cpp:4455] GfxDeviceD3D12Base::CreateGfxWindow
0x00007FF7B754EDB1 (Unity) [unity\Runtime\GfxDevice\threaded\GfxDeviceWorker.cpp:2177] GfxDeviceWorker::RunCommand
0x00007FF7B757DF6D (Unity) [unity\Runtime\GfxDevice\threaded\GfxDeviceWorker.cpp:389] GfxDeviceWorker::RunExt
0x00007FF7B74EE658 (Unity) [unity\Runtime\GfxDevice\threaded\GfxDeviceWorker.cpp:375] GfxDeviceWorker::Run
0x00007FF7B757E5E8 (Unity) [unity\Runtime\GfxDevice\threaded\GfxDeviceWorker.cpp:353] GfxDeviceWorker::RunGfxDeviceWorker
0x00007FF7B068235C (Unity) [unity\Runtime\Threads\Thread.cpp:81] Thread::RunThreadWrapper
0x00007FF984047034 (KERNEL32) BaseThreadInitThunk
0x00007FF986022651 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

-- Notes:
- Crash occurs on Yamato as well:
- Only affects DirectX12
- The project opens correctly when it is re-opened after the crash
- Multiple "d3d12: CreateReservedResource failed [hr=-2005270523]" warnings are thrown, followed by pairs of "d3d12: CreateResource for buffer failed." & "BufferD3D12 : Unexpected null accessor on Buffer", "d3d12: texture resource is missing." (UnityEngine.GUIUtility:SetSkin (int)) and finally "d3d12: CreateSwapChainForHwnd failed (887a0005)." (UnityEditor.WindowLayout:LoadDefaultWindowPreferences ()).

Comments (1)

  1. Megazorz

    Sep 13, 2022 01:59

    my directx12 crash was due to MSI afterburner running.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.