FS#34878 - [libreoffice] writer crash on document with SVG image
Attached to Project:
Arch Linux
Opened by Andrew Cowie (afcowie) - Monday, 22 April 2013, 07:39 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Friday, 28 February 2014, 22:34 GMT
Opened by Andrew Cowie (afcowie) - Monday, 22 April 2013, 07:39 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Friday, 28 February 2014, 22:34 GMT
|
Details
Description:
libreoffice 4.0 is crashing when attempting to open (actually, when attempting to render on the screen) any of my documents that have a [previously existing] image (think the logo at the top of a letterhead). I happen to know that image is an SVG, created by Inkscape. When run from the command line, the error reported is: $ libreoffice -norestore Document.odt terminate called after throwing an instance of 'rtl::MalformedUriException' $ It is worth emphasizing that libreoffice 3.x on Ubuntu (which I just migrated from) opened these documents fine. Manually unzipping the .odt file, editing the context.xml to remove the <draw> element with the picture, rezipping it results in a document that opens fine. Subsequently re-importing the same SVG logo image into the document worked fine. Additional info: * package version(s) libreoffice-writer 4.0.2-3 Steps to reproduce: I can attach a document reproducing the crash if that's of interest; I assume this is an upstream problem but it needed to be reported. AfC |
This task depends upon
Closed by Gerardo Exequiel Pozzi (djgera)
Friday, 28 February 2014, 22:34 GMT
Reason for closing: Upstream
Additional comments about closing: https://bugs.freedesktop.org/show_bug.cg i?id=75582
Friday, 28 February 2014, 22:34 GMT
Reason for closing: Upstream
Additional comments about closing: https://bugs.freedesktop.org/show_bug.cg i?id=75582
Yeah, I thought of that; it wasn't originally, but I installed it subsequently and no change.
AfC
Apologies for posting something that is at all corporate; most of the documents that are crashing for me are proposals and invoices; this document is just a one pager "introduction" is the same as the intro page on my website. Not my intention to shameless plug. I have a safe PDF version if you need it for comparison.
AfC
AfC
then run from command line, there are lots (50) of lines:
Lookup Table Format4: specific interpretation needed!
and one line at the end:
terminate called after throwing an instance of 'rtl::MalformedUriException'
https://wiki.documentfoundation.org/Releases/4.0.3/RC1
Maybe someone can make an LibreOffice bugreport?
https://wiki.documentfoundation.org/BugReport
The problem are the images embedded from those files, concretely in the xlink:href.
In the logo image:
<image
y="0"
x="0"
id="image2449"
height="392"
width="306"
sodipodi:absref="/home/andrew/Desktop/logo.gif"
xlink:href="logo.gif" />
In the text image:
<image
xlink:href="/home/andrew/Sites/com/operationaldynamics/www/images/logo/type.gif"
sodipodi:absref="/home/andrew/Sites/com/operationaldynamics/www/images/logo/type.gif"
width="1743"
height="163"
id="image3612"
x="0"
y="0" />
Change to xlink:href="file:///home/andrew/Sites/com/operationaldynamics/www/images/logo/type.gif" and the crash is gone (although I suspect you will want to compeltely remove the <image> element, as it seems unwanted).
I am attaching a minimal testcase. Add this svg to a libreoffice file, and save the file. You will receive the rtl::MalformedUriException
AfC
terminate called after throwing an instance of 'rtl::MalformedUriException'
Andrew Cowie have you filled/found a report upstream?