We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi All, I've been writing a program for projection mapping. I'm using PApplet.runSketch to run a program for each projector I have attached. Everything was working fantastically well for about a month, but just recently I started getting the error: "Could not run the sketch (Target VM failed to initialize)." Most of the changes I've made to the code recently are pretty simple little methods for scaling objects etc. I haven't fiddled much with how the Applets themselves are loaded etc.
If it is relevant, the sketch uses the following libraries: import deadpixel.keystone.*; import java.util.*; import controlP5.*; import processing.video.*; import spout.*; import javax.swing.JFileChooser; import point2line.*;
I would post the entire code, but it is really quite long.
Interestingly, things work fine for a second; the error usually occurs around 45 seconds to 2 minutes into running the sketch, at which point it crashes and dumps the following information:
_#
#
#
#
#
#
# Could not run the sketch (Target VM failed to initialize). For more information, read revisions.txt and Help ? Troubleshooting._
Answers
The log file is much to long to post as text. If you would like to see that follow this...
http://www.pastebin.ca/3759035
So, after torturing myself over hundreds of lines of code, I've found the culprit. For some reason CURSOR() does not want to work properly with multiple screens running. I will repost this as a bug, though I doubt it will ever bother anyone but myself...
Can you post a small sample code demonstrating the problem?
Kf
@drewhamilton -- thanks for submitting the issue.
https://github.com/processing/processing/issues/4852
Did you find any workarounds to solve your problem?
I'd post some sample code, but it is waaay too long. The use of cursor() was fairly straightforward though. I'm certain it had something to do with invoking that with multiple pApplets. I ended up just removing the portion of my code that used cursor() and everything is working beautifully. I'll consider sharing the code when I finish the application.
-Drew
Oh, so you just removed cursor all together? Well, I guess then there would be no use of posting your code here. Maybe you could open another thread related to your complete code sometime else.