GNOME Bugzilla – Bug 573179
Gedit crashes if Python plugin raises exception in __init__
Last modified: 2019-03-23 20:46:46 UTC
Steps to reproduce: 1. Create a Python plugin which raises an exception in its __init__() method 2. Activate it in the Plugin dialog in Gedit 3. Gedit crashes Stack trace:
+ Trace 212903
(Sorry, have no debug packages installed) Other information: Here's an example plugin which triggers this: import gedit class CrasherTestPlugin(gedit.Plugin): def __init__(self): raise Exception("test exception") def activate(self, window): pass def deactivate(self, window): pass def update_ui(self, window): pass For completeness, here's the crasher.gedit-plugin file: [Gedit Plugin] Loader=python Module=crasher IAge=2 Name=Crasher example Description=An Example Authors=Oliver Gerlich Copyright=None Last output after activating plugin: Traceback (most recent call last): File "/home/oliver/.gnome2/gedit/plugins/crasher.py", line 6, in __init__ raise Exception("test exception") Exception: test exception The bug occurs at least on Debian Lenny and Ubuntu 8.10.
Please install debug packages and provide a good stacktrace.
A backtrace is now available at https://bugs.launchpad.net/gedit/+bug/368262 :
+ Trace 214868
Thread 1 (process 21465)
This issue was fixed when the new plugin system was introduced.