Crash in Windows but not Linux

Started by stodge, November 18, 2005, 20:00:53

Previous topic - Next topic

stodge

I'm using lwjgl 0.98 with the JMonkeyEngine. I'm trying to work with JME's TriMesh class to batch geometry, but I'm getting a crash on WinXP but not on Linux.

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.lwjgl.opengl.GL11.nglDrawElements(IIILjava/nio/Buffer;IJ)V+0
j  org.lwjgl.opengl.GL11.glDrawElements(ILjava/nio/IntBuffer;)V+34
j  com.jme.renderer.lwjgl.LWJGLRenderer.draw(Lcom/jme/scene/TriMesh;)V+65
j  com.jme.scene.TriMesh.draw(Lcom/jme/renderer/Renderer;)V+23
j  com.jme.renderer.RenderQueue.renderOpaqueBucket()V+33
j  com.jme.renderer.RenderQueue.renderBuckets()V+1
j  com.jme.renderer.Renderer.renderQueue()V+9
j  com.jme.renderer.lwjgl.LWJGLRenderer.displayBackBuffer()V+1
j  com.jme.app.BaseGame.start()V+66
j  TestTerrain.main([Ljava/lang/String;)V+14
v  ~StubRoutines::call_stub


Any suggestions what stupid mistakes I may be making?

My post on the JME forums explaining what I'm doing is here:

http://www.jmonkeyengine.com/jmeforum/index.php?topic=2185.0

My GeometryBatch code is:

http://www.jmonkeyengine.com/wiki/doku.php?id=geometrybatch

Thanks

elias

The most likely cause is that some index in the index buffer given to DrawElements is out of range. This could be caused by too short vertex array buffers, or even buffers that are enabled, but not yet assigned to a buffer (say, enabling color vertex array with glEnableClientState, but never calling glColorPointer).

- elias

princec

The other cause might be broken drivers. Always tell us what drivers you're using when there's a crash problem!

Cas :)

stodge

NVIDIA 81.94 GeForce 6600GT. I think I'm using an older version on Linux. Could it be a driver issue? I'm confused why it works on Linux but not Windows.