Webstart VM Crash

Ok, very odd issue.

Starts off simple enough: basically, one of the developers here had made a mistake, and bound some drawing code to some keyboard input instead of changing an object being drawn. Now since input happens on a different thread, JOGL should totally crash (given that the change of state could happen between a begin and end.

Here is the issue tho: it worked. When run from the command line on actual computers no errors were thrown. In fact, the only time it would actually crash is when the application was launched via webstart. It would crash hard, taking down the poor client’s VM.

My hope would be that an error such as that would crash all the time, not just via webstart. Any ideas on why it would act in a such a way?

There’s a chance if you didn’t specify the system property -Dsun.java2d.noddraw=true in your JNLP file then there could be some driver-level conflicts between Java2D and JOGL which would yield a crash in some error situations which would be silently swallowed by the OpenGL implementation if you did specify it.

Aside from that I don’t have a good guess. The DebugGL pipeline should catch these kinds of errors in all situations and I would encourage you to use it during development.

I would tentatively suggest something similar - some system properties that you are trying to specify in your code are being ignored because Swing is already initialised by the webstart interface by the time your application gets a chance.

See this 2D thread & read Chris Campell’s post, he says with webstart you have to set the VM options in the jnlp file also:

http://www.java-gaming.org/forums/index.php?topic=14092.new#new