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

examples/gui/rhiwindow crashes if --metal specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.10.1, 6.11.0
    • 6.10.0
    • PySide
    • None
    • python3.14 macOS Tahoe 26.0.1
    • macOS
    • dc26a53b8 (dev), d221b03ba (6.10), cc25be6fa (tqtc/lts-6.8)

      If the rhiwindow example is run with --metal option it fails with:

      Users/x/Local/Python/PySide6/examples/rhiwindow/rhiwindow.py:179 in init 
        179 self.m_rhi.reset(QRhi.create(QRhi.Implementation.Metal, params))
      AttributeError: Error calling Python override of QWindow::exposeEvent(): 'NoneType' object has no
      attribute 'reset'

      I replaced the failing line with:

        self.m_rhi = QRhi.create(QRhi.Implementation.Metal, params)

      and that allowed the example to run without crashing.

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

            kleint Friedemann Kleint
            cmcp Colin McPhail
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes