GNOME Bugzilla – Bug 346106
Invoke bug-buddy with unhandled exceptions
Last modified: 2008-05-24 16:31:45 UTC
When an gnome-python "crashes" (unhandled exception) it would be nice to invoke bug-buddy with the trace. Attached is a patch.
Created attachment 68121 [details] [review] Patchj catching unhandled exceptions
I'm sure jdahlin will disagree with me, but I don't think the application should be forced to quit when any unhandled exception happens. There should be a dialog asking the user ("Quit", "Report Bug" | "Close"), or something like that. bug-buddy is not cross platform; should this be in pygtk, or in gnome-python?
If accepted, this needs to be optional and probably disabled by default. Not every system pygtk runs on has bug-buddy and not every gtk application is a gnome application. Also, I wouldn't want the application to exit -- isn't this why the current behavior of printing the exception is used, so the app can continue?
sure, maybe gnome-python is the right place for the patch (as the equivalent is included on libgnomeui and gnome-sharp).
It's definitely out of the question to enable this by default in pygtk. Reassigning to gnome-python, I'm leaving it to Gustavo to decide if it's appropriate to do there.
Feature freeze is too soon, I need more time for this... it will have to wait for the next GNOME cycle.. :| But thanks for the patch, it is a good start. In the mean time, any GNOME apps that want to use the code can just copy-paste it, as it is very small.
I added the code as an example to be shipped in gnome-python, so it's easy to find.
Fixed with the new bugbuddy module installed by gnome-python-desktop.
(In reply to comment #8) > Fixed with the new bugbuddy module installed by gnome-python-desktop. There seems to be no documentation w.r.t. the bugbuddy module's LICENSE. Could you please clarify? Thanks.