Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

kCGFontSharedCacheKeyMaxQ ANYONE????

CGFontKey.c:227: failed assertion `id[k].qx <= kCGFontSharedCacheKeyMaxQ'

I am getting this error (logged in the console) when an Application dies. The application that dies most is Final Cut 5.1.4

I can find VERY little information about this error but I have:
- Deleted all added fonts
- Reloaded my system fonts off the Tiger install DVD via Pacifist
- Used Onyx to delete font caches
- Ran Font Doctor against the system. It could find no issues.

Anyone have an idea before I reload?

Quad - 2.5 Ghz G5, Mac OS X (10.4), GeForce 7800 GT, 3G RAM, 250GB & 500GB internals

Posted on Jun 15, 2007 4:54 AM

Reply
34 replies

Jun 15, 2007 6:23 PM in response to Daniel Slagle

What do you mean by "the application dies"? Is it crashing? If so, please post the crash log.

The constant "kCGFontSharedCacheKeyMaxQ" isn't a publicly defined constant and appears to be used internally by the CoreGraphics framework. (I actually found the string embedded in the following file: "/System/Library/Frameworks/ApplicationServices.framework/. ./Frameworks/CoreGraphics.framework/.../CoreGraphics"

FWIW, I'll post the surrounding context of where it's found:

<pre>
CGFont
<CGFont %p>
Adobe
Japan1
HiraMinPro-W3
HiraMinPro-W6
HiraKakuPro-W3
HiraKakuPro-W6
SIL-Hei-Med-Jian
CNS1
LiHeiPro
Korea1
AppleGothic
count == set->count
CGFontIndexSet.c
%u-%s
id[k].qx <= kCGFontSharedCacheKeyMaxQ
CGFontKey.c
id[k].qy <= kCGFontSharedCacheKeyMaxQ
Key %p:
[ %g %g %g %g ]
8-bit
8-bit-pixel-aligned
LCD
LCD-pixel-aligned
standard
light
medium
strong
standard rotated
light rotated
medium rotated
strong rotated
(%g, %g)
not shared
AppleFontSmoothing
CGFontQX
CGFontQY
</pre>

I'm not sure if playing around with the font smoothing style, or assuring fonts with the names mentioned above are installed would do anything or not.

If you have the crash log, though, that might give a better picture of what's going on...



Dual 2.7GHz PowerPC G5 w/ 2.5 GB RAM; 17" MacBook Pro w/ 2 GB RAM - Mac OS X (10.4.9)

Jun 16, 2007 5:06 AM in response to MarkDouma®

Thanks Mark,

Yes the application dies. Poof. Gone. No logs in /Library/Logs/CrashReporter/ or ~/Library/Logs/CrashReporter/ or or /private/var/log/system.log just on line in the console.log

I am switching from Automatic Font smoothing to Medium "Best for Flat Screens" and see if that helps.

Since I reloaded all the fonts off the system disks and deleted extra ones I do not think that is the issue but I know near nothing about fonts other than how to add them.

Jun 16, 2007 5:15 AM in response to MarkDouma®

Well that was depressing... Set font smoothing. Log out. Log in. Start FireFox. It crashes. The whole console.log:

Mac OS X Version 10.4.9 (Build 8P135)
2007-06-16 08:06:52 -0400
2007-06-16 08:06:57.823 SystemUIServer[1930] lang is:en
2007-06-16 08:07:00.420 SystemUIServer[1954] lang is:en
CGFontKey.c:227: failed assertion `id[k].qx <= kCGFontSharedCacheKeyMaxQ'

Jun 17, 2007 9:17 AM in response to Daniel Slagle

Tried removing all files from
/Library/InputManagers
~/Library/InputManagers

on a hunch - No effect

2007-06-17 11:57:43.531 Final Cut Pro[370] * NSThread: ignoring exception ' * -[NSCFArray addObject:]: mutating method sent to immutable object' that raised during delayed perform of target 0x344b16e0 and selector 'updateSubSegmentWithPropertiesMainThread:'
2007-06-17 12:05:30.924 Final Cut Pro[370] * NSThread: ignoring exception ' * -[NSCFArray addObject:]: mutating method sent to immutable object' that raised during delayed perform of target 0x344b16e0 and selector 'updateSubSegmentWithPropertiesMainThread:'
2007-06-17 12:06:30.379 Final Cut Pro[370] * NSThread: ignoring exception ' * -[NSCFArray addObject:]: mutating method sent to immutable object' that raised during delayed perform of target 0x344b16e0 and selector 'updateSubSegmentWithPropertiesMainThread:'
2007-06-17 12:10:03.007 Final Cut Pro[370] * NSThread: ignoring exception ' * -[NSCFArray addObject:]: mutating method sent to immutable object' that raised during delayed perform of target 0x344b16e0 and selector 'updateSubSegmentWithPropertiesMainThread:'
2007-06-17 12:10:50.567 Final Cut Pro[370] * NSThread: ignoring exception ' * -[NSCFArray addObject:]: mutating method sent to immutable object' that raised during delayed perform of target 0x344b16e0 and selector 'updateSubSegmentWithPropertiesMainThread:'
CGFontKey.c:227: failed assertion `id[k].qx <= kCGFontSharedCacheKeyMaxQ'

Jun 18, 2007 4:10 AM in response to baltwo

LOL yes I see that. I spoke with several people including the local expert Dr. Smoke. He basically said the same thing with a few suggestions.

When he got back with me I was already "aggressively" deleting preferences out of the users library. In a nut shell: all effected applications and anything with a font setting or font in its name.

I would like to say "I think it is working right now" but I have said that 3 times before so I am going to wait a few days.
--
D aniel C. Slagle
Keeper of the "Unofficial" iMovie FAQ User uploaded filehttp:// iMovie.danslagle.com

Jun 19, 2007 9:29 AM in response to Daniel Slagle

If the problem is user specific, and you have already deleted all preference files, there are a couple of other things you can try:

1. Move your home ~/Library folder to the Desktop and restart and see if that fixes it (you'll want to rescue some things out of the folder later, being very judicious in what you put back)

2. Go through the root /Library folder looking for things belonging to the affected user ID (probably 501), such as

"/Library/Caches/com.apple.ATS/501/fonts.db"

and move them out and again restart.

One of the cache cleaning utilities that does a "deep" cleaning might be able to do this for you.

You might also try a Safe Mode boot and see if that helps--some things won't work in Safe Mode, but it is worth a shot. It also dumps some caches and might cure the problem.
Francine

User uploaded file
Francine
Schwieder

kCGFontSharedCacheKeyMaxQ ANYONE????

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.