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 328441 - gnome-screensaver-dialog is slooooow
gnome-screensaver-dialog is slooooow
Status: RESOLVED INVALID
Product: gnome-screensaver
Classification: Deprecated
Component: dialog
2.13.x
Other All
: Normal normal
: ---
Assigned To: gnome-screensaver maintainers
gnome-screensaver maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-24 15:37 UTC by Bill Nottingham
Modified: 2006-01-25 17:34 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
strace of gnome-screensaver-dialog (49.72 KB, application/x-gzip)
2006-01-24 15:38 UTC, Bill Nottingham
Details
strace #2 (172.29 KB, application/x-gzip)
2006-01-24 15:58 UTC, Bill Nottingham
Details

Description Bill Nottingham 2006-01-24 15:37:32 UTC
Please describe the problem:
So, from the time I hit a key to the time I see the unlock dialog is often
multiple seconds - sometimes up to 10 seconds.

I figured I'd see what it was doing.

gnome-screensaver-dialog:
- attempts to open 1638 files
- succeeds in opening 685 files

This very well may not be g-s-d's fault, but something needs fixed in the stack.



Steps to reproduce:
1. start gnome-screensaver
2. lock screen
3. hit a key


Actual results:
... churn ...

strace attached.

Expected results:
dialog pops up like *snap* that!

Does this happen every time?
The amount of time varies, probably due to disk cache issues.

Other information:
$ rpm -q gnome-screensaver gtk2 pango fontconfig freetype
gnome-screensaver-2.13.5-4
gtk2-2.8.10-4
pango-1.11.2-1
fontconfig-2.3.93-4
freetype-2.1.10-5.1
Comment 1 Bill Nottingham 2006-01-24 15:38:10 UTC
Created attachment 58022 [details]
strace of gnome-screensaver-dialog

Here's the strace. Warning: ~1 MB
Comment 2 William Jon McCann 2006-01-24 15:42:16 UTC
Are you using a Fedora themed dialog?  It uses glade.

Also there is some profiling code that can be enabled at build time.  Can you enable it and run the gnome-screensaver-dialog command in a terminal, and post the results here?  Thanks.
Comment 3 William Jon McCann 2006-01-24 15:43:54 UTC
Oh, and is this with user switching enabled or disabled?
Comment 4 Bill Nottingham 2006-01-24 15:47:30 UTC
Stock dialog (odd, why can't the 'blank screen only' option use a themed dialog :) ), and user switching disabled.

I suspect the problem lies in fontconfig/freetype somewhere, from an examination of what it's trying to open.
Comment 5 Bill Nottingham 2006-01-24 15:58:36 UTC
Created attachment 58023 [details]
strace #2

Here's the strace when built with PROFILE_LOCK_DIALOG.
Comment 6 William Jon McCann 2006-01-24 17:04:06 UTC
OK, yeah now that I actually look at the trace... oh my god.  I guess you have a lot more fonts than I do but still.  Any ideas about what we can do?  Is there a way to make the loading lazy or more on-demand?
Comment 7 Bill Nottingham 2006-01-24 17:47:46 UTC
Not sure. Perhaps need to check with the fontconfig maintainers?
Comment 8 Bill Nottingham 2006-01-25 17:34:01 UTC
OK, appears to have been a local fontconfig issue.