[PyQt] Segfault when trying to use QtOpenGL

Berthold Höllmann bhoel at despammed.com
Mon Sep 13 18:01:50 BST 2010


I just installed SIP 4.11.1 and PyQt x11 gpl 4.7.6 on SuSE Linux 11.2.
When I start qtdemo I get:

X Error: BadLength (poly request too large or internal Xlib length error) 16
  Extension:    136 (Uknown extension)
  Minor opcode: 17 (Unknown request)
  Resource id:  0x17
QGLContext::makeCurrent(): Cannot make invalid context current.
QGLContext::makeCurrent(): Cannot make invalid context current.
Unrecognised OpenGL version

The OpenGL samples do not work (empty widgets). Trying to debug the
problem I came across this segfault:

hoel at pchoel:~> python -c "from PyQt4 import QtOpenGL; QtOpenGL.QGLFormat.openGLVersionFlags()"
Speicherzugriffsfehler

How do find find out what OpenGL Version is supported? And why does the
simple script above segfault?
-- 
A: Weil es die Lesbarkeit des Textes verschlechtert.
F: Warum ist TOFU so schlimm?
A: TOFU
F: Was ist das größte Ärgernis im Usenet?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100913/26963a24/attachment.pgp>


More information about the PyQt mailing list