ocornut / imgui

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
MIT License
59.99k stars 10.19k forks source link

Unhandled exception when resizing DirectX12 demo window. #5018

Open digimap2000 opened 2 years ago

digimap2000 commented 2 years ago

Running the DirectX12 example code unmodified. When resizing the example window I get an unhandled exception after about 3 seconds of dragging the window. Call stack is....

[External Code] DXGIDebug.dll!CInfoQueue::AddMessage(struct _GUID,void ,enum DXGI_INFO_QUEUE_MESSAGE_CATEGORY,enum DXGI_INFO_QUEUE_MESSAGE_SEVERITY,int,char const ) d3d12SDKLayers.dll!CInfoQueue::AddMessage(enum D3D12_MESSAGE_CATEGORY,enum D3D12_MESSAGE_SEVERITY,enum D3D12_MESSAGE_ID,char const ) d3d12SDKLayers.dll!NDebug::CInterfaceSentinel::CFunctionSentinel::ReportMessageImpl(enum D3D12_MESSAGE_ID,char const ,bool,char ) d3d12SDKLayers.dll!NDebug::CInterfaceSentinel::CFunctionSentinel::operator()(enum D3D12_MESSAGE_ID,char const ,...) d3d12SDKLayers.dll!NDebug::CDevice::RemoveDevice(long) D3D12Core.dll!NDXGI::CDevice::RemoveDevice(long) D3D12Core.dll!CDevice::ProcessDriverErrors(enum EErrorBehavior,long) D3D12Core.dll!CDevice::UMSetError_(struct D3D10DDI_HRTDEVICE,long) igd12umd32.dll!79aa4d53() igd12umd32.dll![Frames below may be incorrect and/or missing, no symbols loaded for igd12umd32.dll] [External Code] example_win32_directx12.exe!WndProc(HWND * hWnd, unsigned int msg, unsigned int wParam, long lParam) Line 450 at C:\Users\ashel\Documents\personal\ALP\libs\liblib\foreign\imgui\examples\example_win32_directx12\main.cpp(450) [External Code] example_win32_directx12.exe!WndProc(HWND hWnd, unsigned int msg, unsigned int wParam, long lParam) Line 463 at C:\Users\ashel\Documents\personal\ALP\libs\liblib\foreign\imgui\examples\example_win32_directx12\main.cpp(463) [External Code] example_win32_directx12.exe!WndProc(HWND__ hWnd, unsigned int msg, unsigned int wParam, long lParam) Line 463 at C:\Users\ashel\Documents\personal\ALP\libs\liblib\foreign\imgui\examples\example_win32_directx12\main.cpp(463) [External Code] example_win32_directx12.exe!WndProc(HWND * hWnd, unsigned int msg, unsigned int wParam, long lParam) Line 463 at C:\Users\ashel\Documents\personal\ALP\libs\liblib\foreign\imgui\examples\example_win32_directx12\main.cpp(463) [External Code] example_win32_directx12.exe!main(int formal, char __formal) Line 131 at C:\Users\ashel\Documents\personal\ALP\libs\liblib\foreign\imgui\examples\example_win32_directx12\main.cpp(131) [External Code] `

Dear ImGui 1.88 WIP (18703)
--------------------------------
sizeof(size_t): 4, sizeof(ImDrawIdx): 2, sizeof(ImDrawVert): 20
define: __cplusplus=199711
define: _WIN32
define: _MSC_VER=1929
define: _MSVC_LANG=201402
--------------------------------
io.BackendPlatformName: imgui_impl_win32
io.BackendRendererName: imgui_impl_dx12
io.ConfigFlags: 0x00000000
io.ConfigInputTextCursorBlink
io.ConfigWindowsResizeFromEdges
io.ConfigMemoryCompactTimer = 60.0
io.BackendFlags: 0x0000000E
 HasMouseCursors
 HasSetMousePos
 RendererHasVtxOffset
--------------------------------
io.Fonts: 4 fonts, Flags: 0x00000000, TexSize: 512,512
io.DisplaySize: 1264.00,761.00
io.DisplayFramebufferScale: 1.00,1.00
--------------------------------
style.WindowPadding: 8.00,8.00
style.WindowBorderSize: 1.00
style.FramePadding: 4.00,3.00
style.FrameRounding: 0.00
style.FrameBorderSize: 0.00
style.ItemSpacing: 8.00,4.00
style.ItemInnerSpacing: 4.00,4.00
digimap2000 commented 2 years ago

Correction, I had added some fonts. Removed those, still crashing. DirectX 11 test works fine.

PathogenDavid commented 2 years ago

I can't repro this. Judging by the stack trace, this is coming from the DirectX debug layer. There should be a message in Visual Studio's output window with details.