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

Can not get QQuickFramebufferObject to work in PySide2/PySide6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 6.2.2
    • PySide
    • None
    • Linux/Wayland, Linux/X11, Windows
    • 45002cd9d6 (pyside/pyside-setup/dev) 4c66c1e76c (pyside/pyside-setup/6.2) 4c66c1e76c (pyside/tqtc-pyside-setup/6.2) 7f91a72734 (pyside/tqtc-pyside-setup/5.15) 7f91a72734 (pyside/tqtc-pyside-setup/tqtc/5.15)

    Description

      Hey guys,

      I've been tinkering around with Python, QtQuick/Qml and mpv and I can not get PySide2 or PySide6 to work with mpv the way it is supposed to be according to this blog post:

      https://www.qt.io/blog/2015/05/11/integrating-custom-opengl-rendering-with-qt-quick-via-qquickframebufferobject

      Other pages I looked at are:

      I created a minimal working example https://github.com/trin94/qtquick-mpv

      If you try to replicate those issues on Windows or in a Wayland session, you might need to replace GLX with WGL or EGL and the corresponding open gl function.

      With PyQt5, everything seems to work fine, but PyQt6 does not work fully and PySide2 and PySide6 do not work at all.

      I also took a quick look using gdb and apparently there's been a seg fault:
      Thread 43 "QSGRenderThread" received signal SIGSEGV, Segmentation fault.

      I added the log section as an attachment.

      I can not give you a C++ example since I don't know the language. Also, I tested this on Linux and on Windows - same result.

      If you need further information, please leave a comment.

      Thank you very much!

      Attachments

        1. pyside1868.zip
          3 kB
        2. log-output.log
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            trin94 Elias Müller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews