Nsight crashes when using glReadPixels()

Hi,

When using glReadPixels() to read back the content of a bound FBO, I am no longer able to capture and pause my application in Nsight. As soon as I hit space it crashes. Win8.1 x64, VS2013 x64 solution, GTX770, 344.11 Drivers.

Anybody else has this problem?

Thanks
Christoph Pacher

Hi Christoph,

Yes, seems I meet the same problem when I write some tiny sample to simulate your code about ‘glReadPixels()’. We will investigate it ASAP.

Thanks
An

Hi Christoph,

For more precise, can you confirm your crash info? I got this in my tiny sample:

Problem signature:
Problem Event Name: APPCRASH
Application Name: gl-320-fbo-shadow.exe
Application Version: 0.0.0.0
Application Timestamp: 54214261
Fault Module Name: nvoglv32.DLL
Fault Module Version: 9.18.13.4398
Fault Module Timestamp: 54093e8a
Exception Code: c0000005
Exception Offset: 00914007
OS Version: 6.1.7601.2.1.0.256.4
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt

Anwendungszeitstempel: 54216537
Fehlermodulname: nvoglv64.DLL
Fehlermodulversion: 9.18.13.4411
Fehlermodulzeitstempel: 5414a1a2
Ausnahmecode: c0000005
Ausnahmeoffset: 0000000000a99483
Betriebsystemversion: 6.3.9600.2.0.0.256.48
Gebietsschema-ID: 3079
Zusatzinformation 1: fe24
Zusatzinformation 2: fe24d21bec2bdd38dbc9a83fe715ec76
Zusatzinformation 3: 685f
Zusatzinformation 4: 685f96adf0837645758d96761228275b

Hi Christoph,

Thanks for reporting this error; we’ve confirmed it and will have it fixed in our next version. In the meantime if you require glReadPixels support in Nsight you can work around the problem by reading to the pixel pack buffer by binding and creating a buffer in the GL_PIXEL_PACK_BUFFER target. The data parameter then becomes an offset so make sure to pass NULL for this parameter. Once read, you can map the buffer to get the data out.

Hope this helps,

Dan