Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-18-2006, 10:25 AM   #1
LQ Newbie
Registered: Jul 2006
Distribution: Ubuntu Dapper
Posts: 4

Rep: Reputation: 0
Why are all GTK apps launching very slowly??

I'm running Dapper. I've got a P4-3Ghz machine with 1GB Ram. It's dual booted with XP. All GTK based apps seem to launch really slowly (Gedit takes 12 seconds, GCalctool takes 10 seconds, Gnometris takes 12 seconds etc..). I'm not 100% sure what apps are and are not GTK based. But Xmms launches fast, and the python IDLE editor launches fast too. The hard drive light is NOT on during the delay.

I initially fixed this problem by upgrading the kernel with the linux-686-smp package and running prelink. But after installing a few other things (like F-spot, Ipodder etc.) prelinking and rebooting, the apps all started launching slowly again.

I've watched the strace output on launching Gedit from a terminal. Everything flies by until I reach the chunks of read() statements that appear to involve fonts. These statements go by significantly more slowly than the rest. The same behaviour was seen watching an strace of Gcalctool.

I think my system's got about 1200+ fonts on it. I have no idea if that's a lot or not. I've deleted the font-cache files in my /usr/share/X11/fonts/100dpi and 75dpi folders and forced a recache with fc-cache -v -f. It seemed to recache everything, but these apps still launch slowly.

Again, it only *appears* to be a problem for GTK based apps.

Also, once the app is open, launching a second instance of it is much much quicker. And the apps work fine once they are opened.

During the launching delay, the CPU usage is a steady 100% for those 10 or 15 seconds.

Anybody got any ideas?
Old 07-19-2006, 04:43 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Not really sure if I can be of some help. If you are running GNOME, then most apps will be GTK2. IDLE is not GTK2 (I think its built using TK) and XMMS is GTK1 so thats why they are probably starting quite fast. From what you mention, it does seem like it could be a problem with having so many fonts. Did the problem start before or after you added the fonts?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Launching Apps rjkfsm Linux - Newbie 3 07-11-2005 07:44 PM
Launching apps under Root User Name MDBlueIce Linux - Software 2 08-20-2004 05:15 AM
Compiling from sources - Launching Apps... ArthurDent Linux - Newbie 3 07-10-2004 08:57 AM
Launching apps in a virtual desktop lockejr Linux - Software 0 03-03-2004 06:00 PM
Firewall rules make gtk+2 apps start horrendously slowly jhaiduce Linux - Software 2 07-10-2003 12:54 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration