Summary: | fc-cache memory usage is huge | ||
---|---|---|---|
Product: | fontconfig | Reporter: | Dan McMahill <dmcmahill> |
Component: | fc-cache | Assignee: | Keith Packard <keithp> |
Status: | RESOLVED NOTABUG | QA Contact: | |
Severity: | blocker | ||
Priority: | high | CC: | dhalik |
Version: | 2.4 | ||
Hardware: | SPARC | ||
OS: | Solaris | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | font files which trigger excessive memory usage |
Description
Dan McMahill
2006-10-13 10:53:00 UTC
Created attachment 7406 [details]
font files which trigger excessive memory usage
Hello, Will there ever be any investigation into this? It is definitely still present in the latest release of 2.4.2. We've been wrestling with this for some time as neither the latest version of Freetype2 or Fontconfig seems to be able to allow parsing of these few files while they are compressed. From what I've seen this bug has been around for quite some time now. If they are uncompressed it reads them fine, but as soon as they are re-compressed fc-cache hangs and sucks up all available memory. I'm posting this at Freetype too since no one seems to be able to agree on whether this is a Freetype issue or Fontconfig issue. Here is a quick view of what is happening using truss: munmap(0xFF3A0000, 6623) = 0 stat("/usr/openwin/lib/X11/fonts/misc/hanglg16.pcf.Z", 0xFFBFF80C) = 0 open("/usr/openwin/lib/X11/fonts/misc/hanglg16.pcf.Z", O_RDONLY) = 4 fcntl(4, F_SETFD, 0x00000001) = 0 fstat(4, 0xFFBFF548) = 0 mmap(0x00000000, 312004, PROT_READ, MAP_PRIVATE, 4, 0) = 0xFF020000 close(4) = 0 brk(0x000489A8) = 0 brk(0x000649A8) = 0 brk(0x000649A8) = 0 brk(0x0006C9A8) = 0 brk(0x0006C9A8) = 0 brk(0x000709A8) = 0 brk(0x000709A8) = 0 brk(0x000709A8) = 0 brk(0x000729A8) = 0 Here is the link to the ticket I opened on Freetype's bug system: https://savannah.nongnu.org/bugs/index.php?19910 Looks like it was freetype after all. They've since fixed the bug and I can confirm that their latest CVS does indeed work. https://savannah.nongnu.org/bugs/index.php?19910 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.