Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
acroread-7.0.5 is starting more than 2 minuts
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
bobert
n00b
n00b


Joined: 26 Sep 2002
Posts: 63
Location: Malaysia

PostPosted: Wed Mar 01, 2006 12:58 am    Post subject: Reply with quote

Editing /usr/bin/acroread worked for me. It starts up way faster now about 1-2 secs.
Back to top
View user's profile Send private message
radfoj
Guru
Guru


Joined: 31 Dec 2004
Posts: 490
Location: Tísek, Czech Republic

PostPosted: Mon Mar 06, 2006 6:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
MrSMA
n00b
n00b


Joined: 09 Sep 2003
Posts: 5

PostPosted: Wed Mar 08, 2006 2:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
kamil1
n00b
n00b


Joined: 23 Jan 2006
Posts: 14

PostPosted: Wed Mar 08, 2006 6:45 pm    Post subject: Re: The plot thickens... Reply with quote

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
View user's profile Send private message
ericding
n00b
n00b


Joined: 04 Mar 2005
Posts: 11

PostPosted: Wed Mar 08, 2006 7:48 pm    Post subject: Re: The plot thickens... Reply with quote

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
View user's profile Send private message
radfoj
Guru
Guru


Joined: 31 Dec 2004
Posts: 490
Location: Tísek, Czech Republic

PostPosted: Wed Mar 08, 2006 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
kamil1
n00b
n00b


Joined: 23 Jan 2006
Posts: 14

PostPosted: Wed Mar 08, 2006 9:42 pm    Post subject: Re: The plot thickens... Reply with quote

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
View user's profile Send private message
cyB3r44rd
n00b
n00b


Joined: 08 Mar 2006
Posts: 8

PostPosted: Fri Mar 10, 2006 5:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
zkosty
n00b
n00b


Joined: 15 Jun 2004
Posts: 18
Location: Orange, California

PostPosted: Mon Mar 20, 2006 3:56 am    Post subject: Reply with quote

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
View user's profile Send private message
spearson
n00b
n00b


Joined: 31 Mar 2006
Posts: 1

PostPosted: Fri Mar 31, 2006 9:17 am    Post subject: Font Cache Reply with quote

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.

Code:
fc-cache -fv


This speeded acroread up for me.
Back to top
View user's profile Send private message
seanchiggins
n00b
n00b


Joined: 30 Jul 2003
Posts: 27

PostPosted: Fri Mar 31, 2006 4:25 pm    Post subject: Reply with quote

Thanks for the tip!

Quote:
fc-cache -fv


Did it for me! Finally, acroreader is back to normal!

Sean
_________________
http://www.systura.com - "Where information becomes knowledge."
Back to top
View user's profile Send private message
mu-sly
Tux's lil' helper
Tux's lil' helper


Joined: 21 Sep 2003
Posts: 129
Location: Nottingham, UK

PostPosted: Sun Apr 16, 2006 9:52 pm    Post subject: "fc-cache -fv" fixes it, apparently Reply with quote

seanchiggins wrote:
Thanks for the tip!

Quote:
fc-cache -fv


Did it for me! Finally, acroreader is back to normal!

Sean


Also seems to have worked for me, though I had to...

Code:
rm -rf ~/.adobe


... then run ...

Code:
fc-cache -fv


... 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! :D
_________________
"Nothing says 'Obey me' like a bloody head on a post." - Stewie
Back to top
View user's profile Send private message
Ariem
Apprentice
Apprentice


Joined: 13 Jun 2005
Posts: 296
Location: reykjavik

PostPosted: Mon Apr 17, 2006 10:19 am    Post subject: Reply with quote

But don't you have to run fc-cache each time you reboot?
That's not that practical... :?
Back to top
View user's profile Send private message
mu-sly
Tux's lil' helper
Tux's lil' helper


Joined: 21 Sep 2003
Posts: 129
Location: Nottingham, UK

PostPosted: Mon Apr 17, 2006 12:29 pm    Post subject: fc-cache is not the fix Reply with quote

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
View user's profile Send private message
Ariem
Apprentice
Apprentice


Joined: 13 Jun 2005
Posts: 296
Location: reykjavik

PostPosted: Mon Apr 17, 2006 12:38 pm    Post subject: Re: fc-cache is not the fix Reply with quote

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
View user's profile Send private message
BigBaaadBob
Guru
Guru


Joined: 19 Apr 2003
Posts: 342
Location: Swampscott, MA USA

PostPosted: Fri Apr 28, 2006 4:43 pm    Post subject: Reply with quote

In bug 125253 they recommend:
Code:
fc-cache -f -v

This fixed the problem for me! :D
Back to top
View user's profile Send private message
pezplaya
n00b
n00b


Joined: 19 Feb 2004
Posts: 58

PostPosted: Tue May 02, 2006 8:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3152

PostPosted: Tue May 02, 2006 10:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
BigBaaadBob
Guru
Guru


Joined: 19 Apr 2003
Posts: 342
Location: Swampscott, MA USA

PostPosted: Tue May 02, 2006 10:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3152

PostPosted: Wed May 03, 2006 3:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
cisco.wizard
n00b
n00b


Joined: 19 Apr 2004
Posts: 12

PostPosted: Wed Jun 21, 2006 4:02 pm    Post subject: Upgrade to 7.0.8 Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum