openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #17181
[Bug 1022184] Re: Presentation module crashes when importing powerpoint files
This problem also occurs if the data folder is changed to a local
directory and that directory name contains a "space".
The "real" problem is QtGui.QFileDialog.getExistingDirectory(.....
On XP, when a directory is selected, the dialog returns
[drive]:/[directory/directory....] instead of
[drive]:\[directory\directory...]
On Win 7, the path name is returned correctly.
This normally does not cause a problem in OpenLP, until this path is
passed to the powerpoint dll. For ome reason, when it sees the "/",
all spaces in the string are changed to &20 (substitution for a space)
which then causes the problem.
I changed the "/"'s to "\" in the registry for the data path name, and
the error went away.
--
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1022184
Title:
Presentation module crashes when importing powerpoint files
Status in OpenLP - Worship Presentation Software:
New
Bug description:
Windows XP Professional SP3, Powerpoint 2003
OpenLP 1.9.10 On importing prestentions program crashes. This did not
occur on version 1.9.9. Error log text file attached. On reentry to
OpenLPfile names are present with no thumbnail and adding them to
service causes another crash.
Traceback (most recent call last):
File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\out01-PYZ.pyz\openlp.core.lib.mediamanageritem", line 344, in onFileClick
File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\out01-PYZ.pyz\openlp.core.lib.mediamanageritem", line 400, in validateAndLoad
File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\out01-PYZ.pyz\openlp.plugins.presentations.lib.mediaitem", line 197, in loadList
File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\out01-PYZ.pyz\openlp.plugins.presentations.lib.powerpointcontroller", line 138, in load_presentation
File "D:\OpenLP_Code\trunk\build\pyi.win32\OpenLP\out01-PYZ.pyz\openlp.plugins.presentations.lib.powerpointcontroller", line 159, in create_thumbnails
File "<COMObject <unknown>>", line 3, in Export
com_error: (-2147352567, 'Exception occurred.', (0, u'Microsoft Office PowerPoint 2003', u'Slide.Export : The path or file name for F://Rockdale%20Corps%20Church/SUNDAY%20WORSHIP/Song%20Word%20openLP/presentations/thumbnails/Announcements%20-%20Sunday%208th%20July%202012.ppt/slide1.png is invalid. Please check that the path and file name are correct.', u'', 0, -2147467259), None)
To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1022184/+subscriptions
References