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

Error freezes UI and does not print traceback to terminal

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 6.0
    • None
    • PySide
    • 5c2d3e42ec548f66a8fe9ce2d53b7aa452be82b6

      Consider the following code:

      import sys
      from PySide2 import QtWidgets
      
      def on_pressed():
          priknt("world")  # misspelled
      
      
      app = QtWidgets.QApplication(sys.argv)
      button = QtWidgets.QPushButton("Hello")
      button.pressed.connect(on_pressed)
      button.show()
      app.exec_()

      When I hit the button, there's an error since the function "priknt" doesn't exist.

      • With PySide2, the UI will freeze up and not generate a traceback in the terminal
      • With PyQt5, the UI will crash instantly and generate a traceback in the terminal
      • With PySide and PyQt4, the UI will keep being functional and generate a traceback in the terminal

      Would it be possible to achieve the same functionality as seen in PySide/PyQt4 where the UI doesn't freeze or crash instantly?

      My motivation behind this is I really prefer "nothing happens when I click the button!" instead of "aaaw f@ยข$, I lost all my work!".

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

            alexandru.croitor Alexandru Croitor
            fredrikaverpil Fredrik Averpil
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes