satorp
Topic Author
Posts: 20
Joined: 12 Mar 2018, 05:48

v3.1.0 sample applications crash when resized

28 Aug 2021, 11:16

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.
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++
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
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: v3.1.0 sample applications crash when resized

30 Aug 2021, 18:01

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.
 
satorp
Topic Author
Posts: 20
Joined: 12 Mar 2018, 05:48

Re: v3.1.0 sample applications crash when resized

30 Aug 2021, 22:48

I've confirmed that the crash doesn't occur with D3D11 option. I've submitted the bug report here.
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: v3.1.0 sample applications crash when resized

31 Aug 2021, 15:54

Thank you!

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 41 guests