<log_error.txt>In advance thanks for help if you have an idea.what is the signification of J ? (java call ?)i don't have understood the signification of the first call with (J) ?also when i put -> ::pulse(J)(time);no problem with "GameLoop.js" which is found but when i put this two instruction the bug appear.and -> "handler.@Magic.Magic.Handler::pulse()();\n"when i withdraw -> javacall = true,So i'm using this ->Actually i am trying to export a game in the DukeScript framework so i have looked your game model code at https://github.com/dukescript/dukescript-gamesthe log file is not always generated but it seems to be always a stack overflow error.i've attach an error log which was auto generate log_error.txtAll other stuff seems to work correctly but not this part.Hi,I am writing to you because i'am stuck when trying to launch javascript with java callback with @JavaScriptBody tag.i have a stack overflow error ->Like you see i've increase allowed memory with -Xmx but always the same :
NetBeans: No suitable Deployment Server is defined for the project or globally.
cd C:\Users\Max\NetBeansProjects\Magic\client; "MAVEN_OPTS=-Xms4096m -Xmx4096m -XX:MaxPermSize=4096m -XX:StackShadowPages=50" "JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_25" cmd /c "\"\"D:\\NetBeans 8.0.2\\java\\maven\\bin\\mvn.bat\" -DskipTests=true -Dnetbeans.inspect.port=53212 -Dmaven.ext.class.path=\"D:\\NetBeans 8.0.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 exec:exec\""
Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts.
Scanning for projects...
------------------------------------------------------------------------
Building Magic Client for JavaFX 1.0-SNAPSHOT
------------------------------------------------------------------------
--- exec-maven-plugin:1.2.1:exec (default-cli) @ Magic ---
An unrecoverable stack overflow has occurred.
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 14.809s
Finished at: Sun May 10 21:21:42 CEST 2015
Final Memory: 34M/3925M
------------------------------------------------------------------------
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project Magic: Command execution failed. Process exited with an error: 255 (Exit value: 255) -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
**************************************************************************************
****************************************************************************
****************************************************************
@JavaScriptResource(value = "GameLoop.js")
public class GameLoop {
private final Handler handler;
public GameLoop(Handler handler) {
this.handler = handler;
}
public void start() {
startAnimation(handler);
}
public void stop() {
}
@JavaScriptBody(args = {"handler"}, javacall = true,
body = "Game_Singleton.prototype.mainLoop = function () {\n"
+ "var date = new Date();\n"
+ "var time = date.getTime();\n"
+ "handler.@Magic.Magic.Handler::pulse()();\n"
+ "requestAnimationFrame(Game.mainLoop);\n"
+ "console.log('running');\n"
+ "};\n"
+ "Game.start();\n")
public static native void startAnimation(Handler handler);
}
*****************************************************************
Maxhave a good dayI've attached the sources.hi, thanks for your responseI haven't found the link of the forum on google or dukescript.com can you give me the link and i will post a topic ?
Anyway I wanted to say congratulations this framework is really a great initiative, awesome work.
Actually i am trying to export a game in the DukeScript framework so i have looked your game model code athttps://github.com/dukescript/dukescript-games
<log_error.txt>
<Magic.zip>