So I have followed the Java guide and copied over the NullOOJavaAI stub to start work on my AI, but even before I talk about that, I figured the example NullOOJavaAI should work. When I run it Spring crashes and I see a message box popup with title "Debug report 'spring lobby'"
Is NullOOJavaAI expected to work with the current version of Spring? I tested it with both chosen and fixed starting positions on SuperSpeedMetal.
Example NullOOJavaAI crashing
Moderators: hoijui, Moderators
-
- Posts: 1
- Joined: 18 May 2010, 09:09
Re: Example NullOOJavaAI crashing
I had a similar issue. The solution I found was to modify the JVM heap and stack sizes options in the interface configuration file. The options are contained in the file ${Spring_Home}/AI/Interfaces/Java/0.1/jvm.properties. I just commented out the lines which added the JVM options for a specific size (-Xmx,-Xms,-Xss,-Xoss).
I've never had much luck with changing stack sizes from the JVM defaults on Windows, Linux (Ubuntu), or FreeBSD (Diablo && Sun). Thinking about the problem I had, the heap size (4MB to 64MB) is most likely not the cause. I believe the Java platform, at least under Windows, sets the default heap size as 64MB-128MB.
I've never had much luck with changing stack sizes from the JVM defaults on Windows, Linux (Ubuntu), or FreeBSD (Diablo && Sun). Thinking about the problem I had, the heap size (4MB to 64MB) is most likely not the cause. I believe the Java platform, at least under Windows, sets the default heap size as 64MB-128MB.
Re: Example NullOOJavaAI crashing
Thanks, this got the NullOOJavaAI to work. My AI is crashing, but I'll debug it on my own first before bothering you guys again 
