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

QEnum in QmlSingleton causes segfault

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.2.9, 6.6.0, 6.5.3
    • 6.5.2, 6.4.3
    • PySide
    • None
    • f3f8939f347370dbd2738ecb536543bf8cff4a09, 804f7dba8 (tqtc/lts-6.2), 9dadc22af (6.5), 74b23bae3 (dev), e335226be (6.6), ea283a440 (6.5)

    Description

      A QEnum defined inside a QML singleton causes a segfault when accessed from QML. Minimal example attached.

       

      Workaround: Use `QmlUncreatable` instead of a `QmlSingleton` if possible.

      Attachments

        1. pyside2433_diag.diff
          3 kB
        2. pyside2433_stack.txt
          99 kB
        3. pyside2433_valgrind.txt
          98 kB
        4. singleton_qenum.zip
          1.0 kB
        For Gerrit Dashboard: PYSIDE-2433
        # Subject Branch Project Status CR V

        Activity

          People

            kleint Friedemann Kleint
            machinekoder Alex Roessler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: