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
- is duplicated by
-
PYSIDE-1212 Crash when using QList<QSharedPointer<X> > > with wrong type
- Closed
For Gerrit Dashboard: PYSIDE-1367 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
314135,3 | shiboken2: Work around signature problems with smart pointer instantiations | 5.15 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
314142,2 | Signature parser: Report error when eval fails | 5.15 | pyside/pyside-setup | Status: MERGED | +2 | 0 |