Crash when profiling app with DirectX

Using Nsight 4.0.0.14142 in VS2012 I can profile my app with “System” trace, but if I include “DirectX” then my app crashes on startup with this in the crash dialog:

Problem Event Name: BEX
Application Name: Vrsg6.exe
Application Version: 6.0.16.0
Application Timestamp: 5395eda5
Fault Module Name: Nvda.Nexus.Injection.dll_unloaded
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 537ecfeb
Exception Offset: 0f318270
Exception Code: c0000005
Exception Data: 00000008
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: ab3d
Additional Information 2: ab3d6b66c3d024f77762357229ae16a0
Additional Information 3: ab3d
Additional Information 4: ab3d6b66c3d024f77762357229ae16a0

If I choose Debug then I have to choose Debug->Break then switch the main thread, but the stack is not very useful even with a Debug build:

ntdll.dll!_ZwWaitForSingleObject@12() Unknown
ntdll.dll!_RtlReportExceptionEx@16() Unknown
ntdll.dll!_RtlReportException@12() Unknown
ntdll.dll!_RtlInvalidHandlerDetected@12() Unknown
ntdll.dll!_RtlIsValidHandler@8() Unknown
ntdll.dll!_RtlDispatchException@8() Unknown
ntdll.dll!_KiUserExceptionDispatcher@8() Unknown
0fd256fe() Unknown
[Frames below may be incorrect and/or missing]
ntdll.dll!_bsearch() Unknown
kernel32.dll!_HeapFree@12() Unknown
ntdll.dll!_bsearch() Unknown
0042e03c() Unknown
000007a0() Unknown
KernelBase.dll!_GetProcAddress@8() Unknown

Our app does not write any logs during these crashes which suggests it doesn’t get very far at all, maybe not even into main.

I cannot share my EXE as-is but I am trying to create a small example that has the same problem. Any general ideas how I could debug this myself however?

Hi,

Sorry to hear this. Could you provide me with the crash dump that was generated? Contact me through PM.