LWJGL Forum

Archive => Resolved Bugs/RFE => Topic started by: programmerjake on June 26, 2013, 20:26:00

Title: [CLOSED] crash when GL11.glVertexPointer called with non-flip()ped FloatBuffer
Post by: programmerjake on June 26, 2013, 20:26:00
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
Title: Re: [BUG] crash when GL11.glVertexPointer called with non-flip()ped FloatBuffer
Post by: princec on June 27, 2013, 08:36:36
Can you post the actual crash log too?

Cas :)
Title: Re: [BUG] crash when GL11.glVertexPointer called with non-flip()ped FloatBuffer
Post by: programmerjake on August 12, 2013, 01:46:41
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
Title: Re: [BUG] crash when GL11.glVertexPointer called with non-flip()ped FloatBuffer
Post by: princec on August 12, 2013, 08:53:34
Are there no more stacktraces/info than that?

Cas :)
Title: Re: [BUG] crash when GL11.glVertexPointer called with non-flip()ped FloatBuffer
Post by: programmerjake on August 12, 2013, 16:21:09
i found a crash log file :
https://docs.google.com/file/d/0B-7hdJptTtSESV9oYWw0aFNVTUk/edit?usp=sharing (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
Title: Re: [BUG] crash when GL11.glVertexPointer called with non-flip()ped FloatBuffer
Post by: princec on August 12, 2013, 19:12:44
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 :)