Hello Guest

[CLOSED] crash when GL11.glVertexPointer called with non-flip()ped FloatBuffer

  • 5 Replies
  • 5847 Views
crash with SIGSEGV

Code: [Select]
...

FloatBuffer vertexArray = org.lwjgl.BufferUtils.createFloatBuffer(Polygon.VERT_COUNT * 3 * this.polys.size());
fillVertexArrayWithoutCallingFlip(vertexArray);
org.lwjgl.opengl.GL11.glVertexPointer(3, 0, vertexArray);
org.lwjgl.opengl.GL11.glDrawArrays(org.lwjgl.opengl.GL11.GL_TRIANGLES, 0, Polygon.VERT_COUNT
       * this.polys.size());

i'm using openjdk 6b27-1.12.5-0ubuntu0.12.04.1
i don't remember how to find the lwjgl version so i'm posting the liblwjgl.so build id : a2d61378262d78c3a3a63f51fc5ae1f39fcdc828

Jacob
« Last Edit: June 26, 2013, 21:28:10 by programmerjake »

*

Offline princec

  • *****
  • 1929
    • Puppygames
Can you post the actual crash log too?

Cas :)

Code: [Select]
radeon: The kernel rejected CS, see dmesg for more information.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb763b796, pid=3083, tid=3061738304
#
# JRE version: 6.0_27-b27
# Java VM: OpenJDK Server VM (20.0-b12 mixed mode linux-x86 )
# Derivative: IcedTea6 1.12.6
# Distribution: Ubuntu 12.04 LTS, package 6b27-1.12.6-1ubuntu0.12.04.2
# Problematic frame:
# C  [libc.so.6+0x7f796]  memccpy+0xe6
#
# An error report file with more information is saved as:
# /home/jacob/workspace/voxels/hs_err_pid3083.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
radeon: Acquired access to Hyper-Z.

i removed the startup messages because they all had to do with sound

*

Offline princec

  • *****
  • 1929
    • Puppygames
Are there no more stacktraces/info than that?

Cas :)

i found a crash log file :
https://docs.google.com/file/d/0B-7hdJptTtSESV9oYWw0aFNVTUk/edit?usp=sharing
in GL11.glVertexPointer it needs to store the length in a variable and check it in GL11.glDrawArrays

*

Offline princec

  • *****
  • 1929
    • Puppygames
Ok, I checked the native code there; it's a straight pass through to the driver. So it's your drivers crashing at that point.

Cas :)