[PyQt] Invalid Framebuffer operation in PyQt programs
Hi everybody! Since being on Lion, I have problems with my C++ Qt and PyQt OpenGL applications. In basically every PyQt script that uses QGLWidget, I get this error: PyQt-mac-gpl-4.8.5/examples/opengl $ ./hellogl.py Traceback (most recent call last): File ./hellogl.py, line 154, in paintGL GL.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT) File errorchecker.pyx, line 50, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:574) OpenGL.error.GLError: GLError( err = 1286, description = 'invalid framebuffer operation', baseOperation = glClear, cArguments = (16640,) ) This example is the hellogl example from the PyQt distribution. It seems that the QGLWidget gets a paintGL event even when the framebuffer is not yet complete. The same happens with some of my more complex C++ Qt applications, which indicates that this might rather be a Qt problem. Did anyone else notice this, and is there a fix / workaround? Problem is, that it might lead to lots of problems further down the road, since some of my programs rely on the first GL command actually working correctly. Cheers, Arne -- Dipl.-Inform. Arne Schmitz Phone +49 (0)241 80-21817 Computer Graphics Group Mobile +49 (0)151 29145947 RWTH Aachen University Fax +49 (0)241 80-22899 Ahornstrasse 55, 52074 Aachen, Germany http://www.rwth-graphics.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Basic 3D Viewer
Am 30.05.2011 um 21:04 schrieb Knacktus: I need to evaluate the options for building a basic 3D viewer with PyQt. The scenes are static, but quite large (some hundreds medium complex (~500 triangles) objects). Show/Hide objects, rotate, drag, zoom, change colors and some other basic operations need to be available. Does it have to be Python? Our lab has developed a 3D mesh processing tool / framework called OpenFlipper: http://www.openflipper.org/ It is based on C++ and Qt. You can easily write new plugins to do arbitrary stuff, using C++. Scripting is done via Qt's JavaScript implementation. Would be nice to have Python bindings, though... :) Currently, I've got some very coarse understanding of OpenGL and scenegraphs, but cannot really grasp the complexitiy of the topic. This /can/ become arbitrarily complex, but you can start out simple. Getting efficient might be a problem. Can anyone comment on the complexity of building it from scratch? I'm looking for some directions, best practices. E.g., do PyOpenGL and PyQt play together? They do. I wrote a minimal 3D viewer using both: https://github.com/root42/PyGLWidget It gives you a PyQt based window and a PyOpenGL context. Zoom, translate and rotate via mouse are already implemented. Nothing more, nothing less. I use the widget for small programs where I want to render some simple stuff. Best regards, Arne -- Dipl.-Inform. Arne Schmitz Phone +49 (0)241 80-21817 Computer Graphics Group Mobile +49 (0)151 29145947 RWTH Aachen University Fax +49 (0)241 80-22899 Ahornstrasse 55, 52074 Aachen, Germany http://www.rwth-graphics.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] memory leak on a Mac
Am 27.01.2011 um 18:12 schrieb Danny Shevitz: Any PyQt application generates the same message. If I run something from the samples directory, I get the same memory leak, so it is nothing in my code. I don't have those problems. How did you install PyQt? I use MacPorts (using Python 2.7). Regards, Arne -- Dipl.-Inform. Arne Schmitz Phone +49 (0)241 80-21817 Computer Graphics Group Mobile +49 (0)151 29145947 RWTH Aachen University Fax +49 (0)241 80-22899 Ahornstrasse 55, 52074 Aachen, Germany http://www.rwth-graphics.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] BUG: Qwt widgets in uic files
Am 24.01.2011 um 16:06 schrieb Phil Thompson: line 30, in search self._module = __import__(self._moduleName, {}, {}, self._classes) TypeError: 'set' object does not support indexing === Cut here === I suspect that that is a problem with the Qwt module being imported. Otherwise can you reproduce the problem without the dependency on an external module? I don't quite understand your question. Can you elaborate on that? I found a discussion on gmane which seems to cover the same topic: http://comments.gmane.org/gmane.comp.python.xy.devel/419 The proposed fix in there works for me as well, however, I am also not sure, what the removal of the set() implies. But my progam works well so far. Best regards, Arne Schmitz -- Dipl.-Inform. Arne Schmitz Phone +49 (0)241 80-21817 Computer Graphics Group Mobile +49 (0)151 29145947 RWTH Aachen University Fax +49 (0)241 80-22899 Ahornstrasse 55, 52074 Aachen, Germany http://www.rwth-graphics.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt