Bug 102214 - Focusing in Impress w/ GTK3 integration unusably slow, ok without
Summary: Focusing in Impress w/ GTK3 integration unusably slow, ok without
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-15 19:55 UTC by Andres Freund
Modified: 2016-09-16 18:53 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
perf profile excerpt (3.35 KB, text/plain)
2016-09-15 19:55 UTC, Andres Freund
Details
strace excerpt (247.62 KB, text/plain)
2016-09-15 19:56 UTC, Andres Freund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Freund 2016-09-15 19:55:37 UTC
Created attachment 127344 [details]
perf profile excerpt

Hi,

After upgrading libreoffice on debian unstable (to 1:5.2.1-2, but previous 5.2 releases also are affected) it became unusably slow.  Every focus, even in a newly created document, of a text input element takes 10-15s.  Deleting libreoffice's profile doesn't change anything.

A fair amount of debugging revealed that that's only the case if the gtk3 integration is used. Uninstalling it restores acceptable speed.

Profiles while the 100% CPU periods all roughly look like in the first attached document. The non-opened (to reduce size) callers all lead back to OutputDevice::ImplUpdateAllFontData.

I've also attached a strace excerpt of one of the 100% period. There repeatedly seems to be a configmgrWriter thread started (c.f. clone() and prctl(PR_SET_NAME, "configmgrWriter\0") = 0), and several font files (like /usr/share/fonts/opentype/cantarell/Cantarell-Regular.otf) opened.

If there's anything I can do to help to nail this further...

Regards,

Andres
Comment 1 Andres Freund 2016-09-15 19:56:27 UTC
Created attachment 127345 [details]
strace excerpt
Comment 2 Andres Freund 2016-09-15 20:01:53 UTC
Debian bugs that might be relevant:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837356
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=836531

Note the first reports that a downgrade of gtk3 might solve the problem:
>  Downgrading Gtk3 to 3.20.9-1 fixes the bug!!
Comment 3 Julien Nabet 2016-09-16 18:53:26 UTC
Looking at the bugs you indicated, it seems already fixed with https://cgit.freedesktop.org/libreoffice/core/commit/?id=ef7abe81df10cb8a8c04afbb1fbe700f94e73f04