Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141492 - GS using 800MB of VSZ memory for a 15KB eps file
Summary: GS using 800MB of VSZ memory for a 15KB eps file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL: http://www.cups.org/str.php?L1850
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-23 06:56 UTC by Thomas Heiserowski
Modified: 2006-12-05 13:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Heiserowski 2006-07-23 06:56:54 UTC
I originally reported that bug at cups.org (#1850). As it turned out, there seems to be a problem with the way ghostscript-esp-8.15.2_p20060520 handles the search path. I do not know whether this is a problem specific to my system or a general one. Since I had to edit the ebuild to fix it I wanted to report it here as well.

In short (full report at cups.org): my system got _very_ slow when using eps2eps or ps2pdf14 on LaTex generated PostScript. When I ran strace on the process I discovered that gs hang at reading font definitions. I could reproduce that bug with certain eps/ps files but not all of them.

I fixed the problem by 1) editing the ebuild (I removed nearly all font paths) and 2) running "unset GS_LIB" as a normal user (GS_LIB was set to "~./fonts/" where fonts resided that crashed the system).

My ebuild diff:

101c101
<       myconf="${myconf} --with-fontconfig --with-fontpath=/usr/share/fonts:/usr/share/fonts/ttf/zh_TW:/usr/share/fonts/ttf/zh_CN:/usr/share/fonts/arphicfonts:/usr/share/fonts/ttf/korean/baekmuk:/usr/share/fonts/baekmuk-fonts:/usr/X11R6/lib/X11/fonts/truetype:/usr/share/fonts/kochi-substitute"
---
>       myconf="${myconf} --with-fontconfig --with-fontpath=/usr/share/fonts/default/ghostscript:/usr/share/fonts/default/Type1"

At cups.org it was suggested that a fontconfig aware gs should be able to find all fonts anyway without having to have such a long font path.

Further reading: http://www.cups.org/str.php?L1850

Any ideas where the source of the problem lies?

Cheers,
Thomas
Comment 1 Greg Watson (linuxkrn) 2006-12-05 13:40:03 UTC
The real problem here is the broken font files causing problems for GS.  As per your link, CUPS.org suggested removing the broken fonts.  That is the preferred solution rather then removing search paths.