[Libreoffice-bugs] [Bug 56877] FILEOPEN presentation CRASH due to some settings in "registrymodifications.xcu"

2012-11-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56877

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

blackboardfile:///Users/eastasiax/Library/Application
Support/LibreOffice/3/user/template/blackboard.otp

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
   ),
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


[Libreoffice-bugs] [Bug 56877] FILEOPEN presentation CRASH due to some settings in "registrymodifications.xcu"

2012-11-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56877

--- Comment #14 from Roman Eisele  ---
The crash (I refer myself always to the crash I have reproduced with eastasiax’
“registrymodifications.xcu” file installed, see comment #11) is related to the
area “Master Pages” → “Recently Used” in the “Tasks” pane.

If I open eastasiax’ sample file with his “registrymodifications.xcu” file
installed, the area “Master Pages” → “Recently Used” is opened and shows for a
short moment a blank rectangle with the text “Erzeuge Vorschau” (i.e.,
“Generating preview”) -- then LibO crashes.

So the crash seems related to the generation of the preview for a recently used
Impress master page. This would also match the function calls in the stack
backtrace -- especially:
sd::toolpanel::controls::MasterPageContainer(),
sd::toolpanel::controls::TemplatePageObjectProvider()
SfxApplication::LoadTemplate()
SfxFilterMatcher::GuessFilter()
filter::config::TypeDetection()

The latter lines seem to indicate that LibreOffice tries to guess the file type
of a recently used Master page. And by some unknown reason (is this the real
bug?) it guesses that there is a CMX file involved, i.e. a “Corel Metafile
Exchange” file; so LibO calls the CMXImportFilter; and when this filter tries
to check if the file is supported (CMXDocument::isSupported()), it crashes,
probably because there is no such file ... or whatever may be the reason.

-- 
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


[Libreoffice-bugs] [Bug 56877] FILEOPEN presentation CRASH due to some settings in "registrymodifications.xcu"

2012-11-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56877

--- Comment #13 from Roman Eisele  ---
Created attachment 69993
  --> https://bugs.freedesktop.org/attachment.cgi?id=69993&action=edit
When I install eastasiax' "registrymodifications.xcu", I get this crash with
LibO 3.6.3.2



(In reply to comment #11)
> I get exactly the same crash as eastasiax -- I mean, a crash with exactly
> the same stack backtrace.

I have to correct myself here -- the topmost lines of the stack backtraces are
different; but IMHO the important lines are identical, so the crash seems to
have the same reasons.

-- 
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


[Libreoffice-bugs] [Bug 56877] FILEOPEN presentation CRASH due to some settings in "registrymodifications.xcu"

2012-11-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56877

Roman Eisele  changed:

   What|Removed |Added

Summary|FILEOPEN presentation   |FILEOPEN presentation CRASH
   |crashes |due to some settings in
   ||"registrymodifications.xcu"

--- Comment #12 from Roman Eisele  ---
@ eastasiax:

Have you upgraded from some previous LibreOffice version? I want to know this,
because it is possible that this bug is due to some update problem; I mean,
that “registrymodifications.xcu” was corrupted somehow in the update process.


@ Julien Nabet:
Could you please try if you can reproduce the crash also on pc Debian x86-64,
if you install eastasiax’ “registrymodifications.xcu” file?
(Then this would be a cross-platform problem; else, the crash would be specific
to LibreOffice for Mac OS X.)

-- 
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