After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 346106 - Invoke bug-buddy with unhandled exceptions
Invoke bug-buddy with unhandled exceptions
Status: RESOLVED FIXED
Product: gnome-python-desktop
Classification: Deprecated
Component: general
2.17.x
Other All
: Normal enhancement
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-28 13:38 UTC by Fernando Herrera
Modified: 2008-05-24 16:31 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Patchj catching unhandled exceptions (1.49 KB, patch)
2006-06-28 13:39 UTC, Fernando Herrera
none Details | Review

Description Fernando Herrera 2006-06-28 13:38:14 UTC
When an gnome-python "crashes" (unhandled exception) it would be nice to invoke bug-buddy with the trace. Attached is a patch.
Comment 1 Fernando Herrera 2006-06-28 13:39:08 UTC
Created attachment 68121 [details] [review]
Patchj catching unhandled exceptions
Comment 2 Gustavo Carneiro 2006-06-28 14:22:17 UTC
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?
Comment 3 John Ehresman 2006-06-28 14:28:06 UTC
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?
Comment 4 Fernando Herrera 2006-06-28 20:37:53 UTC
sure, maybe gnome-python is the right place for the patch (as the equivalent is included on libgnomeui and gnome-sharp).
Comment 5 Johan (not receiving bugmail) Dahlin 2006-07-24 21:58:35 UTC
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.
Comment 6 Gustavo Carneiro 2006-07-24 22:18:35 UTC
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.
Comment 7 Gustavo Carneiro 2006-07-24 22:38:34 UTC
I added the code as an example to be shipped in gnome-python, so it's easy to find.
Comment 8 Gustavo Carneiro 2007-01-07 17:28:35 UTC
Fixed with the new bugbuddy module installed by gnome-python-desktop.
Comment 9 Arun Raghavan 2008-05-24 16:31:45 UTC
(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.