JVM Crashes

I keep getting the following VM crash when running mojo's flag rush tutorial - Lesson 8.

The weird thing is that everything seems to be okay and after running around a little in

the level then the VM suddenly crashes. I'm using the latest version of jme downloaded from

the CVS today.

The error I get is the following:

# An unexpected error has been detected by HotSpot Virtual Machine:
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6973b412, pid=2096, tid=1076
# Java VM: Java HotSpot(TM) Client VM (1.5.0_05-b05 mixed mode, sharing)
# Problematic frame:
# C  [nvoglnt.dll+0x23b412]
# An error report file with more information is saved as hs_err_pid2096.log
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp

I don't think I'm doing something wrong. Is it a VM bug or a VM misuse?
Should I submit a bug report to Sun? What can I do to get passed this problem?

PS: If you want me to post the error report file please let me know.

  S Y S T E M 

OS: Windows XP Build 2600 Service Pack 2

CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 522988k(55284k free), swap 1414300k(756692k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_05-b05) for windows-x86, built on Aug 26 2005 15:36:02 by "java_re" with MS VC++ 6.0

does lesson 6 or 7 work fine (try both)  Also, what's your video card? 

Lesson 6 and 7 work fine. And now lesson 8 works fine as well.

I'm running the tuts through the IntelliJ IDEA IDE.

I don't understand why now everything runs ok. Only thing I changed since I posted

was to try and run Tutorial8 using a batch file from the command prompt in case it

had something to do with the IDE, and did get the same error.

Graphics card: Asus V9560-TD 256 GF FX 5600

NVidia Drivers version: 81.95

Interesting…  did you update from cvs recently?

Last CVS update I did was about 3 hours ago. Note that I haven't changed a bit of the jme code and

I always use the Create Missing Directories and Get Clean Copy options.

Hmm, I guess we keep an eye out on this for now.

I let  you know if it happens again. Thanks for the help anyway!

lesson 8 and the stuff submitted fo give vm crashes aswell didn't say anything as mentioned cvs being under dev yesterday

odd thing 9 crashed once I tryed it again changed pass to modulated and it ran for 20 secs now it does run anymore

If it makes you feel better, you are not alone. And I can tell you exactly where it is happening, but not exactly why.

LWJGLRenderer lines 1099 - 1105

if ((!ignoreVBO && vbo.getVBOTextureID(i) > 0)) { // use VBO

                usingVBO = true;


                ARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, vbo.getVBOTextureID(i));

                GL11.glTexCoordPointer(2, GL11.GL_FLOAT, 0, 0);


It seems that one or all of the VBO data for texture coordinates is bombing at some point.

What you can do if this problem is affecting your work, is get the VBOInfo objects and set the texture id to -1, so that vbo will not be used for textures. Hopefully, we'll track down what is causing this corruption before too long.

is this not a problem with the vboTextureIDs array only ever beeing length 1? it's never resized

VBOInfo's resizeTextureIds method should be called whenever texture coordinates are added to Geometry. But that's certainly an avenue to investigate.

from what i can see the resizeTextureIds method is never used

I've gotten errors between thoses lines too not a vm crash but i get array out of bound on vbo being 1

Update from CVS…

MrCoder said:

from what i can see the resizeTextureIds method is never used

A quick ref check in eclipse shows it being used in 4 methods in Geometry...
renanse said:

MrCoder said:

from what i can see the resizeTextureIds method is never used

A quick ref check in eclipse shows it being used in 4 methods in Geometry...

hehe, yeah that's cause it was just added to cvs  :)

yeah, but prior enough to your remark that you could have seen it. :wink:

true, it came in some hours before my post…i'm sitting on a 1980's modem right now at home and doing cvs updates is a pain  :smiley:

:-o  yikes.  I thought those things were extinct in the wild…

Ok, this should be fixed. Update from CVS and let us know.