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

Shiboken crashes with invalid signature

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Fixed
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: Shiboken
    • Labels:
      None

      Description

      Calling a function with the wrong arguments, and one of them is a QSharedPointer cause shiboken to crash.

      Looks like the parser py is trying to find a type for the  `MyModule.QSharedPointer ` and that does not exist in python.  

      Some error messages appear on the terminal before the crash. 

      Err: "/tmp/embedded.xygx0445.zip/shibokensupport/signature/parser.py:196: RuntimeWarning: pyside_type_init:
      
      UNRECOGNIZED: 'MyModule.QSharedPointer'
       OFFENDING LINE: 'MyModule.Type.dataSet(pipeline:MyModule.Namespace.QSharedPointer[MyModule.Namespace.MyType],index:int)
         ->MyModule.Namespace.QSharedPointer[MyModule.Namespace.MyType]'
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              ctismer Christian Tismer
              Reporter:
              renatofilho renato araujo oliveira filho
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes