I am getting constant editor crashes ranging from immediately on project open to 5 minutes after opening the project. Running with command args -force-d3d11 appears to fix the crashes. The issue first appeared in the project created in 6000.3.1f1 and after updating to the latest version 6000.3.4f1 is still constant. Project is using URP. PC GPU is 2060 Super 8gb running latest studio drivers 591.74 but this issue was still constant with driver version 581.57.
I am currently unsure how to further debug this issue. If anyone else has encountered anything similar, advice would be appreciated. Please also let me know if there is any more detail that needs to be added to this post.
Here is the crash log when running with args -force-d3d12-debug:
d3d12 validation error (catergory: 9, id: 232): ID3D12Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_DEVICE_HUNG: The Device took an unreasonable amount of time to execute its commands, or the hardware crashed/hung. As a result, the TDR (Timeout Detection and Recovery) mechanism has been triggered. The current Device Context was executing commands when the hang occurred. The application may want to respawn and fallback to less aggressive use of the display hardware).
d3d12: CreateCommandAllocator failed (887a0005).
d3d12: Device failed error (887a0005).
d3d12: Device removed reason (887a0006).
d3d12: GfxDevice was not out of Local memory
d3d12: Local memory usage:
Budget: 7589593088
CurrentUsage: 1408757760
AvailableForReservation: 67108864
CurrentReservation: 3929014272
d3d12: GfxDevice was not out of Non-Local memory
d3d12: Non-Local memory usage:
Budget: 15867766784
CurrentUsage: 655962112
AvailableForReservation: 0
CurrentReservation: 8068101120
Prior to the crash there was a lot of similar errors logged (around 900 lines of them):
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x00000228F5AD27D0:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1145)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x000002282A92BAC0:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1269)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x0000022932397650:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1253)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x00000228F5AD4D80:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1129)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x00000228F5AD0EB0:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1080)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x000002282AC51670:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:984)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x00000228F5AD40F0:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1115)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x000002282AC55540:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1006)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x000002282AC59410:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1021)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x000002282AC56E60:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1035)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x000002282AC5D2E0:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1050)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x00000228F5AD3460:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1065)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x00000228F5AD5A10:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1096)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x0000022932391E60:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1160)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x00000229323911D0:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1191)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x00000229323950A0:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1208)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x0000022932392AF0:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1225)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x00000229323969C0:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1237)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x000002282A92C750:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1283)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x000002282A92AE30:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1299)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x000002282A92A1A0:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1314)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x000002282A92D3E0:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1332)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 921): ID3D12CommandQueue1::ExecuteCommandLists: An ID3D12Resource object (0x000002282A92F990:'D3D12ScratchBufferInternal::D3D12ScratchBufferInternal() ScratchBuffer (tag:1347)') referenced in a command list (0x0000022976E5A980:'Async command list (RenderPass)') was deleted prior to executing the command list. This is invalid and can result in application instability.
d3d12 validation error (catergory: 9, id: 232): ID3D12Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_DEVICE_HUNG: The Device took an u
This was the crash log previously without debug args:
d3d12: swapchain present failed (887a0005).
d3d12: swapchain present failed (887a0005).
d3d12: Device failed error (887a0005).
d3d12: Device removed reason (887a0006).
d3d12: GfxDevice was not out of Local memory
d3d12: Local memory usage:
Budget: 7589593088
CurrentUsage: 1280516096
AvailableForReservation: 67108864
CurrentReservation: 3929014272
d3d12: GfxDevice was not out of Non-Local memory
d3d12: Non-Local memory usage:
Budget: 15867766784
CurrentUsage: 1763643392
AvailableForReservation: 0
CurrentReservation: 8068101120
Unrecoverable D3D12 device error! Run with -force-d3d12-debug and see logs for more info.
Cannot use DisplayDialog because it was run from a thread that is not the main thread: Fatal Error! Unrecoverable D3D12 device error! Run with -force-d3d12-debug and see logs for more info.