Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-11-16
19:39 • Closed ticket [635242ffff]: font families broken on MacOS X plus 6 other cha... artifact: 2fa6697461 user: dkf
2002-11-15
22:30 • Ticket [635242ffff]: 2 changes artifact: c7821beb48 user: dkf
2002-11-07
23:14 • New ticket [635242ffff]. artifact: c1ce39d0a5 user: reowen

font families broken on MacOS X

Closed / Invalid635242ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-11-07 23:14:24
the command:
  font families
crashes on MacOS X. This is with the aqua version of Tk 8.4.1. Errors include a lot of lines similar to:

Nov  7 15:00:01 rowen /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Support/ATSServer: FOExceptionMainHandler caught a fatal exception at 0x0000b65c 

Nov  7 15:00:01 rowen /Applications/Utilities/Wish Shell.app/Contents/MacOS/Wish Shell: kCGErrorFailure : GetGlyphAddresses failed: status = 8

Nov  7 15:00:02 rowen /Applications/Utilities/Wish Shell.app/Contents/MacOS/Wish Shell: kCGErrorFailure : GetGlyphAddresses failed: status = 5

and always end with the following:

*** malloc_zone_malloc[29768]: argument too large: -12910904
Nov  7 15:00:02 rowen crashdump: Crash report written to: /Users/rowen/Library/Logs/CrashReporter/Wish Shell.crash.log

The crash is a problem but the GetGlpyshAddresses failed error is also a problem. It is the latter that actually caused me to discover the former.

I normally program in Python and use it's Tk interface called Tkinter. A Python font selection widget I'd written was giving "GetGlyphAddress failed" errors, though otherwise it worked fine (no crashes). It turns out that the list of fonts returned by Tk includes some that have very weird characters in their names (such as what appears to be Chinese). Python got the list from Tk just fine (with no errors) but when I used this list to create an option menu, that's when Tk started complaining about GetGlyphAddress failed errors. In Python my current workaround is to filter out any font names with non-ascii characters. The widget then runs without errors.
dkf Ticket [635242ffff]: 2 changes [History diff]2002-11-15 22:30:30
dkfplain2002-11-16 19:39:00
Logged In: YES 
user_id=79902

Please resubmit to tktoolkit project.
Log in (anonymous is fine) to add a comment.