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

GetClassOfFunc causes fatal error with extension modules

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.12.1, 5.12.2
    • 5.12.0
    • Shiboken
    • None
    • Windows
    • 5ae663ff57efb4735ef1e69055ea68d904deb3b3 (pyside/pyside-setup/5.12)

    Description

      I'm attempting to use PySide2 with our application that has an embedded python interpreter.

      Everything works fine, unless `inspect.signature` is called with any of our local builtin functions.

      When that happens I get a fatal error from `GetClassOfFunc` this happens 100% of the time once I have loaded PySide2, but the default `inspect.signature` does not exhibit this behavior.

      I'm guessing this is because the function is not a direct subclass of `builtin_function_or_method` but instead our binding generation code creates an intermediate subclass that our generated functions inherit from.

      Is there anyway I can fix this short of extending shiboken2 to know about our crazy stuff? Like maybe disable signature monkeypatching that it does?

       

      Attachments

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

        Activity

          People

            ctismer Christian Tismer
            bob.white Robert White
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes