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

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 6.8.0, 6.7.1
    • 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)

    Description

      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.

      Attachments

        1. stacktrace.txt
          11 kB
        2. pyside2676.py
          0.3 kB
        3. pyside2676_sanitizer.txt
          10 kB
        4. pyside2676_diag.diff
          4 kB

        Issue Links

          For Gerrit Dashboard: PYSIDE-2676
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes