JSR-231 buildnight problem

Hello,

I’ve got a strange problem with the today buildnight of JSR-231. It’s about VBO.
I made some code to display some big triangulatedSurface, using VBO and index.
It’s work perfectly on JOGL, and I port it under JSR. I’ve got a strange problem: in some case, the display crash.
It’s crashing in glDrawElements, but not all the time. I suppose it’s crashing when I used big vertex pointer/indices.
My surface is composed of 230961 vertices and 460000 triangles.

Any idea?

I have made some test, and the problem seems to be in the VBO, when you put the indices inside in graphic memory…
any idea Ken?

Are you porting from net.java.games.jogl to javax.media.opengl ?

if yes, try a buffer.rewind() since it’s position is now sgnificant (see the migration guide for more details)
otherwise, please ignore and wait for ken :slight_smile:

I think zero’s suggestion is probably correct. We definitely need to add error checking to avoid these kinds of crashes and will do so as soon as possible.

Unfortunately, this is not a rewind problem. I do all the necessery rewind. And also, my data are mapper using the glMapBufferARB function and unmap when I finish my edition.
It’s work perfectly if I don’t use VBO for indices…

Have you tried installing the DebugGL pipeline? That may find OpenGL-related errors earlier which are leading to the crash.

Can you create a small test case out of your program demonstrating the problem? If so, could you file a bug with the JOGL Issue Tracker?