Bug 1509059 - Libreoffice impres is very slow processing my presentation (stick to 1 core)
Summary: Libreoffice impres is very slow processing my presentation (stick to 1 core)
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: libreoffice
Version: 27
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Caolan McNamara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-02 20:26 UTC by Bart Ratgers
Modified: 2018-11-07 20:59 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-07 20:29:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Bart Ratgers 2017-11-02 20:26:58 UTC
Description of problem:
I have a huge presentation 200 slides that containing a lot of cross-reference to the different slides. When i try to open the document,  I can't use libreoffice for 50 minutes or longer. The CPU processing is stick to 1 core.  

When I remove/de-install: libreoffice-gtk3 and libreoffice-gtk2,then the processing time is reduced by 4 minutes, and i can use the user interface. The CPU processing is spread out to 2 cores.

So it looks likes that using the libreoffice-gtk3 modules, libreoffice will be limited to use 1 core for processing.


Version-Release number of selected component (if applicable):
libreoffice-gtk2-5.3.7.2-1.fc26.x86_64
libreoffice-gtk3-5.3.7.2-1.fc26.x86_64



How reproducible:
Create a hoge impress document with a lot of images and references. Try to open the and edit the document with and without libreoffice-gtk2 and libreoffice-gtk3.

See the differences between processing. 

Steps to Reproduce:
1.Create a huge impress (200 slides with a lot of cross references) document and save this one
2.Re-open and edit the document


Actual results:
- The user interface became unusable;
- The program is freezing for 50 minutes;
- The CPU utilization is high 100% 
- The libreoffice proces is stick to 1 core 

Expected results:
- The user interface is usable
- The CPU load is high
- The libreoffice proces is spread to multiple cores. 


Additional info:
The seems to be a lot of performance issues in combination of libreoffice-gtk2 and libreoffice-gtk3. Some are solved but not al.

See:
- https://bugzilla.redhat.com/show_bug.cgi?id=1303562
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837356
- https://ubuntuforums.org/showthread.php?t=2322879

Comment 1 Caolan McNamara 2017-11-03 11:56:59 UTC
I love the "create a huge impress document with 200 slides" step to reproduce :-), any chance of a concrete already existing example ?

There is no difference in the (minimal amount) threading between vcl plugs, idle handing is definitely different however which might be a factor

Comment 2 Bart Ratgers 2017-11-03 13:53:00 UTC
I sent you in private the 'complex' document.

Comment 3 Bart Ratgers 2018-02-01 22:21:58 UTC
Any news?

Comment 4 Bart Ratgers 2018-03-15 13:11:18 UTC
The problem stil exist with LibreOffcie  version 5.4.5.1 and Fedora 28

Comment 5 Bart Ratgers 2018-03-15 13:12:38 UTC
Is there some-one else who I can sent the document?

Comment 6 Caolan McNamara 2018-03-15 16:50:42 UTC
no, I'm what there is on this. My suggestion at http://nabble.documentfoundation.org/Why-does-the-GTK3-vcl-sal-plugin-default-to-SvpSalGraphics-software-rendering-tt4232928.html#a4232945 might help this. Or it might be something else entirely, performance bugs tend to be tarpits

Comment 7 Caolan McNamara 2018-05-10 15:08:56 UTC
Does libreoffice >= 5.4.6.2-4.fc27 make any difference now (for gtk3) after the improvements for bug 1396729 ?

Comment 8 Bart Ratgers 2018-05-15 07:15:26 UTC
The speed of libre-office is somewhat improved, especially the graphics. But libre-office in combination with gtk3 is stil unusable for large presentations. 


With libreoffice-gtk3-6.0.3.2-10.fc28.x86_64 installed and enabled. 
- My CPU Core stay at 99% busy for the soffice.bin process
- I can't use the user interface, it continues blocked
- Mouse respons is much to slow. 


Without any gtk library installed
- The CPU sticks at 12% and the Xwayland process between 35% till 69%. I
- I can stil use the interface.
- Mouse respons very quickly.

Comment 10 Bart Ratgers 2018-11-07 20:28:21 UTC
I have installed Fedora 29 with libreoffice 6.1.2.1 and everything working well. 
The load is spread about all cores and the editing the presentation is working well.

Comment 11 Bart Ratgers 2018-11-07 20:29:17 UTC
Please You can close this bug

Comment 12 Caolan McNamara 2018-11-07 20:59:54 UTC
that's great news, wish I knew what made the difference


Note You need to log in before you can comment on or make changes to this bug.