Crash on Capture

I am able to connect and launch just fine, but when I try to capture I get a crash in the program. Here are some useful bits from GDB:

Program received signal SIGSEGV, Segmentation fault.
(gdb) frame 0
#0 0x0000003e270337a5 in XPending (dpy=0x76e48c0) at Pending.c:51
51 LockDisplay(dpy);
(gdb) bt
#0 0x0000003e270337a5 in XPending (dpy=0x76e48c0) at Pending.c:51
#1 0x00007ffff6e9cf18 in ?? () from /home/amelcher/.tgd/libs/libNvidia_gfx_debugger.so
#2 0x00007ffff6ce2988 in ?? () from /home/amelcher/.tgd/libs/libNvidia_gfx_debugger.so
#3 0x00007ffff6ce2a4d in ?? () from /home/amelcher/.tgd/libs/libNvidia_gfx_debugger.so
#4 0x00007ffff6ce6720 in ?? () from /home/amelcher/.tgd/libs/libNvidia_gfx_debugger.so
#5 0x00007ffff69f79ed in ?? () from /home/amelcher/.tgd/libs/libNvidia_gfx_debugger.so
#6 0x00007ffff6e6ce3c in ?? () from /home/amelcher/.tgd/libs/libNvidia_gfx_debugger.so
#7 0x00000000016c3c50 in hpl::cLowLevelGraphicsSDL::SwapBuffers
#8 0x00000000011bbfb0 in hpl::cEngine::Run
#9 0x0000000000fecab8 in cLuxBase::Run
#10 0x0000000000f0a550 in hplMain
#11 0x00000000016dd9c6 in main
(gdb) list
46 }
47
48 int XPending (register Display *dpy)
49 {
50 int ret_val;
51 LockDisplay(dpy);
52 if (dpy->qlen)
53 ret_val = dpy->qlen;
54 else
55 ret_val = _XEventsQueued (dpy, QueuedAfterFlush);

And some system information:

Operating System Version:
“Fedora release 19 (Schrödinger’s Cat)” (64 bit)
Kernel Name: Linux
Kernel Version: 3.14.27-100.fc19.x86_64
X Server Vendor: Fedora Project
X Server Release: 11404000
X Window Manager: GNOME Shell

Video Card:
Driver: NVIDIA Corporation GeForce GT 650M/PCIe/SSE2
Driver Version: 4.4.0 NVIDIA 331.67
OpenGL Version: 4.4
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 59 Hz
VendorID: 0x10de
DeviceID: 0xfd5
Number of Monitors: 1
Number of Logical Video Cards: 2
Primary Display Resolution: 1680 x 1050
Desktop Resolution: 1680 x 1050
Primary Display Size: 13.03" x 8.15" (15.35" diag)
33.1cm x 20.7cm (39.0cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 1024 MB
Supported MSAA Modes: 2x 4x 8x 16x

Hi aaron_kog,

Can you please provide more information about the problem? A few questions as below.

  • The XPending function is the same with it in Xlib or edited?
  • Is the graphics driver installed correctly? maybe you can try to install the graphics driver again, or download the latest graphics driver from NVidia official website, 331.47 seems a little old.

Thanks,
Letitia

  • The XPending function is the same with it in Xlib or edited?

I have not edited Xlib

  • Is the graphics driver installed correctly? maybe you can try to install the graphics driver again, or download the latest graphics driver from NVidia official website, 331.47 seems a little old.

The driver should be installed correctly. I will update via nvidia website and report back.

Some time ago I’ve started getting the same problem.
It generally used to work, and reverting the driver to 340, and/or our source code a few months has no impact on this. So I’m guessing it’s related to some OS update that happened (probably in January).

#0 0x00007ffff1e220f5 in XPending () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#1 0x00007ffff6c7af18 in ?? () from /home/.tgd/libs/libNvidia_gfx_debugger.so
#2 0x00007ffff6ac0988 in ?? () from /home/.tgd/libs/libNvidia_gfx_debugger.so
#3 0x00007ffff6ac0a4d in ?? () from /home/.tgd/libs/libNvidia_gfx_debugger.so
#4 0x00007ffff6ac4720 in ?? () from /home/.tgd/libs/libNvidia_gfx_debugger.so
#5 0x00007ffff67d59ed in ?? () from /home/.tgd/libs/libNvidia_gfx_debugger.so
#6 0x00007ffff6c4ae3c in ?? () from /home/.tgd/libs/libNvidia_gfx_debugger.so
#7 0x0000000001e3d33c in Our code which calls SDL_GL_SwapWindow

Operating System Version:
Ubuntu 14.04.3 LTS (64 bit)
Kernel Name: Linux
Kernel Version: 3.16.0-60-generic
X Server Vendor: The X.Org Foundation
X Server Release: 11600000
X Window Manager:
Steam Runtime Version: steam-runtime-release_2015-06-12

Video Card:
Driver: NVIDIA Corporation GeForce GTX 780/PCIe/SSE2

Driver Version:  4.5.0 NVIDIA 352.63
OpenGL Version: 4.5
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 59 Hz
VendorID:  0x10de
DeviceID:  0x1004
Number of Monitors:  3
Number of Logical Video Cards:  1