Crash but no crash log!

So I am at a point where my game simply exits with some strange error code:


Java Result: -1073741819

There is no Java stack trace, no OpenGL error, and no JVM crash log.

Really not sure what to do here. How do I debug this?

I have a rough idea of what code is causing this, but I guess I’m wondering if I can get more information… Otherwise this will be quite difficult to debug.

EDIT: As far as I can tell, calling render() and/or draw() in this class: https://github.com/sci4me/SciCraft/blob/sgl/src/main/java/com/sci/craft/client/render/world/RenderChunk.java causes this to happen.

Use break points and step through the code, you will then find what line causes the crash, and you can work it out from there.

It crashes when glDrawArrays is called. But a few draw() calls succeed before it crashes… so… what? :stuck_out_tongue:

Really not sure what’s going on. Will keep looking but… idk if I’ll find it.

Does it always crash after the same amount of calls? Is it always on the same object? I assume render() gets called only once per chunk? We probably need to see how you generate the chunk before passing it to RenderChunk

Try replacing


                glVertexAttribPointer(0, 3, GL_FLOAT, false, 20, 0);
		glVertexAttribPointer(1, 2, GL_FLOAT, false, 20, 12);

		glBindBuffer(GL_ARRAY_BUFFER, this.vbo);

to


                glBindBuffer(GL_ARRAY_BUFFER, this.vbo);
                glVertexAttribPointer(0, 3, GL_FLOAT, false, 20, 0);
		glVertexAttribPointer(1, 2, GL_FLOAT, false, 20, 12);

Not sure if its your issue but it is wrong

Oh my god I think that fixed it! (It isn’t rendering right yet but that’s gotta be my fault somewhere else in the code). It isn’t crashing! :smiley:

Thank you so much!!!