FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1072 : "An unknown error occurred..." message on startup in OS X
Last modified: 2008-12-02 21:10
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
milesmeow
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2008-11-26 23:16
I'm running OS X 10.5.5. When I launch Processing I get a window with a
red Stop sign an inside it is an exclamation mark. On top of the Stop sign
I see a small Processing icon. The message of this window is "An unknown
error occurred while trying to load platform-specific code for your machine"
I have a bunch of other Processing versions on my machine. The latest one
I have is 0133, which I can launch with no problems.
running "java -version" from terminal gives me:
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
My /Systems/Library/Frameworks/JavaVM.framework/Versions directory looks
like this:
lrwxr-xr-x 1 root wheel 5 Oct 5 09:58 1.3 -> 1.3.1
drwxr-xr-x 3 root wheel 102 Sep 29 2007 1.3.1
lrwxr-xr-x 1 root wheel 5 Oct 5 09:58 1.4 -> 1.4.2
lrwxr-xr-x 1 root wheel 3 Feb 1 2008 1.4.1 -> 1.4
drwxr-xr-x 8 root wheel 272 Apr 7 2006 1.4.2
lrwxr-xr-x 1 root wheel 5 Oct 5 09:58 1.5 -> 1.5.0
drwxr-xr-x 8 root wheel 272 Apr 7 2006 1.5.0
lrwxr-xr-x 1 root wheel 5 Oct 5 09:58 1.6 -> 1.6.0
drwxr-xr-x 8 root wheel 272 Oct 5 09:58 1.6.0
drwxr-xr-x 8 root wheel 272 Oct 5 09:58 A
lrwxr-xr-x 1 root wheel 1 Oct 5 09:58 Current -> A
lrwxr-xr-x 1 root wheel 3 Oct 5 09:58 CurrentJDK -> 1.5
Additional Comment
#1 From ChuckEye 2008-11-27 08:18
I have the same OS, Java and JavaVM framework versions you do, and don't have any
problems. Try moving your preferences.txt file to the desktop and launching again?
(~/Library/Processing/preferences.txt)
Additional Comment
#2 From fry 2008-11-27 11:21
Check Console.app for error messages when that happens--there should be a
stack trace that has some clues to the problem.
That error means that it couldn't determine your platform, which doesn't
make much sense except if you have an old copy of core.jar somewhere in the
CLASSPATH (or maybe Apple's Java VM is keeping it around, in which case,
try restarting and then run 1.0).
Additional Comment
#3 From milesmeow 2008-11-28 07:00
Removing the preferences.txt did not help.
(In reply to
comment #1
)
>
>
>
> Additional
Comment #1
From
> ChuckEye
> 2008-11-27 08:18
>
> <!--
> addReplyLink(1); //-->[reply]
>
>
>
>
> I have the same OS, Java and JavaVM framework versions you do, and
don't have any
> problems. Try moving your preferences.txt file to the desktop and
launching again?
> (~/Library/Processing/preferences.txt)
>
>
>
Additional Comment
#4 From milesmeow 2008-11-28 07:06
Here's what was listed in the Console:
I cleared the log and then started Processing and this was what I got. And
I also started my gmail a few minutes after and the GoogleTalkPlugin was
also complaining.
It appears that the issue has to do with DVCPROHDAudio.plugin.
11/28/08 9:46:51 AM System Preferences[337] Cannot find function pointer
NewPlugIn for factory C5A4CE5B-0BB8-11D8-9D75-0003939615B6 in
CFBundle/CFPlugIn 0x1852ee00
</Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (bundle, not loaded)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422]
java.lang.ClassNotFoundException: processing.app.linux.Platform
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
java.security.AccessController.doPrivileged(Native Method)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
java.lang.ClassLoader.loadClass(ClassLoader.java:316)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
java.lang.Class.forName0(Native Method)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
java.lang.Class.forName(Class.java:164)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
processing.app.Base.initPlatform(Base.java:255)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
processing.app.Base.main(Base.java:135)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
java.lang.reflect.Method.invoke(Method.java:585)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
apple.launcher.LaunchRunner.run(LaunchRunner.java:115)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
11/28/08 9:55:45 AM [0x0-0x33033].org.processing.app[422] at
apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
11/28/08 9:55:45 AM com.apple.launchd[130]
([0x0-0x33033].org.processing.app[422]) Exited with exit code: 1
11/28/08 9:57:45 AM [0x0-0x34034].org.mozilla.firefox Debugger() was called!
11/28/08 9:57:49 AM [0x0-0x37037].com.google.GoogleTalkPluginD[433] Error:
unrecognized flag -psn_0_225335
11/28/08 9:57:51 AM GoogleTalkPlugin[433] Error loading
/Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio:
dlopen(/Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio, 262): no suitable image found. Did find:
/Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin/Contents/MacOS/DVCPROHDAudio: mach-o, but wrong architecture
11/28/08 9:57:51 AM GoogleTalkPlugin[433] Cannot find function pointer
NewPlugIn for factory C5A4CE5B-0BB8-11D8-9D75-0003939615B6 in
CFBundle/CFPlugIn 0x586a20
</Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (bundle, not loaded)
Additional Comment
#5 From fry 2008-11-29 05:47
Do you have other versions of Processing installed on your machine? Have
you tried restarting and then running Processing 1.0? (Don't run older
versions, or Arduino, or a web browser, or anything else Processing-based,
just run 1.0 after a fresh reboot.)
It seems as though it's finding code from an old release of Processing.
Additional Comment
#6 From fry 2008-11-29 05:52
Also, is it possible that core.jar is found somewhere it shouldn't be, for
instance that it's been hardwired to your CLASSPATH, or that it's in a
folder like /Library/Extensions/Java?
Additional Comment
#7 From milesmeow 2008-12-01 22:41
I'll just keep adding what I'm finding to this thread in case someone else
experiences this in the future. When I find a solution I will post it, but
keep the suggestions coming.
What I did next:
Re-installed Processing 1.0 for Mac OSX.
Now when I run processing I get a totally different error...
I get the dialogue box:
Yellow triangle with an exclamation mark. Little processing icon on top of
that.
"Cannot launch Java Application
Uncaught exception in main method: java.lang.NoSuchFieldError:platformNames"
In the console:
12/2/08 1:33:29 AM [0x0-0x40040].org.processing.app[345] [LaunchRunner
Error] processing.app.Base.main(String[]) threw an exception:
12/2/08 1:33:29 AM [0x0-0x40040].org.processing.app[345]
java.lang.NoSuchFieldError: platformNames
12/2/08 1:33:29 AM [0x0-0x40040].org.processing.app[345] at
processing.app.Preferences.init(Preferences.java:164)
12/2/08 1:33:29 AM [0x0-0x40040].org.processing.app[345] at
processing.app.Base.main(Base.java:160)
12/2/08 1:33:29 AM [0x0-0x40040].org.processing.app[345] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12/2/08 1:33:29 AM [0x0-0x40040].org.processing.app[345] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
12/2/08 1:33:29 AM [0x0-0x40040].org.processing.app[345] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12/2/08 1:33:29 AM [0x0-0x40040].org.processing.app[345] at
java.lang.reflect.Method.invoke(Method.java:585)
12/2/08 1:33:29 AM [0x0-0x40040].org.processing.app[345] at
apple.launcher.LaunchRunner.run(LaunchRunner.java:115)
12/2/08 1:33:29 AM [0x0-0x40040].org.processing.app[345] at
apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
12/2/08 1:33:29 AM [0x0-0x40040].org.processing.app[345] at
apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
(In reply to
comment #6
)
>
>
>
> Additional
Comment #6
From
> fry
> 2008-11-29 05:52
>
> <!--
> addReplyLink(6); //-->[reply]
>
>
>
>
> Also, is it possible that core.jar is found somewhere it shouldn't
be, for
> instance that it's been hardwired to your CLASSPATH, or that it's in a
> folder like /Library/Extensions/Java?
>
>
Additional Comment
#8 From fry 2008-12-02 03:30
Again, please answer
comment #5
and
comment #6
, I can't keep throwing out
random suggestions if you don't work with me.
The "platformNames" variable is not used in the code for 1.0.1, so you have
something that's conflicting with the core.jar file found in 1.0.1. So
either an older version of core.jar found somewhere on your machine,
perhaps in your sketchbook or one of the Java extensions folders, or from a
library that's not been created correctly.
Try, for instance, moving the entire contents of your sketchbook directory
to a temporary folder. Then restart Processing and see if the same thing
happens.
Additional Comment
#9 From milesmeow 2008-12-02 21:04
I removed all versions of Processing, restarted my machine and then tried
the new Processing and go the same error.
(In reply to
comment #5
)
>
>
>
> Additional
Comment #5
From
>
> fry
> 2008-11-29 05:47
>
> <!--
> addReplyLink(5); //-->[reply]
>
>
>
>
> Do you have other versions of Processing installed on your machine?
Have
> you tried restarting and then running Processing 1.0? (Don't run older
> versions, or Arduino, or a web browser, or anything else Processing-based,
> just run 1.0 after a fresh reboot.)
>
> It seems as though it's finding code from an old release of Processing.
>
>
Additional Comment
#10 From fry 2008-12-02 21:07
And from
comment #8
, you also did this?
"Try, for instance, moving the entire contents of your sketchbook directory
to a temporary folder. Then restart Processing and see if the same thing
happens."
Additional Comment
#11 From milesmeow 2008-12-02 21:08
I found core.jar in my /Library/Java/Extensions. I moved it to my desktop
and voila Processing is running!
Thanks Ben!
(In reply to
comment #6
)
>
>
>
> Additional
Comment #6
From
>
> fry
> 2008-11-29 05:52
>
> <!--
> addReplyLink(6); //-->[reply]
>
>
>
>
> Also, is it possible that core.jar is found somewhere it shouldn't
be, for
> instance that it's been hardwired to your CLASSPATH, or that it's in a
> folder like /Library/Extensions/Java?
>
>