Created attachment 73935 [details] minimum file showing the problem To reproduce: * Create new presentation * Insert SVG picture inside * Create another shape * Link them together with a connector line * Save the file * Open it once again Result: a new window opens, and immediately closes before the file could be rendered. It looks like a crash, but isn't as the application is still running. Expected: open the file
Reproducible with Version 4.0.1.0+ (Build ID: 05d97f486fc1db564d9c7b372ba2e7a867502c8) under Ubuntu 12.04 x86-64 Best regards. JBF
Comment on attachment 73935 [details] minimum file showing the problem mimetype fixed
On pc Debian x86-64 with master sources updated today, I just opened the file attached but it didn't close. However, nothing appears and I noticed this in console logs: warn:legacy.tools:5174:1:xmloff/source/draw/shapeimport.cxx:192: XMLShapeImportHelper::restoreConnections() was not called! Cédric: should we put Thorsten or Radek on cc?
Radek/Thorsten: put you in cc after all since it's in Impress
*** Bug 60490 has been marked as a duplicate of this bug. ***
Same issue in Draw. Insert two SVG images and connect them with a connector. File will no longer open.
This fails in svx/source/unodraw/unoshape.cxx:2290, when restoreConnections() tries to set the EndShape attribute - which in this file is a draw:frame (the trick to have both svm and svg file for one pic). And the SvxShape's GraphicShape seems vanished at that point.
Experiencing the same issue with 4.0.2.2 release on Windows.
SdXMLFrameShapeContext passes its attribute list to all nested images. That means they all try to register themselves with the same ID in SdXMLShapeContext::AddShape, but of course only the first one succeeds. The problem is that this might not be the shape that is actually selected (as in this case, where the first one is PNG, but multiImageImportHelper::solveMultipleImages selects the second one, which is SVG).
David Tardon committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=30b248dfe5bfb8a0649e36f22c943b3feb2f1385 fdo#60075 open drawings with connector attached to SVG 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.
David Tardon committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=4f4f450eaf9dad85d28fcd58b01c0f51ff0bd5ef fdo#60075 need to return context when available 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.
Still reproduced on daily build: Version 4.0.4.0+ (Build ID: 19e60e1a0507e041bbbbd2bf639782e990f7a55) TinderBox: MacOSX-Intel@27-OSX_10.7.0-gcc_4.2.1_llvm, Branch:libreoffice-4-0, Time: 2013-05-03_14:30:25
Wenging Zhou: it's fixed on 4.1 branch so it'll be only on 4.1.0 for the moment (see target on Whiteboard of this bugtracker). I don't know if the fixes can be cherry-picked on 4.0 branch
(In reply to comment #13) > I don't know if the fixes can be cherry-picked on 4.0 branch They can--I just haven't done it yet
Related: bug 64512
*** Bug 61549 has been marked as a duplicate of this bug. ***
David Tardon committed a patch related to this issue. It has been pushed to "libreoffice-4-0": http://cgit.freedesktop.org/libreoffice/core/commit/?id=31c3ae3e367bb3403935ac04a134771d3c8096a1&h=libreoffice-4-0 fdo#60075 open drawings with connector attached to SVG It will be available in LibreOffice 4.0.5. 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.
*** Bug 67453 has been marked as a duplicate of this bug. ***
*** Bug 67687 has been marked as a duplicate of this bug. ***