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

Exception RuntimeError in __del__ method when calling a c++ method on the deleted object

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: dev
    • Fix Version/s: dev
    • Component/s: PySide
    • Labels:
    • Environment:
      Python 2.7, OS X 10.11

      Description

      Relevant example in
      https://codereview.qt-project.org/#/c/165240/6/examples/network/blockingfortuneclient.py

      Full error is

      Exception RuntimeError: 'Internal C++ object (FortuneThread) already deleted.' in <bound method FortuneThread.__del__ of <__main__.FortuneThread object at 0x110bd0ea8>> ignored
      

      Seems to happen in

      bool isValid(SbkObject* pyObj, bool throwPyError)
      

      in basewrapper.cpp in libshiboken,
      which is called by a generated function

      Sbk_QThreadFunc_wait
      

      in qthread_wrapper.cpp (also generated).
      It seems that the relevant c++ object is not valid by the point wait is called.

        Attachments

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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alexandru.croitor Alexandru Croitor
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes