JOGL2 and core dumps

NetBeans 6.5
Java 1.6.0.0_16-b01
JOGL via NetBeans JOGL2 Module
Ubuntu 9.04
GeForce6800

I’m writing a GPGPU application and it runs fine w/ JOGL 1 w/ the Netbeans JOGL 1 module. However, when I switched to JOGL2 via JOGL2 Netbeans modules I’ve been get core dumps. Seems like there is an interaction between pbo’s and framebuffers thats causing the problem. Not sure if this is JOGL problem, NetBeans JOGL Binaries, or I’m not using JOGL2 properly (I’m presuming GL -> GL2 & use GLProfile.getDefault()).

I removed all code in init/display, and incrementally started adding it back. It appears as soon as the frame buffer is bound is when the crashing starts. The crash doesn’t occur when executing glBindBuffer, but much later when when the program completes and terminates. The minimal code below will produce the following dump.

Monty


MyConstructor() {
        pbo = GLDrawableFactory.getFactory(GLProfile.getDefault()).createGLPbuffer(
                new GLCapabilities(GLProfile.getDefault()),
                new DefaultGLCapabilitiesChooser(),
                1,
                1,
                null);
        pbo.addGLEventListener(this);
}
public void init(GLAutoDrawable arg0) {
        GL2 gl = arg0.getGL().getGL2();
        gl.glGenFramebuffers(1, fboID, 0);
        gl.glBindFramebuffer(GL_FRAMEBUFFER, fboID[0]);
}

error:


#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xab22bf75, pid=9940, tid=3085211856
#
# JRE version: 6.0_16-b01
# Java VM: Java HotSpot(TM) Server VM (14.2-b01 mixed mode linux-x86 )
# Problematic frame:
# C  [libGLcore.so.1+0x6aef75]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Java Result: 134
BUILD SUCCESSFUL (total time: 24 seconds)