PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 402 - Exceptions raised in event methods aren't printed to console until termination
: Exceptions raised in event methods aren't printed to console until termination
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtGui
: 0.4.1
: PC MS Windows XP/Vista/7
: P3 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-10-04 17:50 EEST by pyside
Modified: 2010-10-13 13:49 EEST (History)
8 users (show)

See Also:


Attachments
Repro case (297 bytes, text/plain)
2010-10-04 17:50 EEST, pyside
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pyside 2010-10-04 17:50:24 EEST
Created attachment 107 [details]
Repro case

Running the attached script which raises a TypeError doesn't print the
exception to the console until I close the main window. It seems like you get
the same behavior in all event-methods (I've only confirmed it in wheelEvent,
paintEvent and mousePressEvent).

Here's the output I get from running the attached script, clicking on the
window with any mouse button and then closing the window:

Traceback (most recent call last):
  File "output.py", line 14, in <module>
    sys.exit(app.exec_())
  File "output.py", line 9, in mousePressEvent
    a = 17 + ''
TypeError: unsupported operand type(s) for +: 'int' and 'str'
Comment 1 Hugo Parente Lima 2010-10-04 19:44:04 EEST
The problem happen on all virtual functions returning vod.
Comment 2 Hugo Parente Lima 2010-10-05 13:59:02 EEST
Fixed in commit:
shiboken/4133eda85a6cf5b7e4e1f17c36724cda1d8c42f9
Comment 3 renato filho 2010-10-13 13:49:12 EEST
released on PySide 0.4.2