https://bugs.freedesktop.org/show_bug.cgi?id=56877

--- Comment #15 from Roman Eisele <b...@eikota.de> ---
And this is the faulty line/entry from eastasiax’ “registrymodifications.xcu”
file:

<item
oor:path="/org.openoffice.Office.Impress/MultiPaneGUI/ToolPanel/RecentlyUsedMasterPages"><node
oor:name="index_0" oor:op="replace"><prop oor:name="Name"
oor:op="fuse"><value>blackboard</value></prop><prop oor:name="URL"
oor:op="fuse"><value>file:///Users/eastasiax/Library/Application
Support/LibreOffice/3/user/template/blackboard.otp</value></prop></node></item>

If I install eastasiax’ “registrymodifications.xcu” file, but delete this line
before starting LibreOffice, everything seems to work fine -- no crash when
opening the sample .odp file.

This line seems to confirm my guessings (see previous comment) about the
reasons of this crash: the line points to a .otp file which contains the
recently used master page, but this file does not exists on my machine. Of
course, LibreOffice should not crash in this situation.


Please correct me (I am just a simple-minded bug wrangler), but I would guess
that there are two bug or three problems (bugs) involved here:

1) If an entry in “registrymodifications.xcu” points to a recently used Impress
master page (i.e., the entry begins with
   <item oor:path="/org.openoffice.Office.Impress/MultiPaneGUI/ToolPanel
   /RecentlyUsedMasterPages">),
LibreOffice should check if the file to which the entry points does really
exists; but it seems that LibreOffice currently does not check correctly for
this condition. To fix this bug, we just need to *ignore* (and remove) any
“registrymodifications.xcu” entries pointing to non-existing master page
documents.

2) If, by whatever reason, LibreOffice tries to load a master page from a file
which does not exist, it seems to call the CMX files importer. This is
obviously wrong.

3) Maybe an additional bug: If libcdr::readU32() tries to read from a file
which does not exist, or: a stream which is invalid, it would be better if it
would not just throw an exception which is not handled (as now), but if we
could manage to produce a meaningful error message.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to