| View previous topic :: View next topic |
| Author |
Message |
bobert n00b


Joined: 26 Sep 2002 Posts: 63 Location: Malaysia
|
Posted: Wed Mar 01, 2006 12:58 am Post subject: |
|
|
| Editing /usr/bin/acroread worked for me. It starts up way faster now about 1-2 secs. |
|
| Back to top |
|
 |
radfoj Guru


Joined: 31 Dec 2004 Posts: 490 Location: Tísek, Czech Republic
|
Posted: Mon Mar 06, 2006 6:38 pm Post subject: |
|
|
Hi,
its me, who started this thread. And dont know, what exactly changed, but acroread-7.0.5-r1 is starting same quickly as previous version. It takes today 18s for coldstart (for the first time) and next starts takes about 4s. Two minutes are gone. To be sure that its not due some hacks mentioned here I deleted ~/.adobe before measuring.
It seems, that the trick did upgrade of some package(s). But which? Dont know - should it be due media-libs/freetype-2.1.10 which I unmasked few days ago? Or have you any idea, what package(s) should be related?
Who knows, but I can say the topic is really SOLVED, without any hacking here and there. But only for me?
EDITED: hm, it seems that it wasnt freetype upgrade |
|
| Back to top |
|
 |
MrSMA n00b

Joined: 09 Sep 2003 Posts: 5
|
Posted: Wed Mar 08, 2006 2:13 pm Post subject: |
|
|
The /usr/bin/acroread was changed in acroread-7.0.5-r1:
| Code: | #!/bin/sh
#
FC=~/.adobe/Acrobat/7.0/Cache/UnixFnt07.lst
[ -s ${FC} ] && rm ${FC} && touch ${FC}
setLangENU() |
|
|
| Back to top |
|
 |
kamil1 n00b

Joined: 23 Jan 2006 Posts: 14
|
Posted: Wed Mar 08, 2006 6:45 pm Post subject: Re: The plot thickens... |
|
|
| ericding wrote: | | I'm still mystified as to why acroread looks inside the /usr/X11R6/lib/X11/fonts/*dpi directories on Gentoo but not on Fedora |
My guess is that a different configuration of fontconfig is to blame.
If you compare the <dir> directives at the top of /etc/fonts/fonts.conf on Gentoo and Fedora, you will see that Fedora only puts directories with scalable fonts there. On the other hand, Gentoo puts there /usr/share/fonts, which includes everything, and it also explicitly puts /usr/X11R6/lib/X11/fonts/75dpi and such, which are actually links to subdirectories of /usr/share/fonts.
Frankly, I think that the way Gentoo does it is screwed up. Apart from the slow startup of Acroread, another unwelcome side effect is that it exposes bitmap versions of popular fonts such as Times or Helvetica to applications like Firefox, which then use those ugly beasts to draw webpages that request those fonts by names (www.theregister.co.uk is an example, IIRC).
When I have more time, I'm going to remove all bitmap font dirs from my copy of /etc/fonts/fonts.conf and see what happens. My guess is that things will work much better, without requiring any strange hacks. |
|
| Back to top |
|
 |
ericding n00b

Joined: 04 Mar 2005 Posts: 11
|
Posted: Wed Mar 08, 2006 7:48 pm Post subject: Re: The plot thickens... |
|
|
| kamil1 wrote: | | When I have more time, I'm going to remove all bitmap font dirs from my copy of /etc/fonts/fonts.conf and see what happens. My guess is that things will work much better, without requiring any strange hacks. |
Yup, this did the trick for me. But fonts.conf is overwritten with any new installation of fontconfig. Is there a more permanent way to get this working, or should there be a bug filed for fontconfig? |
|
| Back to top |
|
 |
radfoj Guru


Joined: 31 Dec 2004 Posts: 490 Location: Tísek, Czech Republic
|
Posted: Wed Mar 08, 2006 8:58 pm Post subject: |
|
|
| MrSMA wrote: | The /usr/bin/acroread was changed in acroread-7.0.5-r1:
| Code: | #!/bin/sh
#
FC=~/.adobe/Acrobat/7.0/Cache/UnixFnt07.lst
[ -s ${FC} ] && rm ${FC} && touch ${FC}
setLangENU() |
|
Really? Wasnt it changed in -r2? - #125253 |
|
| Back to top |
|
 |
