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

Example network\ errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.11.0
    • PySide
    • None

    Description

      If I open network\blockingfortuneclient.py the client and close it I get a Traceback.

      python network\blockingfortuneclient.py
      Exception ignored in: <bound method FortuneThread.__del__ of <__main__.FortuneThread object at 0x000001DA26577388>>
      Traceback (most recent call last):
        File "network\blockingfortuneclient.py", line 74, in __del__
      RuntimeError: Internal C++ object (FortuneThread) already deleted.

      When I connect with a client network\fortuneserver.py has a traceback

      python network\fortuneserver.py
      Traceback (most recent call last):
        File "network\fortuneserver.py", line 107, in sendFortune
          out.writeString(fortune)
      TypeError: 'PySide2.QtCore.QDataStream.writeString' called with wrong argument types:
        PySide2.QtCore.QDataStream.writeString(bytes)
      Supported signatures:
        PySide2.QtCore.QDataStream.writeString(unicode)
      Traceback (most recent call last):
        File "network\fortuneserver.py", line 107, in sendFortune
          out.writeString(fortune)
      TypeError: 'PySide2.QtCore.QDataStream.writeString' called with wrong argument types:
        PySide2.QtCore.QDataStream.writeString(bytes)
      Supported signatures:
        PySide2.QtCore.QDataStream.writeString(unicode)

      When I close the client while the server is still running I get a Traceback.

      python network\blockingfortuneclient.py
      QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread
      QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread
      QThread: Destroyed while thread is still running

       

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            code Cody Scott
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes