Bug 562 : CGFontGetHMetrics returned NULL on startup with Mac OS X
Last modified: 2007-06-10 20:24




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P3
Severity:
normal

 

Reporter:
dornellas
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-05-21 15:56
I don't know what's going on, suddenly the processign don't start at all
(at mac os x). Everytime i start it appears a message with
'java.lang.nullpointerexception'... please help!!! at the office, with a pc
running windows xp, i don't have any problems, but at home, in my mac
(intel), the program don't start (since yesterday).

I've already downloaded again, and also downloaded previous versions of
processing, and it still doesn't work.

Two of my friends who started with processing now, like me, have the same
problem at intel mac!!!...
Additional Comment #1 From fry 2007-05-21 16:52
what is the actual error message? open up console.app and paste the full
text of the NullPointerException message here.

also, have you installed the developer preview of java 1.6?
Additional Comment #2 From dornellas 2007-05-21 17:56
I bevlieve that the error message that you asked is this one:

2007-05-21 20:22:39.633 JavaApplicationStub[3489] Apple AWT -
CGFontGetHMetrics returned NULL.
[LaunchRunner Error] processing.app.Base.main(String[]) threw an exception:
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:393)
at
javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:176)
at javax.swing.text.StyleConstants.setFontFamily(StyleConstants.java:334)
at processing.app.EditorConsole.<init>(EditorConsole.java:93)
at processing.app.Editor.<init>(Editor.java:216)
at processing.app.Base.<init>(Base.java:146)
at processing.app.Base.main(Base.java:101)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:88)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
at apple.launcher.JavaApplicationLauncher.launch


To the question 'have you installed the developer preview of java 1.6?',
i'm almost sure that not. Should i? If yes, why was processing working
until saturday (19 may) and suddenly i'm getting this error?
Additional Comment #3 From fry 2007-05-21 18:45
no, don't install java 1.6, it's likely to cause more trouble.

from that crash log, it's having a problem finding the font monaco on your
system. is that possible?

another possibility is that monaco, or some other font, on your system is
corrupt, and breaking font support.
Additional Comment #4 From dornellas 2007-05-22 02:37
That's right! Saturday i started a new webproject and changed the fonts
enable settings! Thanks, now it's working!!!! Many thanks
Additional Comment #5 From fry 2007-05-22 05:13
i don't quite follow, what did you do to fix it?
Additional Comment #6 From dornellas 2007-05-22 05:21
I had the Monaco font disabled at Font Book, so the system couldn't find it.
Additional Comment #7 From fry 2007-06-10 20:24
i'm amazed that font book lets you do that since monaco is a system font.
oh well, i guess we'll add something to check for such a situation.