After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 729880 - FontChooser takes more than 10 seconds to open
FontChooser takes more than 10 seconds to open
Status: RESOLVED DUPLICATE of bug 730118
Product: gtk+
Classification: Platform
Component: Widget: GtkFontChooser
3.12.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 728589 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-05-09 14:40 UTC by János Illés
Modified: 2014-05-15 14:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description János Illés 2014-05-09 14:40:25 UTC
When I click the font chooser button in any GTK3 application, it takes around 10 seconds to open the selector window.

I demonstrate it with gtk3-widget-factory on this video:
https://www.youtube.com/watch?v=RWhuNwPAX6I

I attached strace to gtk3-widget-factory and the process generates sendmsg calls during the "freeze". 

Here is a syscall count output:

(~) % sudo strace -c -p 9404               
Process 9404 attached
^CProcess 9404 detached
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
  0.00    0.000000           0        38        15 read
  0.00    0.000000           0        43           write
  0.00    0.000000           0        15           open
  0.00    0.000000           0        15           close
  0.00    0.000000           0        36        22 stat
  0.00    0.000000           0        27           fstat
  0.00    0.000000           0      2771           poll
  0.00    0.000000           0        29           mmap
  0.00    0.000000           0        21           munmap
  0.00    0.000000           0       215           brk
  0.00    0.000000           0       789           writev
  0.00    0.000000           0        13           access
  0.00    0.000000           0         3           recvfrom
  0.00    0.000000           0     40658           sendmsg
  0.00    0.000000           0      5345      3964 recvmsg
  0.00    0.000000           0         1           uname
  0.00    0.000000           0        24           fcntl
  0.00    0.000000           0         1           readlink
  0.00    0.000000           0        15         2 futex
  0.00    0.000000           0         1           restart_syscall
------ ----------- ----------- --------- --------- ----------------
100.00    0.000000                 50060      4003 total


I have quite a few fonts installed, most notably from this repository:
https://github.com/w0ng/googlefontdirectory/tree/master/fonts
Comment 1 Sébastien Wilmet 2014-05-15 12:41:36 UTC
*** Bug 728589 has been marked as a duplicate of this bug. ***
Comment 2 Emmanuele Bassi (:ebassi) 2014-05-15 14:07:42 UTC
I think this is a duplicate of bug 730118. lots of sendmsg/recvmsg would be consistent with saturating the session bus for accessibility.

*** This bug has been marked as a duplicate of bug 730118 ***