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

true_property features causes process to be killed instead of raising ValueErrors on invalid arguments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 6.2.2
    • PySide
    • None
    • 159adca779 (pyside/pyside-setup/dev) 4ac0760d66 (pyside/pyside-setup/6.2) 4ac0760d66 (pyside/tqtc-pyside-setup/6.2) 159adca779 (pyside/tqtc-pyside-setup/dev) 159adca779 (pyside/tqtc-pyside-setup/tqtc/dev) 4ac0760d66 (pyside/pyside-setup/6.2.3)

    Description

      With the true_property feature enabled, the application crashes instead of quitting gracefully with a traceback when a Qt type is passed invalid arguments.

      The code

      from PySide6 import QtCore 
      QtCore.QRect("")
      

      raises the ValueError and provides signatures as expected, but when the 

      from __feature__ import true_property

      import is added between the two lines, the application is killed and exits with the 0xC0000005 code (on windows)

      Attachments

        1. pyside1757_stack.txt
          22 kB
        2. pyside1757.py
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ctismer Christian Tismer
            numerlor Michal Laboš
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes