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

Shiboken crashes with invalid signature

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 5.15.2
    • 5.15.0
    • Shiboken
    • 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

        1. pyside1367.zip
          4 kB
          Friedemann Kleint
        2. qsharedpointer_shiboken.tar.gz
          25 kB
          Alex March

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ctismer Christian Tismer
              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