[DX12][WIN32] Unhandled ImGui exception when EnableDebugLayer #6288
bboczula
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 1 comment
-
Ok, this was my mistake, in order to get the GPU descriptor, I was calling |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I've integrated ImGui to my engine, and was able to show a demo window on top of my rendering, so that was great. Unfortunately, when I switched to Debug configuration, it stardet to crash with "Unhandled Exception" error.
After a little digging, it turned out that this behavior is cause by calling "EnableDebugLayer()" function, even in the Release configuration.
The crash happens with "Exception Unhandled" in imgui_impl_dx12.cpp, line 276:
ctx->SetGraphicsRootDescriptorTable(1, texture_handle);
I'm also getting this error from DX12:
D3D12 ERROR: CGraphicsCommandList::SetGraphicsRootDescriptorTable: Specified GPU descriptor handle ptr=0x41 does not refer to a location in a descriptor heap. [ EXECUTION ERROR #646: INVALID_DESCRIPTOR_HANDLE]
This is the rendering code:
Regarding initalization, I simply allocate one descriptor on my global SRV_CBV_UAV descriptor heap that is GPU-visible and provide that to ImGui initialization functions.
I've passed
nullptr
as ID3D12DescriptorHeap, because it doesn't seem to be used anywhere, but even with a working pointer I still get the same error.Does anyone else had this problem maybe?
Beta Was this translation helpful? Give feedback.
All reactions