Created attachment 96932 [details]
'sample1' small SVG converted by ImageMagick
When you convert files to SVG format using ImageMagick, the file is converted to a rasterized image where each pixel is saved as a 'circle' that is 1x1. The converted file will have lots of lines like this: ' <circle cx="0" cy="0" r="1" fill="white"/> '
LibreOffice has problems opening such SVG files. When the file is relatively small, like attachment sample1.svg, LibreOffice takes about 30 seconds (on my system) to open the file. It appears to hang, but recovers. When the file is relatively large, like attachment sample2.svg, LibreOffice simply hangs/freezes (Not Responding).
Created attachment 96933 [details]
'sample2' large SVG converted by ImageMagick
tested under Win7x64 using LibO 18.104.22.168
I confirm opening sample1 file is quite slow in LibO
No problem with sample1.svg it opened with ~3-5 sec in LO 4.1 and 4.3
sample2.svg not tested because it is very large.
I can reproduce the issue on my 32GB RAM Intel Core i7-4771 CPU @ 3.50GHz system with Windows 8.1. With both LibreOffice versions 22.214.171.124 and master (126.96.36.199.alpha0+ Build ID: 1845b6af3991ca5521eef48aafe1d0489e2ff8f6) : opening sample1.svg takes about 15 seconds, and sample2.svg is still not opened after 60 seconds (I closed the application at that point).
Created attachment 113196 [details]
callgrind results: opening and closing 'sample1'
LibreOffice ~master commit f1359d1221b335c4856821948f89868f021135eb Date: Fri Feb 6 18:24:46 2015 +0100 on Fedora 21: opening and clising 'sample1.svg' callgrind results.
Created attachment 113197 [details]
callgrind results: opening 'sample2' (terminated after 20 minutes)
LibreOffice ~master commit f1359d1221b335c4856821948f89868f021135eb Date: Fri Feb 6 18:24:46 2015 +0100 on Fedora 21: opening 'sample2.svg' callgrind results (terminated after 20 minutes).
Reproduced with LibreOffice 188.8.131.52
** Please read this message in its entirety before responding **
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present on a currently supported version of LibreOffice
(5.0.5 or 5.1.0) https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the version of LibreOffice and
your operating system, and any changes you see in the bug behavior
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave
a short comment that includes your version of LibreOffice and Operating System
Please DO NOT
Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)
If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3)
2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword
Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa
Thank you for your help!
-- The LibreOffice QA Team This NEW Message was generated on: 2016-02-21
reproduced with LibreOffice: Version: 184.108.40.206 Build ID: 5e3e00a007d9b3b6efb6797a8b8e57b51ab1f737
on Windows 10 version 1511 build 10586.104
opening sample1.svg takes about ~27 seconds
opening sample2.svg was still not opened after about ~60 seconds at which point i closed the application.
Think this is a WONTFIX
I doubt such files are used anywhere and I don't see how we could fix this.
One can import them in any LO document in reasonable time (considering the humongous file sizes and pixel representation).
For editing in draw every circle element gets a node object.
For the first file that's 79*119 nodes. (It's Over 9000!!!)
The second file has 757.350 circles/pixels. I doubt there is any editor out there who can handle this. These files are clearly not made for editing in svg format.
(In reply to JoNi from comment #10)
> Think this is a WONTFIX
> I doubt such files are used anywhere and I don't see how we could fix this.
> One can import them in any LO document in reasonable time (considering the
> humongous file sizes and pixel representation).
> For editing in draw every circle element gets a node object.
> For the first file that's 79*119 nodes. (It's Over 9000!!!)
> The second file has 757.350 circles/pixels. I doubt there is any editor out
> there who can handle this. These files are clearly not made for editing in
> svg format.
I tried opening both files with ImageMagick 7.0.1 on Windows Home 10 (build 10587.318).
'sample1.svg' opens in about 1 second. 'sample2.svg' opens in roughly 15 seconds. Both open fine without issues and/or 'hangs/freezes'.