1 |
On Sat, 25 Feb 2006, Willie Wong wrote: |
2 |
|
3 |
> On Sat, Feb 25, 2006 at 08:35:44PM -0300, Penguin Lover Urs Schuetz squawked: |
4 |
> > strace acroread |
5 |
> > shows that acroread 7.0.5-r1 uses a very long time with fonts |
6 |
> > and nonexistent directories like /usr/psres and |
7 |
> > /usr/share/fonts/afms//usr/share/fonts/afms: |
8 |
> > |
9 |
> > ... |
10 |
> > open("/usr/X11R6/lib/X11/fonts/Type1/fences.ttf", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOTDIR (Not a directory) |
11 |
> > open("/usr/X11R6/lib/X11/fonts/Type1/l048013t.pfa", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOTDIR (Not a directory) |
12 |
> > getdents64(5, /* 0 entries */, 4096) = 0 |
13 |
> > close(5) = 0 |
14 |
> > ... |
15 |
> > |
16 |
> > and "hangs" here for about 10 seconds, with CPU 100% used. This |
17 |
> > happens nine times during startup. |
18 |
> > |
19 |
> |
20 |
> from the forums: |
21 |
> |
22 |
> http://forums.gentoo.org//viewtopic-t-420754-highlight-acroread.html?sid=5118566558bdce7510b095567e7b6d4c |
23 |
> |
24 |
> the file ~/.adobe/Acrobat/7.0/Cache/UnixFnt07.lst stores a list |
25 |
> of all the fonts on your system (which, in my case, gives 9387 |
26 |
> entries) and apparently it tries to open those one by one on |
27 |
> startup and look inside (what for, I don't know). |
28 |
|
29 |
Thanks for the forums link, and the other hints! The following |
30 |
ideas from the forum solved the slow startup: |
31 |
|
32 |
as user: |
33 |
rm ~/.adobe/Acrobat/7.0/Cache/UnixFnt07.lst |
34 |
ln -s /dev/null ~/.adobe/Acrobat/7.0/Cache/UnixFnt07.lst |
35 |
|
36 |
and as root: |
37 |
cd /usr/share/fonts |
38 |
chmod 750 100dpi 75dpi cyrillic misc ukr |
39 |
|
40 |
(I did not test this for side effects yet, try at your own risk!) |
41 |
|
42 |
Now the acroread startup times are back to normal. It helps to |
43 |
remove unused plugins in /opt/Acrobat7/Reader/intellinux/plug_ins |
44 |
|
45 |
Urs |
46 |
|
47 |
|
48 |
-- |
49 |
gentoo-user@g.o mailing list |