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

Segfault on Linux when using mne_qt_browser (Python 3.12/meta classes)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.7.1, 6.8.0
    • 6.7
    • PySide
    • None
    • Linux, Python 3.12.2, PySide 6.7.0
    • Linux/Wayland, Linux/X11
    • adb609270 (dev), 18dd2995b (6.7), b782c3054 (dev), e9807e1dc (6.7)

      The following example results in a segfault when using PySide ≥ 6.7.0:

      import PySide6
      from mne_qt_browser import _pg_figure

      Note that this example requires the mne-qt-browser package (in addition to PySide6).

      I think what's happening here is that the second import also tries to create a Qt app, which apparently produces a segfault with PySide ≥ 6.7.0. The example works with PySide 6.6.3 (and possibly also previous versions). Interestingly, PySide 6.6.3.1 does not work either, but at least it does not segfault.

        1. pyside2676_diag.diff
          4 kB
        2. pyside2676_sanitizer.txt
          10 kB
        3. pyside2676.py
          0.3 kB
        4. stacktrace.txt
          11 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ctismer Christian Tismer
            cle1109 Clemens Brunner
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes