FS#51360 - [libreoffice-fresh][gtk3] Object selection and edit freezes LibreOffice for tens of seconds

Attached to Project: Arch Linux
Opened by Paulo Fino (burafino) - Thursday, 13 October 2016, 12:07 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 17 October 2016, 14:42 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:
On 64 bit Arch Linux, updating Gnome to 3.22 brought back the LibreOffice bug 1373933 (https://bugzilla.redhat.com/show_bug.cgi?id=1373933) dealt with in Fedora.

This problem seems to affect all LibreOffice apps, but is mostly visible in Impress and Draw. Any time you select an object (a shape, a block of text, etc), the app freezes for several seconds, using 100% CPU. If you want to edit the object (a block of text), again the app freezes for a few seconds, and then the selection is changed to an edit cursor and you can finally type text. With this slow speed, Impress and Draw are completely unusable for any serious work.
Plus the running app's icon does not show.

Additional info:
* The current version is stated as 5.2.2-1, last updated on 2016-10-01 08:32 UTC.

Steps to reproduce:
1. Launch LibreOffice Draw or Impress
2. Open a document
3. Click on an object to edit it

Possible solution:
Starting Gnome on X instead of Wayland doesn't help.
But the fix from comment 4 in the original bug works and brings the icon back:

export SAL_USE_VCLPLUGIN=gtk
before launching e.g.
libreoffice --draw

The bug apparently has to do with emitting ::style-set by name.
GtkStyle is deprecated, but libreoffice still emits ::style-set quite a bit, so lets at least not be slow while doing it.

The bug has apparently been fixed in Fedora for libreoffice-5.2.2.1-2.fc25
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Monday, 17 October 2016, 14:42 GMT
Reason for closing:  Fixed
Comment by Andreas Radke (AndyRTR) - Thursday, 13 October 2016, 14:20 GMT
Don't use latest gtk3 based vcl. Gnome guys terribly broke it. Use gtk2, kde or generic vcl for now.
Comment by Vlad-Mihai Sima (vladmihaisima) - Sunday, 16 October 2016, 18:39 GMT
Not sure if related but probably: I get random character emphasis (bold, italics) in LibreOffice calc - attached screenshot which is for a spreadsheet with only normal characters (check also the menu in screenshot for ex). Problem appears if I right-click and select "Format Cells..". This is also solved by using "export SAL_USE_VCLPLUGIN=gen; libreoffice". If you do not think it is related please tell me and I can open new bug.
Comment by Paulo Fino (burafino) - Sunday, 16 October 2016, 23:19 GMT
Bug has apparently been fixed in new update 5.2.2-2
At least editing in Draw works alright when app run normally, without `export SAL_USE_VCLPLUGIN=gtk`.

Loading...