importing theme produces errors

Bug #694148 reported by David Stansberry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Fix Released
Critical
Tim Bentley

Bug Description

OpenLP 1.9.3 build bzr1163
Importing new themes produces the following error

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 378, in onImportTheme
    self.unzipTheme(file, self.path)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 516, in unzipTheme
    self.generateAndSaveImage(dir, themename, theme)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 699, in generateAndSaveImage
    frame = self.generateImage(theme)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 721, in generateImage
    return self.parent.renderManager.generate_preview(themeData, forcePage)
  File "/usr/lib/pymodules/python2.6/openlp/core/lib/rendermanager.py", line 217, in generate_preview
    self.image_manager.del_image(self.theme_data.theme_name)
AttributeError: 'NoneType' object has no attribute 'theme_name'

This Theme did import before. also and this may be related in trying to rename an installed theme, that produce an error also as follows

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 157, in contextMenu
    self.onRenameTheme()
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 236, in onRenameTheme
    self.cloneThemeData(oldThemeData, newThemeName)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 264, in cloneThemeData
    self.saveTheme(themeData, saveFrom, saveTo)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 665, in saveTheme
    self.generateAndSaveImage(self.path, name, theme)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 699, in generateAndSaveImage
    frame = self.generateImage(theme)
  File "/usr/lib/pymodules/python2.6/openlp/core/ui/thememanager.py", line 721, in generateImage
    return self.parent.renderManager.generate_preview(themeData, forcePage)
  File "/usr/lib/pymodules/python2.6/openlp/core/lib/rendermanager.py", line 217, in generate_preview
    self.image_manager.del_image(self.theme_data.theme_name)
AttributeError: 'NoneType' object has no attribute 'theme_name'

Related branches

Revision history for this message
David Stansberry (davida-stansberry) wrote :

system is kubuntu 10.10 64 bit

Revision history for this message
John Cegalis (jseagull1) wrote :

Trying to duplicate this problem, I found another problem. Not sure if it is related or not. Same system.
Right click theme, rename it, image of theme is gone and background is black. Edit black theme and put image back in, and it asks to name it even though I chose that named theme to edit.

Before I tested, I exported the theme. When I imported it again, background was black. The jpg did not export and is not in the export file.

Revision history for this message
David Stansberry (davida-stansberry) wrote :

John I saw that also and considered it part of the over all bug. One theme disappeared upon close openlp and re opening it.

Revision history for this message
David Stansberry (davida-stansberry) wrote :

Little bit more. If you try to rename/edit an existing theme, openlp produces the error as mentioned above but leaves theme in theme manager untouched for now. Closing openlp and re opening it, the theme that was tried to be renamed/edited is now not in the theme manager, deleted.

Tim Bentley (trb143)
Changed in openlp:
assignee: nobody → Tim Bentley (trb143)
importance: Undecided → Critical
milestone: none → 1.9.4
Tim Bentley (trb143)
Changed in openlp:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.