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

Example network\ errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Duplicate
    • Affects Version/s: 5.11.0
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      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

        For Gerrit Dashboard: PYSIDE-705
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              crmaurei Cristian Maureira-Fredes
              Reporter:
              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