kamil1 n00b

Joined: 23 Jan 2006 Posts: 14
|
Posted: Wed Mar 08, 2006 9:42 pm Post subject: Re: The plot thickens... |
|
|
| ericding wrote: | | fonts.conf is overwritten with any new installation of fontconfig. Is there a more permanent way to get this working, or should there be a bug filed for fontconfig? |
I just filed that bug. |
|
| Back to top |
|
 |
cyB3r44rd n00b

Joined: 08 Mar 2006 Posts: 8
|
Posted: Fri Mar 10, 2006 5:38 pm Post subject: |
|
|
| it's really nice to have adobe back with normal startup speeds... there is only one problem though... couldn't you add full english support to it? it's quite funny to have a german adobe on a hungarian "speaking" system. english would be ok, of course. |
|
| Back to top |
|
 |
zkosty n00b

Joined: 15 Jun 2004 Posts: 18 Location: Orange, California
|
Posted: Mon Mar 20, 2006 3:56 am Post subject: |
|
|
I have just emerged app-text/acroread-7.0.5-r2 +cups -ldap +nls -nsplugin (update from 7.0.5-r1).
Cold start almost 2 minutes, which is worse that one minute previously. Then hot start 1 or 2 seconds.
Making sure the fix is there:
| Code: | $ head /usr/bin/acroread
#!/bin/sh
#
FC=~/.adobe/Acrobat/7.0/Cache/UnixFnt07.lst
[ -s ${FC} ] && rm ${FC} && touch ${FC}
setLangENU()
{
ST_LANG="ENU"
ST_LANG_SMALL="enu"
|
I oftern turn the computer off, so 2 minutes after every first time is not an option for me.
Should I wait for another fix or should I downgrade? |
|
| Back to top |
|
 |
spearson n00b

Joined: 31 Mar 2006 Posts: 1
|
Posted: Fri Mar 31, 2006 9:17 am Post subject: Font Cache |
|
|
I experienced slow startup and saw acroread accessing lots of "font" files when using strace
I saw on another thread someone used this command to speed up font loading.
This speeded acroread up for me. |
|
| Back to top |
|
 |
seanchiggins n00b

Joined: 30 Jul 2003 Posts: 27
|
Posted: Fri Mar 31, 2006 4:25 pm Post subject: |
|
|
Thanks for the tip!
Did it for me! Finally, acroreader is back to normal!
Sean _________________ http://www.systura.com - "Where information becomes knowledge." |
|
| Back to top |
|
 |
mu-sly Tux's lil' helper


Joined: 21 Sep 2003 Posts: 129 Location: Nottingham, UK
|
Posted: Sun Apr 16, 2006 9:52 pm Post subject: "fc-cache -fv" fixes it, apparently |
|
|
| seanchiggins wrote: | Thanks for the tip!
Did it for me! Finally, acroreader is back to normal!
Sean |
Also seems to have worked for me, though I had to...
... then run ...
... as root before it took effect. Anyway, seems to have worked, so I guess I'll know for sure next time after I've rebooted (assuming that Acroread is currently loading a little quicker because it might be currently still in a cache somewhere since I've only just loaded it).
Thanks for the tip anyway!  _________________ "Nothing says 'Obey me' like a bloody head on a post." - Stewie |
|
| Back to top |
|
 |
Ariem Apprentice


Joined: 13 Jun 2005 Posts: 296 Location: reykjavik
|
Posted: Mon Apr 17, 2006 10:19 am Post subject: |
|
|
But don't you have to run fc-cache each time you reboot?
That's not that practical...  |
|
| Back to top |
|
 |
mu-sly Tux's lil' helper


Joined: 21 Sep 2003 Posts: 129 Location: Nottingham, UK
|
Posted: Mon Apr 17, 2006 12:29 pm Post subject: fc-cache is not the fix |
|
|
| Ariem wrote: | But don't you have to run fc-cache each time you reboot?
That's not that practical...  |
Damn, I had no idea, but yes, it appears you are correct. This "fix" doesn't work unless you've run fc-cache since you booted.
Crap, so I'm still looking for a fix. Perhaps I will just down-version, as I'm getting really fed up with this (I work with PDFs almost every day).
To my mind, this problem, while not exactly a show-stopper, is significant enough that Acroread 7 should be in the unstable tree as it's clearly not working well enough. _________________ "Nothing says 'Obey me' like a bloody head on a post." - Stewie |
|
| Back to top |
|
 |
Ariem Apprentice


Joined: 13 Jun 2005 Posts: 296 Location: reykjavik
|
Posted: Mon Apr 17, 2006 12:38 pm Post subject: Re: fc-cache is not the fix |
|
|
| mu-sly wrote: | | Ariem wrote: | But don't you have to run fc-cache each time you reboot?
That's not that practical...  |
Damn, I had no idea, but yes, it appears you are correct. This "fix" doesn't work unless you've run fc-cache since you booted.
Crap, so I'm still looking for a fix. Perhaps I will just down-version, as I'm getting really fed up with this (I work with PDFs almost every day).
To my mind, this problem, while not exactly a show-stopper, is significant enough that Acroread 7 should be in the unstable tree as it's clearly not working well enough. |
Yep.. i also think it is unacceptable to use acroreader like this, so.. I'll downgrade it, or maybe emerge xpdf or any other pdf client. |
|
| Back to top |
|
 |
BigBaaadBob Guru


Joined: 19 Apr 2003 Posts: 342 Location: Swampscott, MA USA
|
Posted: Fri Apr 28, 2006 4:43 pm Post subject: |
|
|
In bug 125253 they recommend:
This fixed the problem for me!  |
|
| Back to top |
|
 |
pezplaya n00b

Joined: 19 Feb 2004 Posts: 58
|
Posted: Tue May 02, 2006 8:24 pm Post subject: |
|
|
to fix the problem about rebooting...
i made a file called fontc in /etc/init.d/
in the file i put:
| Quote: | #!/sbin/runscript
start(){
fc-cache -fv
}
|
and then rc-update add fontc default
everytime the computer boots it runs.
seems to have fixed the problem for me.
I have 7.0.5-r3 which has | Quote: | FC=~/.adobe/Acrobat/7.0/Cache/UnixFnt07.lst
[ -s ${FC} ] && rm ${FC} && touch ${FC} | by default. And it was still loading slow. _________________ Gentoo
Kernel: 2.6.20 |
|
| Back to top |
|
 |
mikegpitt Advocate


Joined: 22 May 2004 Posts: 3152
|
Posted: Tue May 02, 2006 10:15 pm Post subject: |
|
|
| If I'm not mistaken instead of running fc-cache at each boot it is to add xfs to the default runlevel. |
|
| Back to top |
|
 |
BigBaaadBob Guru


Joined: 19 Apr 2003 Posts: 342 Location: Swampscott, MA USA
|
Posted: Tue May 02, 2006 10:25 pm Post subject: |
|
|
| mikegpitt wrote: | | If I'm not mistaken instead of running fc-cache at each boot it is to add xfs to the default runlevel. |
FWIW: I don't do anything on reboots to make Acro start up fast now. I don't have xfs running. I just ran the above command once and for me it was problem solved ever since. YMMV. |
|
| Back to top |
|
 |
mikegpitt Advocate


Joined: 22 May 2004 Posts: 3152
|
Posted: Wed May 03, 2006 3:39 pm Post subject: |
|
|
| FYI - I finally upgraded to r2, I never did because I thought it didn't solve the problems. It was starting up resonably well, much nicer than r1, but when I deleted my .adobe it starts very fast (like it should). |
|
| Back to top |
|
 |
cisco.wizard n00b


Joined: 19 Apr 2004 Posts: 12
|
Posted: Wed Jun 21, 2006 4:02 pm Post subject: Upgrade to 7.0.8 |
|
|
Great news everyone. Updating to acroread 7.0.8 seems to fix the font issues that slow acroread load times. On my system it loaded in 9 seconds for the first load after rebooting.
| Code: | time acroread
real 0m9.909s
user 0m1.016s
sys 0m0.352s
|
7.0.8 is currently hard masked so add it to your /etc/portage/packages.unmask it you want to try it.
-Larry |
|
| Back to top |
|
 |
|