FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1257 : "Target VM failed to initialize" when using Present mode on Mac OS X
Last modified: 2009-10-30 13:24
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
ASSIGNED
Resolution:
-
Pr
i
ority:
P3
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
pyramus
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2009-05-31 17:10
On my Macbook it seems to be impossible to run any sketch (no matter what
code) in "Present" mode. Everything seems to behave normal when I choose
standard "Run" button.
Disabling network (as suggested in previous
bug 796
) didnt solve the
problem, neither did reinstalling Java or Processing change a thing.
Any ideas what this could be?
Details:
1. Processing 1.0.3
2. MacOS 10.5.7 / Java 1.5 Update 2 (build 1.5.0_16-b06-284) @ MacBook
3. Any code.... For example: size(200, 200);
4. com.sun.jdi.connect.VMStartException: VM initialization failed for: java
-Xrunjdwp:transport=dt_socket,address=127.0.0.1:8023,suspend=y
-Xdock:name=sketch_jun01a
-Djava.library.path=:/Applications/Processing.app/Contents/Resources/Java:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources:.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
-cp
/tmp/build16700.tmp:/Applications/Processing.app/Contents/Resources/Java/pde.jar:/Applications/Processing.app/Contents/Resources/Java/core.jar:/Applications/Processing.app/Contents/Resources/Java/antlr.jar:/Applications/Processing.app/Contents/Resources/Java/ecj.jar:/Applications/Processing.app/Contents/Resources/Java/registry.jar:/Applications/Processing.app/Contents/Resources/Java/quaqua.jar
processing.core.PApplet --editor-location=442,78 --external --display=1
--sketch-path=/tmp/untitled16698.tmp/sketch_jun01a --present --exclusive
--stop-color=#cccccc --bgcolor=#666666 sketch_jun01a
at
com.sun.tools.jdi.AbstractLauncher$Helper.launchAndAccept(AbstractLauncher.java:174)
at com.sun.tools.jdi.AbstractLauncher.launch(AbstractLauncher.java:114)
at
com.sun.tools.jdi.RawCommandLineLauncher.launch(RawCommandLineLauncher.java:100)
at processing.app.debug.Runner.launchVirtualMachine(Runner.java:408)
at processing.app.debug.Runner.launch(Runner.java:122)
at processing.app.Editor$43.run(Editor.java:1572)
at java.lang.Thread.run(Thread.java:613)
Could not run the sketch (Target VM failed to initialize).
Additional Comment
#1 From fry 2009-05-31 19:31
I've not seen that before, some things to check:
- make sure your sketch size is not larger than your screen size.
- see if it happens with any sketch.. e.g. open a new, blank sketch, then
try running it in present mode. same problem?
- do you have a second display?
Additional Comment
#2 From pyramus 2009-06-01 16:16
hi, thanks for reply:
- my display resolution is indeed bigger than the standard 200x200 sketch
size i use ;-)
- every sketch, indeed also an empty one triggers this error!
- sometimes i do have a secondary display connected, but i get the same
error w/h it
Additional Comment
#3 From fry 2009-06-01 16:21
have you tried rebooting the machine and restarting processing after having
unplugged in the external monitor?
Additional Comment
#4 From pyramus 2009-06-01 16:51
several times already.
also reinstalled java, and quicktime as well...
btw: i just noticed this line in terminal (java -version): "Java
HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)"
any idea?
Additional Comment
#5 From fry 2009-06-02 04:17
No, I'm stumped unfortunately. Present mode is a weird one, since it takes
over the screen exclusively. Do you have any special extensions/kernel
enhancers/application enhancers that might be affecting the screen or video
in some manner?
Additional Comment
#6 From pyramus 2009-06-02 06:20
hi thanks for reply again.
to my best knowledge i don't have anything special going on...
but i did find something that might help: exporting an application with
"fullscreen" (presentation mode) selected, does work! (and therefore
solving my actual problem ;-)
so does this maybe relate to an inconsistency between running standalone or
in pde?
Additional Comment
#7 From fry 2009-06-02 06:29
It's something to do with what's called "Full Screen Exclusive Mode" on
your Mac. It's a sort of gaming mode that takes over the entire screen and
disables the desktop. From the PDE, the only way to get rid of the menubar
is to use FSEM. But because of quirky incompatibilities that can arise
(such as this one!), I use another method to hide the menubar and other
decorations when the application is exported. So it's a useful data point,
but still the same problem I was suspecting. I'll keep this noted and we'll
see if anything further turns up.
Additional Comment
#8 From pyramus 2009-06-03 16:50
thanks for your quick & elaborate response :-)
good luck with further dev of this wonderful environment!
Additional Comment
#9 From casper 2009-10-30 13:24
I'm having the exact same problem here - I can't use present mode on any sketch:
com.sun.jdi.connect.VMStartException: VM initialization failed for: java -d32 -
Xrunjdwp:transport=dt_socket,address=127.0.0.1:8883,suspend=y -
Xdock:name=sketch_oct30c -
Djava.library.path=:/Applications/Processing.app/Contents/Resources/Java:/System/Library/P
rivateFrameworks/JavaApplicationLauncher.framework/Resources:.:/Users/casper/Library/Jav
a/Extensions:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java -cp
/var/folders/WU/WU-RlYIhGjWlLwW+K-KuHE+++TI/-Tmp-
/build7859961347495782626.tmp:/Applications/Processing.app/Contents/Resources/Java/pde.j
ar:/Applications/Processing.app/Contents/Resources/Java/core.jar:/Applications/Processing.ap
p/Contents/Resources/Java/antlr.jar:/Applications/Processing.app/Contents/Resources/Java/e
cj.jar:/Applications/Processing.app/Contents/Resources/Java/registry.jar:/Applications/Process
ing.app/Contents/Resources/Java/quaqua.jar processing.core.PApplet --editor-
location=758,197 --external --display=1 --sketch-path=/var/folders/WU/WU-
RlYIhGjWlLwW+K-KuHE+++TI/-Tmp-/untitled3899263808749465974.tmp/sketch_oct30c --
present --exclusive --stop-color=#cccccc --bgcolor=#666666 sketch_oct30c
at
com.sun.tools.jdi.AbstractLauncher$Helper.launchAndAccept(AbstractLauncher.java:174)
at com.sun.tools.jdi.AbstractLauncher.launch(AbstractLauncher.java:114)
at
com.sun.tools.jdi.RawCommandLineLauncher.launch(RawCommandLineLauncher.java:100)
at processing.app.debug.Runner.launchVirtualMachine(Runner.java:413)
at processing.app.debug.Runner.launch(Runner.java:122)
at processing.app.Editor$43.run(Editor.java:1582)
at java.lang.Thread.run(Thread.java:613)
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help ? Troubleshooting.
Processing 1.0.7, MacOS 10.5.8, Java 1.5.0_20
This bug is now being tracked
here
.