On Sat, Feb 25, 2006 at 08:35:44PM -0300, Penguin Lover Urs Schuetz squawked:
> strace acroread
> shows that acroread 7.0.5-r1 uses a very long time with fonts
> and nonexistent directories like /usr/psres and
> /usr/share/fonts/afms//usr/share/fonts/afms:
> 
> ...
>  open("/usr/X11R6/lib/X11/fonts/Type1/fences.ttf", 
> O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOTDIR (Not a directory)
>  open("/usr/X11R6/lib/X11/fonts/Type1/l048013t.pfa", 
> O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOTDIR (Not a directory)
>  getdents64(5, /* 0 entries */, 4096)    = 0
>  close(5)                                = 0
> ...
> 
> and "hangs" here for about 10 seconds, with CPU 100% used. This
> happens nine times during startup.
> 

from the forums:

http://forums.gentoo.org//viewtopic-t-420754-highlight-acroread.html?sid=5118566558bdce7510b095567e7b6d4c

the file ~/.adobe/Acrobat/7.0/Cache/UnixFnt07.lst stores a list of all
the fonts on your system (which, in my case, gives 9387 entries) and
apparently it tries to open those one by one on startup and look
inside (what for, I don't know). 

A temporary work around is provide in the link above, which amounts to
removing that font file prior to starting acroread. If I do that,
acroread starts under 5 seconds for every one of the five times I
tried. 

Notice that /usr/bin/acroread is just a batch file to launch the
executable, so if you are adventurous, you can go dig inside it a bit. 

W
-- 
Seen in LINAC @ Fermi National Accelerator Laboratory:
  (A series of signs, each with a different "name")
 This 7833 Power Amplifier Tube is to be Called:
       Gassy
       Sparky
       Leaky
       Old Number 9
       Just Plain Dead
       Nick O'Tyme
Sortir en Pantoufles: up 105 days, 16:47
-- 
gentoo-user@gentoo.org mailing list

Reply via email to