v3.1.0 sample applications crash when resized
I used VS2019 (16.4.8) to build the samples in 3.1.0 SDK. The solution was upgraded and built succesfully in VS2019, but any sample application (e.g. HelloWorld) will crash when resized.
The following DirectX error also displayed in output window:
DXGI ERROR: IDXGISwapChain::GetBuffer: buffer creation failed allocation; no buffers available. [ MISCELLANEOUS ERROR #10: ]
Is it a compatibility issue with VS2019?
Environment: VS2019 16.8.4, Windows 10.0.18363 x64, DirectX 12
Code: Select all
Exception thrown: read access violation.
**obj** was nullptr. occurred
NoesisApp.dll!SetDebugObjectName(ID3D12Object * obj, const char * str, ...) Line 69 C++
NoesisApp.dll!NoesisApp::D3D12RenderContext::CreateBuffers() Line 862 C++
NoesisApp.dll!NoesisApp::D3D12RenderContext::Resize() Line 290 C++
NoesisApp.dll!NoesisApp::Window::OnDisplaySizeChanged(NoesisApp::Display * __formal, unsigned int width, unsigned int height) Line 1411 C++
NoesisApp.dll!Noesis::Delegate<void __cdecl(NoesisApp::Display *,unsigned int,unsigned int)>::MemberFuncStub<NoesisApp::Window,void (__cdecl NoesisApp::Window::*)(NoesisApp::Display *,unsigned int,unsigned int)>::Invoke(NoesisApp::Display * <args_0>, unsigned int <args_1>, unsigned int <args_2>) Line 469 C++
NoesisApp.dll!Noesis::Delegate<void __cdecl(NoesisApp::Display *,unsigned int,unsigned int)>::operator()(NoesisApp::Display * <args_0>, unsigned int <args_1>, unsigned int <args_2>) Line 173 C++
NoesisApp.dll!NoesisApp::Win32Display::DispatchEvent(unsigned int msg, unsigned __int64 wParam, __int64 lParam) Line 1056 C++
NoesisApp.dll!NoesisApp::Win32Display::WndProc(HWND__ * hWnd, unsigned int msg, unsigned __int64 wParam, __int64 lParam) Line 1354 C++
DXGI ERROR: IDXGISwapChain::GetBuffer: buffer creation failed allocation; no buffers available. [ MISCELLANEOUS ERROR #10: ]
Is it a compatibility issue with VS2019?
Environment: VS2019 16.8.4, Windows 10.0.18363 x64, DirectX 12
Re: v3.1.0 sample applications crash when resized
This is related to the new D3D12 renderer, the implementation was added in 3.1 so it is less stable than D3D11 (D3D11 can be forced in our samples passing --render D3D11 in the command line).
I am not able to reproduce the issue. Please, could you create a ticket about this? I will verify in all our machines.
I am not able to reproduce the issue. Please, could you create a ticket about this? I will verify in all our machines.
Re: v3.1.0 sample applications crash when resized
I've confirmed that the crash doesn't occur with D3D11 option. I've submitted the bug report here.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 41 guests