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

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.13.2
    • 5.11.0
    • PySide
    • Python 2.7, OS X 10.11
    • e940872c12399e8fc5c33ed2e52a719373bc03cf

    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

            crmaurei Cristian Maureira-Fredes
            alexandru.croitor Alexandru Croitor
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes