Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-998

Problems with OpenGLs examples on Python36

    Details

    • Type: Bug
    • Status: Need More Info
    • Priority: Not Evaluated
    • Resolution: Incomplete
    • Affects Version/s: 5.12.2
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Environment:
    • Platform/s:
      Other

      Description

      Hi,

      Don't know why, but most of examples from site-packages\PySide2\examples\opengl not working or with problems.

      Eg:

      1. overpainting

       

      Python36\Lib\site-packages\PySide2\examples\opengl\overpainting.py", line 198, in paintEvent
       glPushAttrib(GL_ALL_ATTRIB_BITS)
       File "src\errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
      OpenGL.error.GLError: GLError(
       err = 1283,
       description = b'przepe\xb3nienie stosu',
       baseOperation = glPushAttrib,
       cArguments = (GL_ALL_ATTRIB_BITS,)
      )
      QWidget::repaint: It is dangerous to leave painters active on a widget outside of the PaintEvent
      QWidget::repaint: It is dangerous to leave painters active on a widget outside of the PaintEvent
      QPainter::begin: A paint device can only be painted by one painter at a time.
      QPainter::setRenderHint: Painter must be active to set rendering hints
      Traceback (most recent call last):
       File "e:\PYTHON\Python36\Lib\site-packages\PySide2\examples\opengl\overpainting.py", line 198, in paintEvent
       glPushAttrib(GL_ALL_ATTRIB_BITS)
       File "src\errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
      OpenGL.error.GLError: GLError(
       err = 1283,
       description = b'przepe\xb3nienie stosu',
       baseOperation = glPushAttrib,
       cArguments = (GL_ALL_ATTRIB_BITS,)
      )
      Traceback (most recent call last):

       2. samplebuffers.py

      Python36\Lib\site-packages\PySide2\examples\opengl\samplebuffers.py", line 90, in paintGL
       GL.glPushMatrix()
       File "src\errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
      OpenGL.error.GLError: GLError(
       err = 1283,
       description = b'przepe\xb3nienie stosu',
       baseOperation = glPushMatrix,
       cArguments = ()
      )
      Traceback (most recent call last):
       File "E:\Python36\Lib\site-packages\PySide2\examples\opengl\samplebuffers.py", line 191, in <module>
       widget.freeResources()
       File "E:\Python36\Lib\site-packages\PySide2\examples\opengl\samplebuffers.py", line 171, in freeResources
       GL.glDeleteLists(self.list_, 1)
       File "E:\Python36\lib\site-packages\OpenGL\platform\baseplatform.py", line 402, in __call__
       return self( *args, **named )
      ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type
      
      

      3. grabber.py

      Python36\Lib\site-packages\PySide2\examples\opengl\grabber.py", line 434, in <module>
          mainWin.glWidget.freeResources()
        File "E:\Python36\Lib\site-packages\PySide2\examples\opengl\grabber.py", line 84, in freeResources
          glDeleteLists(self.gear1, 1)
        File "E:\Python36\lib\site-packages\OpenGL\platform\baseplatform.py", line 402, in __call__
          return self( *args, **named )
        File "src\errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
      OpenGL.error.GLError: GLError(
      	err = 1282,
      	description = b'nieprawid\xb3owa operacja',
      	baseOperation = glDeleteLists,
      	cArguments = (0, 1)
      )
      >>>
      

      overpainting - notworking
      hellogl hellogl
      hellogl2 - working
      contextinfo - working

      I trying move some projects from PyQt5 to Pyside2 I meeting many problems around this.
      In other projects like pyqt4 or glfw working ok on Py36.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              crmaurei Cristian Maureira-Fredes
              Reporter:
              qtman Qt_resercher
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes