On Sat, 25 Feb 2006, Willie Wong wrote:

> 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).

Thanks for the forums link, and the other hints! The following
ideas from the forum solved the slow startup:

as user:
rm ~/.adobe/Acrobat/7.0/Cache/UnixFnt07.lst
ln -s /dev/null ~/.adobe/Acrobat/7.0/Cache/UnixFnt07.lst

and as root:
cd /usr/share/fonts
chmod 750 100dpi 75dpi cyrillic misc ukr

(I did not test this for side effects yet, try at your own risk!)

Now the acroread startup times are back to normal. It helps to
remove unused plugins in /opt/Acrobat7/Reader/intellinux/plug_ins

Urs


-- 
gentoo-user@gentoo.org mailing list

Reply via email to