[Qt-interest] QGLContext::makeCurrent(): Failed.

Josh Knox jknox at irobot.com
Fri May 7 21:12:59 CEST 2010


Hi All,

I've got a simple QGLWidget that fails in calls to makeCurrent, with 
errors such as:

QGLContext::makeCurrent(): Failed.
<unknown>: Fatal IO error 11 (Resource temporarily unavailable) on X 
server :0.0.
<unknown>: Fatal IO error 0 (Success) on X server :0.0.

Program received signal SIGSEGV, Segmentation fault.


In gdb, the backtrace looks like its actually dying down in the X libs:

#2  0xb7588bb9 in exit () from /lib/tls/i686/cmov/libc.so.6
#3  0xa89d5165 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#4  0xb3e9cf22 in _XIOError () from /usr/lib/libX11.so.6
#5  0xb3ea4f57 in _XReply () from /usr/lib/libX11.so.6
#6  0xb3e98507 in XSync () from /usr/lib/libX11.so.6
#7  0xb3b0d821 in glXWaitX () from /usr/lib/libGL.so.1
#8  0xbfbc93c8 in ?? ()
#9  0xb4121f63 in QWidget::event () from /opt/irobot/lib/libQtGui.so.4
#10 0xb3c321ec in QGLWidget::event () from /opt/irobot/lib/libQtOpenGL.so.4
#11 0xb40c757c in QApplicationPrivate::notify_helper ()
   from /opt/irobot/lib/libQtGui.so.4
#12 0xb40ced1c in QApplication::notify () from /opt/irobot/lib/libQtGui.so.4
#13 0xb4e629ee in ?? () from 
/opt/irobot/lib/python2.5/site-packages/PyQt4/QtGui.so
#14 0xb52fcbdb in QCoreApplication::notifyInternal () from 
/opt/irobot/lib/libQtCore.so.4
#15 0xb411ffe0 in QWidgetPrivate::sendPendingMoveAndResizeEvents ()
   from /opt/irobot/lib/libQtGui.so.4
#16 0xb4126209 in QWidgetPrivate::show_helper () from 
/opt/irobot/lib/libQtGui.so.4
#17 0xb412653d in QWidgetPrivate::show_recursive () from 
/opt/irobot/lib/libQtGui.so.4
#18 0xb41266af in QWidgetPrivate::showChildren () from 
/opt/irobot/lib/libQtGui.so.4
#19 0xb4126234 in QWidgetPrivate::show_helper () from 
/opt/irobot/lib/libQtGui.so.4
#20 0xb41268bb in QWidget::setVisible () from /opt/irobot/lib/libQtGui.so.4

I'm guessing this is a "driver issue" but wanted to check if there was 
any other ideas.

This is on Qt4.6.2, Ubuntu 9.04, using latest nvidia drivers (v195.36.24).

Thanks,

Josh



More information about the Qt-interest-old mailing list