I am unable to debug / profile a minimal SDL OpenGL applications due to NVidia NSight 5.5 crashing
during startup. It also crashes with a minimal Unity OpenGL project, so the crash is not SDL-specific.
The crash is occuring due to invalid access (nullptr dereference) at Nvda.Graphics.Interception.Analysis.dll!00007ffb5b8d0f7a()
This is the (intercepted) entry point for wglGetExtensionsStringARB:
OS Version: Windows 10.0.16299
Driver: crash occurs with NVidia Desktop driver 388.59 and 390.65
NVidia NSight Version: 5.5.0.18014
IDE: Microsoft Visual Studio 2015
Yes, this is expected, it is a minimal code sample to illustrate that nsight crashes during initial OpenGL setup. The sample does not render anything. A crash dump and full source code for the sample and Sdl2 is included which covers the call stack up to the Nvidia OpenGL intercept.
I can reproduce the issue locally.I’ve created an internal bug to track it.
The issue only happened with your sample.
Can you try OpenGL analysis with other opengl samples please when you’re convenient?
We just confirmed the crash of Nsight Performance Analysis when selected OpenGL, we are investigating it. Really sorry for the crash you meet and I will let you know the update.
Well, frustratingly, NVidia NSight Graphics 2018.4, as well as NVidia NSight Visual Studio Edition 5.6 both are still crashing when trying to trace OpenGL applications on Windows 10 (driver 399.07).
Not sure what your QA process is, but it doesn’t seem very thorough.
For Nsight Graphics 2018.4, did you mean GPU Trace Activity? If yes, when you generate GPU trace, you would see a dialog telling you API is not supported. There’s also description in connection dialog saying that supported API is only D3D12.
For Nsight VSE 5.6, Analysis crash on OpenGL app is confirmed fixed. Could you please share more information?
GPU model
Win10 version
Visual Studio version
Please also confirm you have set the correct working dir and cmd arguments in Analysis activity.
If possible, could you please share your application with us for further investigation?