Segfault after Capture Frame
Ubuntu 14.04 Quadro 3100M GPU w/ driver 352 Unity 5.1.3 application built for x86_64 The Linux Graphics Debugger is able to launch the application properly, and show some metrics. Once I trigger "Capture Frame", I get a warning that reads: "Detected Unsupported operations that may cause errors or a crash during capture. First seen unsupported operation: glDisableClientState (Classic attributes are not supported)" Continuing past the warning indeed crashes. The log shows: "5045 Segmentation fault (core dumped) DISPLAY=:0 LD_PRELOAD=a/b/c/libNvidia_gfx_debugger.so /a/b/c/abc.x86_64" Any idea why this might be happening?
Ubuntu 14.04
Quadro 3100M GPU w/ driver 352
Unity 5.1.3 application built for x86_64

The Linux Graphics Debugger is able to launch the application properly, and show some metrics.

Once I trigger "Capture Frame", I get a warning that reads:

"Detected Unsupported operations that may cause errors or a crash during capture.
First seen unsupported operation: glDisableClientState (Classic attributes are not supported)"

Continuing past the warning indeed crashes. The log shows:

"5045 Segmentation fault (core dumped) DISPLAY=:0 LD_PRELOAD=a/b/c/libNvidia_gfx_debugger.so /a/b/c/abc.x86_64"


Any idea why this might be happening?
Attachments

LinuxTest.zip

#1
Posted 10/23/2015 08:48 PM   
Hi AlejandroGT, You mean you got a crash after press OK/Continue on the warning dialog box, right? For more detail investigation and repro, could you share us your sample? Thanks An
Hi AlejandroGT,

You mean you got a crash after press OK/Continue on the warning dialog box, right?

For more detail investigation and repro, could you share us your sample?

Thanks
An

#2
Posted 10/26/2015 06:07 AM   
Yes, it crashes after continuing past the warning. A simple sample has been attached to the original post.
Yes, it crashes after continuing past the warning. A simple sample has been attached to the original post.

#3
Posted 10/26/2015 05:09 PM   
Attached here is the Binary, compiled on Windows 7, targeted at Linux.
Attached here is the Binary, compiled on Windows 7, targeted at Linux.
Attachments

test.zip

#4
Posted 10/26/2015 05:34 PM   
I'm also experiencing this bug on several different programs. One of them is open source: [url]https://github.com/turol/webquake2[/url] It's Quake 2 but it's been refactored to use semi-modern OpenGL so it doesn't cause errors from the debugger. On 64-bit build pressing "Capture Frame" causes the game to crash. 32-bit build on a 64-bit host crashes on startup. GPU is GT 560M, drivers tested were 346.47 and 352.55. Also notable that if game is run under Valgrind it doesn't crash but is of course unusably slow. It might be a good idea to make the profiler library Valgrind clean. On another computer (32-bit host, 8800 GT, driver 340.65) it works but is pretty slow and the profiler doesn't work.
I'm also experiencing this bug on several different programs. One of them is open source:
https://github.com/turol/webquake2
It's Quake 2 but it's been refactored to use semi-modern OpenGL so it doesn't cause errors from the debugger.

On 64-bit build pressing "Capture Frame" causes the game to crash. 32-bit build on a 64-bit host crashes on startup. GPU is GT 560M, drivers tested were 346.47 and 352.55.

Also notable that if game is run under Valgrind it doesn't crash but is of course unusably slow. It might be a good idea to make the profiler library Valgrind clean.

On another computer (32-bit host, 8800 GT, driver 340.65) it works but is pretty slow and the profiler doesn't work.

#5
Posted 10/28/2015 02:04 PM   
Hi AlejandroGT, I got your sample and can have the repro. Seems the crash happens on Unity's libmono.so, not sure how it related with LGD, will let you know what we found ASAP. Thanks An
Hi AlejandroGT,

I got your sample and can have the repro. Seems the crash happens on Unity's libmono.so, not sure how it related with LGD, will let you know what we found ASAP.

Thanks
An

#6
Posted 11/04/2015 03:48 AM   
Hi AlejandroGT, We just do some check, after the sample launched by LGD, it will prompt a warning that about 'glDisableClientState' when you try to do pause&capture, looks the crash happens on driver that it doesn't allow such way. Could you try to disable the usage of glDisableClientState in your sample and take another try? Thanks An
Hi AlejandroGT,

We just do some check, after the sample launched by LGD, it will prompt a warning that about 'glDisableClientState' when you try to do pause&capture, looks the crash happens on driver that it doesn't allow such way.

Could you try to disable the usage of glDisableClientState in your sample and take another try?

Thanks
An

#7
Posted 04/13/2017 10:25 AM   
Scroll To Top

Add Reply