openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #18056
[Bug 1071170] Re: Exception on missing theme background image
** Changed in: openlp
Assignee: (unassigned) => Tim Bentley (trb143)
--
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1071170
Title:
Exception on missing theme background image
Status in OpenLP - Worship Presentation Software:
Fix Committed
Bug description:
I spotted the "Update Theme Images" menu item. So I just gave it a
trial and it turned out, that there is a missing background image file
in one of my themes. The same exception is also risen, if I set the
theme as default, or edit it.
I suggest to replace missing background files with a placeholder image
and display a warning.
*OpenLP Bug Report*
Version: {u'full': u'1.9.9-bzr2095', u'version': u'1.9.9', u'build': u'bzr2095'}
--- Exception Traceback ---
Traceback (most recent call last):
File "/home/meinert/Qt/OpenLP/trunk/openlp/core/ui/mainwindow.py", line 911, in onUpdateThemeImages
self.themeManagerContents.updatePreviewImages()
File "/home/meinert/Qt/OpenLP/trunk/openlp/core/ui/thememanager.py", line 729, in updatePreviewImages
self.path, theme, self.getThemeData(theme))
File "/home/meinert/Qt/OpenLP/trunk/openlp/core/ui/thememanager.py", line 712, in generateAndSaveImage
frame = self.generateImage(theme)
File "/home/meinert/Qt/OpenLP/trunk/openlp/core/ui/thememanager.py", line 745, in generateImage
theme_data, forcePage)
File "/home/meinert/Qt/OpenLP/trunk/openlp/core/lib/renderer.py", line 250, in generate_preview
QtGui.QColor(theme_data.background_border_color))
File "/home/meinert/Qt/OpenLP/trunk/openlp/core/lib/imagemanager.py", line 291, in addImage
image = Image(path, source, background)
File "/home/meinert/Qt/OpenLP/trunk/openlp/core/lib/imagemanager.py", line 128, in __init__
self.timestamp = os.stat(path).st_mtime
OSError: [Errno 2] No such file or directory: '/home/meinert/.local/share/openlp/themes/XGA Candara - Schnecke/Hintergrund.png'
--- System information ---
Platform: Linux-3.2.0-3-amd64-x86_64-with-debian-wheezy-sid
Desktop: KDE SC
--- Library Versions ---
Python: 2.7.3rc2
Qt4: 4.8.2
Phonon: 4.6.0
PyQt4: 4.9.3
QtWebkit: 534.34
SQLAlchemy: 0.7.8
SQLAlchemy Migrate: 0.7.2
BeautifulSoup: 3.2.1
lxml: 2.3.2
Chardet: 2.0.1
PyEnchant: 1.6.5
PySQLite: 1.0.1
Mako: 0.7.0
pyUNO bridge: 3.5
To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1071170/+subscriptions
References