Created attachment 97164 [details] Problematic SVG file When I try to open SVG file in LibreOffice Draw, which is created with Inkscape, I am getting error: General Error. General input/output error. OS: Windows 7 SP1 x64
Please try to first open/new a Draw document, and then Insert > Image. Your problem has likely the same reason as bug 32248. Opening your document in LibreOffice I do not get an error message, but the text in the svg graphic is missing.
"Insert > Image" works, even text is shown correctly. But such object is not editable, which means that fileopen feature is still required. --- Did you tried to open this file with Windows version of LO? I suppose this may be the key condition to get this error. --- I can make Inkscape svg without a text - with simple rectangle for example - it will produce the same error. --- I have some guess about this error: if I remove Inkscape-specific data from SVG (like inkscape:label="Layer 1") - file starts to open without problems.
Reproducible, tested using Windows 8.1 with LibreOffice Version: 4.3.0.0.alpha1+ Build ID: 48eccfb812284f43ba24c3be3903537ce954944d TinderBox: Win-x86@39, Branch:master, Time: 2014-05-16_00:35:19 (In reply to comment #2) > I have some guess about this error: if I remove Inkscape-specific data from > SVG (like inkscape:label="Layer 1") - file starts to open without problems. Mmh, nice research :-). So if I understand correctly, LibreOffice just outputs a general error because it can't handle that data? Kind regards, Joren
On Windows 7 sp1, 64-bit en-US With current Debug TB39 builds of master we get the General input/output error With release build the SVG opens blank Version: 4.3.4.1 Build ID: bc356b2f991740509f321d70e4512a6a54c5f243 Version: 4.4.0.0.alpha2 Build ID: 24f0a5815f581dd9a7f09d30213a379edee6e9ac -=- Opened the attachment 97164 [details] -- hello.svg with Inkscape 0.48.5 r10040 and save-as plain svg to remove Inkscape specifics. No change, opens blank on TDF release builds, or throws General IO error opening with debug builds -=- Create two new SVGs in Inkscape, each with just two text objects a normal and a vertical text sample (attached). Saved once as Inkscape normal SVG then again as a Plain SVG. In LibreOffice both throw General input/output error when opened with debug build of master, and both open empty of lettering in a release build. -=- Also confirming on Linux with 32-bit debug build Version: 4.4.0.0.alpha1+ Build ID: d59b9b4af36148e4d8df8f3e3492116d378642e2 TinderBox: Linux-rpm_deb-x86@45-TDF-dbg, Branch:master, Time: 2014-11-06_03:11:43 No crash or error, but with gdb running get these warnings on opening the SVG, they are blank with no text showing. The unknown factory seems like an issue. [vsfoote@localhost program]$ ./soffice warn:sfx.dialog:1742:1:sfx2/source/dialog/filtergrouping.cxx:361: already have an element for WordPerfect warn:sfx.dialog:1742:1:sfx2/source/dialog/filtergrouping.cxx:361: already have an element for writerweb8_writer_template warn:sfx.dialog:1742:1:sfx2/source/dialog/filtergrouping.cxx:361: already have an element for writerglobal8 warn:xmloff.core:1742:1:xmloff/source/core/xmlimp.cxx:760: SvXMLImport::endElement: popped context has wrong prefix warn:xmloff.core:1742:1:xmloff/source/core/xmlimp.cxx:760: SvXMLImport::endElement: popped context has wrong prefix warn:legacy.osl:1742:1:unotools/source/config/moduleoptions.cxx:585: unknown factory warn:sfx.control:1742:1:sfx2/source/control/dispatch.cxx:1354: Childwindow slot missing: 10365 warn:sfx.control:1742:1:sfx2/source/control/dispatch.cxx:1354: Childwindow slot missing: 10365 warn:sfx.control:1742:1:sfx2/source/control/dispatch.cxx:1354: Childwindow slot missing: 10365
Created attachment 109427 [details] Zip of two SVG text only, one saved as Inkscape normal and copy as Plain SVG
Thanks! Incorrect import of text is another problem. And I think it is not related to General I/O error (which is the main problem of this report). To test solely IO error, you can use geometric shapes instead of text in SVG - they are imported correctly.
Created attachment 109478 [details] zip of three versions of Complex SVG @vvort (In reply to vvort from comment #6) > Thanks! > Incorrect import of text is another problem. > And I think it is not related to General I/O error (which is the main > problem of this report). > To test solely IO error, you can use geometric shapes instead of text in SVG > - they are imported correctly. Yes, I agree the issue is opening SVG with debug builds. Loss of text is just incidental and needs to be another bug. Adjusting the title. Also, to make things interesting. The issue with the debug build filter import is affecting Inkscape's Cairo based 1.1 SVG. But not other non-Cairo SVG. Inkscape plain SVG is also Cairo based and it causes the error on the Debug builds. That kind of matches your finding with deletion of selected Inkscape format tagging. Attached is another example (the DIA render-test.dia sample) one in DIA's Cairo based SVG, the other in their native SVG. The Cairo SVG will throw the General input/output error, the non-Cairo SVG opens. Also, opened the non-Cairo SVG in Inkscape and then saved as Plain SVG (Cairo based), it then causes the General IO error with the Debug builds. All will open in a non-Debug build (Windows or Linux) of LibreOffice 4.3.x or master. And of course in other SVG renderers like FF.
The non-display of Text when an SVG is opened in Draw is bug 32248, suppressed text is likely not related to this issue.
Fixed here: https://gerrit.libreoffice.org/12472
Vort committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=e353ecd3dbbe773f114908a3fd77d4ed460f00ed fdo#77268 SVG Import: fix null pointer dereference It will be available in 4.4.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Migrating Whiteboard tags to Keywords: (filter:svgOpen) [NinjaEdit]