Bug 61899 - SVG: sample .svg very slow on resize or scale
Summary: SVG: sample .svg very slow on resize or scale
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
4.0.2.1 rc
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks: SVG-Import Writer-Images
  Show dependency treegraph
 
Reported: 2013-03-06 11:40 UTC by Caolán McNamara
Modified: 2018-11-29 16:01 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
sample svg (753.88 KB, image/svg+xml)
2013-03-06 11:40 UTC, Caolán McNamara
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Caolán McNamara 2013-03-06 11:40:41 UTC
Created attachment 76011 [details]
sample svg

Attach .svg is incredibly slow to resize and rescale. Appears to me to be much faster in 3.6.5
Comment 1 Caolán McNamara 2013-03-08 15:06:55 UTC
caolanm->thb: any suggestions ?
Comment 2 Thorsten Behrens (allotropia) 2013-03-10 21:37:22 UTC
Getting lots of 

#5  0x00007ffff0dbbce1 in XGetImage () from /usr/lib64/libX11.so.6
#6  0x00007fffe6378691 in X11SalBitmap::ImplCreateDIB(unsigned long, SalX11Screen, long, long, long, long, long, bool) () from /build/tdf/libo-work/solver/unxlngx6.pro/installation/opt/program/libvclplug_genlo.so
#7  0x00007fffe6379241 in X11SalBitmap::AcquireBuffer(bool) () from /build/tdf/libo-work/solver/unxlngx6.pro/installation/opt/program/libvclplug_genlo.so
#8  0x00007ffff363b371 in BitmapReadAccess::ImplCreate(Bitmap&) () from /build/tdf/libo-work/solver/unxlngx6.pro/installation/opt/program/libvcllo.so
#9  0x00007ffff363b6b4 in BitmapReadAccess::BitmapReadAccess(Bitmap&) () from /build/tdf/libo-work/solver/unxlngx6.pro/installation/opt/program/libvcllo.so
#10 0x00007ffff3631319 in Bitmap::AcquireReadAccess() () from /build/tdf/libo-work/solver/unxlngx6.pro/installation/opt/program/libvcllo.so
#11 0x00007ffff3623a7d in Bitmap::ImplMakeGreyscales(unsigned short) () from /build/tdf/libo-work/solver/unxlngx6.pro/installation/opt/program/libvcllo.so
#12 0x00007ffff362599d in Bitmap::Convert(BmpConversion) () from /build/tdf/libo-work/solver/unxlngx6.pro/installation/opt/program/libvcllo.so
#13 0x00007ffff361bbac in AlphaMask::AlphaMask(Bitmap const&) () from /build/tdf/libo-work/solver/unxlngx6.pro/installation/opt/program/libvcllo.so
#14 0x00007ffff248a242 in drawinglayer::impBufferDevice::paint (this=0x7fffffff6580, fTrans=0) at /build/tdf/libo-work/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx:301
#15 0x00007ffff249e33a in drawinglayer::processor2d::VclProcessor2D::RenderTransparencePrimitive2D (this=0x242eac0, rTransCandidate=...) at /build/tdf/libo-work/drawinglayer/source/processor2d/vclprocessor2d.cxx:1050

here - all called from VclProcessor2D::RenderMaskPrimitive2DPixel. Rendering to a bitmap, then getting the content, converting it to an alpha mask. Extra-slow when going via X server...
Comment 3 Glutanimate 2013-03-16 12:59:28 UTC
I can confirm this bug on 4.0.2.1 pre-release / Ubuntu 12.04.2 LTS but not on LO 3.6.5.2.

General SVG display performance seems to have drastically decreased with 4.x. See here for a related bugreport:

https://bugassistant.libreoffice.org/show_bug.cgi?id=61230
Comment 4 ape 2013-03-20 11:35:13 UTC
(In reply to comment #0)
> Created attachment 76011 [details]
> sample svg
> 
> Attach .svg is incredibly slow to resize and rescale. Appears to me to be
> much faster in 3.6.5

Caolán,
Look at bug 62461 please
--
ape
Comment 5 A. Fakhouri 2013-04-17 20:12:44 UTC
I can confirm this issue with 4.0.1.2 on Fedora i686.
The performance of svg, as well as other images (especially big-size images and/or when they are in big documents) is very poor.
Comment 6 Roland Baudin 2015-11-19 13:08:23 UTC
The issue (very slow scrolling with svg images) is still there with LibreOffice 5.0.2.2 on Ubuntu 15.10.

Additional information:

- same issue with or without OpenGL rendering
- a bit faster with antialiasing disabled, but still slow
Comment 7 Buovjaga 2016-12-28 19:18:41 UTC
Testing resize of inserted SVG in writer: the speed is equal in 3.6 and 5.4.

Please give it more testing and close as WORKSFORME, if you agree.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.4.0.0.alpha0+
Build ID: 6c2b8cb5b136b63b3ea295528b845d37b5dd9000
CPU Threads: 8; OS Version: Linux 4.8; UI Render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on December 28th 2016

Arch Linux 64-bit
Version 3.6.7.2 (Build ID: e183d5b)
Comment 8 QA Administrators 2017-12-29 03:28:32 UTC Comment hidden (obsolete)
Comment 9 Fafa 2018-11-29 08:07:48 UTC
Version: 6.3.0.0.alpha0+ (x64)
Build ID: 0f25a3c36f27fd51453b9a9115f236b83c143684
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-27_20:06:55
Locale: zh-TW (zh_TW); UI-Language: en-US
Calc: threaded

Bug not reproducible in version