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

GetClassOfFunc causes fatal error with extension modules

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 5.12.0
    • Fix Version/s: 5.12.1, 5.12.2
    • Component/s: Shiboken
    • Labels:
      None
    • Platform/s:
      Windows
    • Commits:
      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

            Assignee:
            ctismer Christian Tismer
            Reporter:
            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