OpenLP fails to start if python-uno throws an exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenLP |
Won't Fix
|
Medium
|
Oliver Wieland | ||
2.0 |
Won't Fix
|
Medium
|
Unassigned | ||
Trunk |
Won't Fix
|
Medium
|
Oliver Wieland | ||
openlp (openSUSE) |
New
|
Undecided
|
Unassigned |
Bug Description
As of OpenLP 2.0.2, the startup code is unable to handle external errors which cause python-uno to throw exceptions. In this particular instance,
Current behavior:
After running OpenLP with the option "-l debug", the following stack trace is logged:
File "/usr/bin/openlp", line 44, in <module>
main()
File "/usr/share/
sys.
File "/usr/share/
self.mainWindow = MainWindow(self)
File "/usr/share/
self.
File "/usr/share/
plugin = p(plugin_helpers)
File "/usr/share/
self.manager = Manager(u'custom', init_schema)
File "/usr/share/
self.session = init_schema(
File "/usr/share/
session, metadata = init_db(url)
File "/usr/share/
engine = create_engine(url, poolclass=NullPool)
File "/usr/lib/
return strategy.
File "/usr/lib/
dbapi = dialect_
File "/usr/lib/
from pysqlite2 import dbapi2 as sqlite
File "/usr/lib/
"%s (or '%s.%s' is unknown)" % (py_import_exc, name, x)
AttributeError: 'exceptions.
Expected behavior:
OpenLP should provide the user with an error dialog before crashing with a message such as "OpenLP is unable to connect to the LibreOffice database".
If it is reasonable, add workaround code to allow OpenLP to continue without using the plugin which triggered the external exception.
Environment notes:
OpenLP 2.0.2
Ubuntu 12.04
Libre Office 4.1.1
Related branches
Changed in openlp: | |
milestone: | 2.1.1 → none |
Did OpenLP's interface show up at all when this exception occurred?