Nir O. Nir O. - 1 year ago 127
Linux Question

Errors running CutyCapt on Centos 5.7 without X Server

Having everything installed and compiled successfully, I am getting this lovely output, anyone has an idea? (it's a centos 5.7 without x server, so I am emulating this using the infamous xvfb-run)

./xvfb-run ./CutyCapt
Locking assertion failure. Backtrace:
#0 /usr/lib64/ [0x7f58396d690c]
#1 /usr/lib64/ [0x7f58396d6a14]
#2 /usr/lib64/ [0x7f58399260f0]
#3 /usr/lib64/ [0x37e8a03c9f]
#4 /usr/lib64/qt47/ [0x7f583b7268ce]
#5 /usr/lib64/qt47/ [0x7f583b6a741e]
#6 /usr/lib64/qt47/ [0x7f583b6a8088]
#7 ./CutyCapt(_ZN8QWebPage13triggerActionENS_9WebActionEb+0x1756) [0x4049be]
#8 /lib64/ [0x312481d994]
#9 ./CutyCapt(_ZN7QObject5eventEP6QEvent+0x161) [0x4039e9]
CutyCapt: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed.
./xvfb-run: line 168: 2362 Aborted DISPLAY=:$SERVERNUM XAUTHORITY=$AUTHFILE "$@" 2>&1

for comparison, this one runs OK:

./xvfb-run /usr/bin/xclock

Answer Source

I have fixed this by setting LIBXCB_ALLOW_SLOPPY_LOCK environment variable:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download