Bug 103181 - Object selection and edit freezes LibreOffice for tens of seconds
Summary: Object selection and edit freezes LibreOffice for tens of seconds
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
5.2.2.1 rc
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:5.2.3
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-13 12:07 UTC by Paulo Fino
Modified: 2016-10-15 04:05 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paulo Fino 2016-10-13 12:07:19 UTC
On 64 bit Arch Linux, updating Gnome to 3.22 (which is on Wayland by default) brought back the LibreOffice bug 1373933 (https://bugzilla.redhat.com/show_bug.cgi?id=1373933) dealt with in Fedora.

Description of problem:
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.

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

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 LO 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
Comment 1 Julien Nabet 2016-10-15 04:05:55 UTC
It should be fixed on 5.2.3 with https://cgit.freedesktop.org/libreoffice/core/commit/?h=libreoffice-5-2-3&id=2c91b27a968afb36b77e447dd623bbe81ea542f0

See https://wiki.documentfoundation.org/ReleasePlan/5.2#5.2.3_release

Don't hesitate to reopen this tracker if you still reproduce this with next LO version.