• Bug#836531: Bug#837356: libreoffice-gtk3: Impress is unusably slow on G

    From Rene Engelhard@21:1/5 to Daniel Serpell on Thu Sep 15 12:10:01 2016
    XPost: linux.debian.bugs.dist

    Hi,

    On Wed, Sep 14, 2016 at 10:53:13PM -0300, Daniel Serpell wrote:
    [...] An strace shows this sequence repeated many times:
    [...]
    [pid 28769] open("/usr/share/fonts/opentype/cantarell/Cantarell-Regular.otf", O_RDONLY) = 35
    [pid 28769] fstat(35, {st_mode=S_IFREG|0644, st_size=69076, ...}) = 0
    [pid 28769] mmap(NULL, 69076, PROT_READ, MAP_SHARED, 35, 0) = 0x7fddcc13b000 [pid 28769] close(35) = 0
    [pid 28769] clock_gettime(CLOCK_PROCESS_CPUTIME_ID, {41, 526077669}) = 0 -------------------------------------------------------------------------

    Note that the name of the font file is always the same. After
    uninstalling the package libreoffice-gtk3, the dialog opens at once.

    And given LO (AFAIK) does nothing with cantarell itself but:

    $ apt-cache show fonts-cantarell
    Package: fonts-cantarell
    Version: 0.0.16-1
    Installed-Size: 174
    Maintainer: Debian Fonts Task Force <pkg-fonts-devel@lists.alioth.debian.org> Architecture: all
    Depends: fontconfig
    Description-en: sans serif font family designed for on-screen readability
    The Cantarell font family is designed as a contemporary Humanist sans serif
    and is particularly designed for on-screen reading on mobile devices at small
    sizes, such as phones and tablets.
    .
    This is the open font officially chosen by default for the GNOME 3 desktop and
    for Fedora branding materials.
    .
    Regular and bold weights are provided for now. Italics are planned.
    .
    Each font file currently contains 391 glyphs, and fully support the
    following writing systems: Basic Latin, Western European, Catalan,
    Baltic, Turkish, Central European, Dutch and Afrikaans.
    Description-md5: caccfeef0878116a50e0182694ad1168
    Multi-Arch: foreign
    Homepage: http://live.gnome.org/CantarellFonts
    Tag: made-of::font, role::data, x11::font
    Section: fonts
    Priority: optional
    Filename: pool/main/f/fonts-cantarell/fonts-cantarell_0.0.16-1_all.deb
    Size: 64364
    MD5sum: 605bf43fed0bbeb868f528c50a3ed9ae
    SHA1: a6bbf699d6a1079a67ad94126eda43ec071df800
    SHA256: 1b655c76b8e3d7cd363be4d4c2dbb9e09f54e74564bad4ff1ef44b8336f4bfd3

    I'm running libreoffice under Gnome desktop.

    .. I'd actually believe this is a Gtk3 and/or GNOME bug?

    What happens if you downgrade Gtk3 to 3.20.9-1 or so? (http://snapshot.debian.org/package/gtk%2B3.0/3.20.9-1/#libgtk-3-0_3.20.9-1)

    This report and #836531 (I think) started happening with the new Gtk, because at least for #836531

    [2016-08-20] libreoffice 1:5.2.0-2 MIGRATED to testing (Britney)
    [2016-08-14] Accepted 1:5.2.0-2 in unstable (medium) (Rene Engelhard)

    ^ this happened before

    [2016-08-30] Accepted 3.21.5-1 in unstable (low) (Andreas Henriksson)

    ^this and the report was from 2016-09-03....

    Cc'ing #836531 and -gtk-gnome.

    Regards,

    Rene

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Daniel Serpell@21:1/5 to Rene Engelhard on Thu Sep 15 18:50:02 2016
    XPost: linux.debian.bugs.dist

    Hi!

    On Thu, Sep 15, 2016 at 5:59 AM, Rene Engelhard <rene@debian.org> wrote:

    Hi,

    On Wed, Sep 14, 2016 at 10:53:13PM -0300, Daniel Serpell wrote:
    [...] An strace shows this sequence repeated many times:
    [...]
    [pid 28769] open("/usr/share/fonts/opentype/cantarell/Cantarell-Regular.otf", O_RDONLY) = 35
    [pid 28769] fstat(35, {st_mode=S_IFREG|0644, st_size=69076, ...}) = 0
    [pid 28769] mmap(NULL, 69076, PROT_READ, MAP_SHARED, 35, 0) = 0x7fddcc13b000
    [pid 28769] close(35) = 0
    [pid 28769] clock_gettime(CLOCK_PROCESS_CPUTIME_ID, {41, 526077669}) = 0 -------------------------------------------------------------------------

    Note that the name of the font file is always the same. After
    uninstalling the package libreoffice-gtk3, the dialog opens at once.

    And given LO (AFAIK) does nothing with cantarell itself but:

    $ apt-cache show fonts-cantarell
    Package: fonts-cantarell
    Version: 0.0.16-1
    Installed-Size: 174
    Maintainer: Debian Fonts Task Force <pkg-fonts-devel@lists.alioth.debian.org> Architecture: all
    Depends: fontconfig
    Description-en: sans serif font family designed for on-screen readability
    The Cantarell font family is designed as a contemporary Humanist sans serif
    and is particularly designed for on-screen reading on mobile devices at small
    sizes, such as phones and tablets.
    .
    This is the open font officially chosen by default for the GNOME 3 desktop and
    for Fedora branding materials.
    .
    Regular and bold weights are provided for now. Italics are planned.
    .
    Each font file currently contains 391 glyphs, and fully support the
    following writing systems: Basic Latin, Western European, Catalan,
    Baltic, Turkish, Central European, Dutch and Afrikaans.
    Description-md5: caccfeef0878116a50e0182694ad1168
    Multi-Arch: foreign
    Homepage: http://live.gnome.org/CantarellFonts
    Tag: made-of::font, role::data, x11::font
    Section: fonts
    Priority: optional
    Filename: pool/main/f/fonts-cantarell/fonts-cantarell_0.0.16-1_all.deb
    Size: 64364
    MD5sum: 605bf43fed0bbeb868f528c50a3ed9ae
    SHA1: a6bbf699d6a1079a67ad94126eda43ec071df800
    SHA256: 1b655c76b8e3d7cd363be4d4c2dbb9e09f54e74564bad4ff1ef44b8336f4bfd3

    I'm running libreoffice under Gnome desktop.

    .. I'd actually believe this is a Gtk3 and/or GNOME bug?

    What happens if you downgrade Gtk3 to 3.20.9-1 or so? (http://snapshot.debian.org/package/gtk%2B3.0/3.20.9-1/#libgtk-3-0_3.20.9-1)


    Downgrading Gtk3 to 3.20.9-1 fixes the bug!!

    So, it is probably a bug in Gtk3 or in the way that LO uses Gtk (because no other Gtk app seems affected).


    Cc'ing #836531 and -gtk-gnome.


    Thanks,

    Daniel.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rene Engelhard@21:1/5 to Daniel Serpell on Fri Sep 16 12:40:01 2016
    XPost: linux.debian.bugs.dist

    tag 837356 + upstream
    forwarded 837356 caolanm@redhat.com
    retitle 836531 LibreOffice unusably slow on GNOME 3 with libreoffice-gtk3 installed with Gtk 3.21
    thanks

    Hi,

    On Thu, Sep 15, 2016 at 12:46:17PM -0300, Daniel Serpell wrote:
    .. I'd actually believe this is a Gtk3 and/or GNOME bug?

    What happens if you downgrade Gtk3 to 3.20.9-1 or so? (http://snapshot.debian.org/package/gtk%2B3.0/3.20.9-1/#libgtk-3-0_3.20.9-1)


    Downgrading Gtk3 to 3.20.9-1 fixes the bug!!

    Does that also help for the "-gtk3 makes it slow in xfce" bug (#836531)?
    Then those indeed are the same one and should be merged.

    So, it is probably a bug in Gtk3 or in the way that LO uses Gtk (because no other Gtk app seems affected).

    Upstream says:

    10:51 <@caolan> might be the same thing as
    https://bugzilla.redhat.com/show_bug.cgi?id=1373933 which I'm
    looking at right now
    10:52 < IZBot> bug 1373933: Fedora-['libreoffice'] unspecified/unspecified NEW
    object selection and edit freezes libreoffice for several seconds
    10:52 < _rene_> 17:57 < _rene_> caolan: remember on how I asked about Gtk
    3.21.x? http://bugs.debian.org/837356...
    10:52 <@caolan> I'd say its the same thing, especially cause of "Downgrading
    Gtk3 to 3.20.9-1 fix it"
    10:52 <@caolan> I'm bisecting gtk itself at the moment
    10:53 < _rene_> yeah, sounds like it afte reading the rhbz bug

    Regards,

    Rene

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rene Engelhard@21:1/5 to Rene Engelhard on Fri Sep 16 14:30:06 2016
    XPost: linux.debian.bugs.dist

    tag 837356 + upstream
    tag 837356 + fixed-upstream
    tag 837356 + patch
    thanks

    Hi,

    On Thu, Sep 15, 2016 at 10:59:52AM +0200, Rene Engelhard wrote:
    Cc'ing #836531 and -gtk-gnome.

    For -gtk-gnomes sake:

    commit 0f116135f4a5033ce4e9dfa19f10624701fa615c
    Author: Matthias Clasen <mclasen@redhat.com>
    Date: Fri May 6 10:12:14 2016 -0400

    Avoid emitting ::style-set by name

    GtkStyle is deprecated, but we still emit ::style-set quite
    a bit, so lets at least not be slow while doing it.

    in Gtk caused it, but it's fixed in LOs master (https://cgit.freedesktop.org/libreoffice/core/commit/?id=ef7abe81df10cb8a8c04afbb1fbe700f94e73f04)

    Will backport.

    Regards,

    Rene

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)