Bug 71139 - Crash when opening a presentation that contains a SVG with invalid external reference
Summary: Crash when opening a presentation that contains a SVG with invalid external r...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
4.0.2.2 release
Hardware: All All
: medium critical
Assignee: Not Assigned
URL:
Whiteboard: (target:4.2.0)
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-01 20:12 UTC by Vitalij Zadneprovskij
Modified: 2013-11-22 15:48 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
A presentation with many images (208.33 KB, application/vnd.oasis.opendocument.presentation)
2013-11-01 20:12 UTC, Vitalij Zadneprovskij
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vitalij Zadneprovskij 2013-11-01 20:12:41 UTC
Created attachment 88509 [details]
A presentation with many images

Maybe my problem is linked to 66935:
https://bugs.freedesktop.org/show_bug.cgi?id=66935

But I can attach the file that causes the problem.
To me, the file looks quite simple.
It just contains some written things and images.

The file has been created on this computer few hours ago.
Comment 1 Vitalij Zadneprovskij 2013-11-02 17:14:18 UTC
Found the reason of the bug. The file contained an SVG image.

The workaround is the following:
1. rename the file as a zip file
2. open it an go to the attachments folder
3. remove the SVG image
4. rename the file as and ODP file.

I hope this will be useful for someone.

However, I reproduced the problem also on Windows XP.
I believe LibreOffice has a bug with SVG files.
Comment 2 Maxim Monastirsky 2013-11-02 17:43:49 UTC
Confirmed using 4.1.2.3 under Fedora 19 (64-bit). This SVG contains links to some jpg from 'F:\Appunti\jug-roma\' folder, which can't be located. Removing those links resolves the problem.
Comment 3 Christina Rossmanith 2013-11-02 19:25:20 UTC
Seems to be fixed:
Version: 4.2.0.0.alpha0+
Build ID: 2c92030ff07aff9b10e49844343390925b81545c

With a debug build there is a warning 

warn:legacy.osl:29405:1:svgio/source/svgreader/svgnode.cxx:432: Null-Pointer in child node list (!)

but the file is opened skipping the linked image not present.
Comment 4 Maxim Monastirsky 2013-11-02 20:03:34 UTC
Indeed, seems fixed as of Version: 4.2.0.0.alpha0+
Build ID: b7e5ab6f65eb682bfa200459d745d3bc4056e42a
TinderBox: Win-x86@42, Branch:master, Time: 2013-10-24_22:59:23
Crash with 4.1.3 on the same machine.