First, the stats and specs:
Windows 7, 64bit
GTX470, running latest beta drivers (331.58)
Visual Studio 2010 ultimate
Using HLSL5.0
Running both the host and the monitor on the same computer
The problem: I’m trying to debug my pixel shader. So I start the graphics debugger, I pause the frame, I go to the shader list and select the proper shader. When put out a breakpoint, the device driver crashes, then in the bottom right it says that the driver has recovered from a crash.
After this, the breakpoint is active and I can look at the values, but when I try to step forward, it just loses focus and… keeps running, I guess? It’s usually at this point that I try to change focus back to any of the other windows, and that’s when visual studio freezes and dies.
I’m compiling the shaders using D3DX11CompileFromFile with these flags: D3DCOMPILE_ENABLE_STRICTNESS | D3DCOMPILE_DEBUG | D3DCOMPILE_SKIP_OPTIMIZATION
Not quite sure how relevant it is, but my shaders are using .psh/.vsh file extensions to get proper syntax coloring from my NShader plugin. I tried changing to .hlsl for one of the files, but it didn’t change anything.
This is the lastest crash log from when visual studio crashes:
Faulting application name: devenv.exe, version: 10.0.40219.1, time stamp: 0x4d5f2a73
Faulting module name: KERNELBASE.dll, version: 6.1.7601.18229, time stamp: 0x51fb1116
Exception code: 0xe0434352
Fault offset: 0x0000c41f
Faulting process id: 0x2b4
Faulting application start time: 0x01cecfe3fada2acd
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: 43bf0837-3bd9-11e3-98dc-002522a0448c
All I can find regarding the actual display driver in the windows event viewer logs is this warning that keeps appearing after every crash:
Display driver nvlddmkm stopped responding and has successfully recovered.
I’m unsure if I can find more detailed crash logs for the graphics card somewhere? Either way, any help on this subject would be appreciated.
Edit: I’ve tried to do the same thing with Nsight 3.0 and 3.1, and I had the same problems. I’ve never been able to step through shaders, always had the same problem. Am I doing something fundamentally wrong? I have watched your dev videos on youtube when you’re debugging both OpenGL and DirectX applications, and I do exactly as they do, only difference is that when they step through the code it works like normal, but when I do it, it just loses focus/doesn’t step forward.