Problem with the JSR231 jnilibs for OSX since Beta 2.

I recently started making universal binaries so I decided to upgrade to Beta 5. It works fine on an Intel Mac but crashes out on a PPC Mac when the GLJPanel is being instantiated I think. I get an objc freed error. I tried using the the PPC only binaries but they have the same error. I also tried Beta 4 and 3 but got the same error. If I go back to Beta 2 which is pre universal binary, it works just fine. Any ideas?

thanks

Do you have a test case for this? What version of OS X are you running on your PPC Mac? (I assume 10.4.) I believe the last time I checked the PPC port of JOGL was working with full functionality. Do the demos.gears.Gears and demos.jgears.JGears demos work on your machine?

I’ll check the demos and see if I can come up with a test case. It has this behavior under both 10.3.9 and 10.4.

I’m unable to reproduce this problem on a dual G5 tower with a GeForce 6800 and 10.4.7. Both the GLCanvas-based JOGL demos (Gears, VertexProgRefract, ProceduralTexturePhysics) as well as the GLJPanel-based ones (JGears, JRefract) seem to be working fine. The GLJPanel-based demos are pretty slow on OS X/PPC in particular. This will improve with the forthcoming introduction of the Java2D/JOGL bridge on OS X.

Sorry about the delay. Release crunch et al.

The problem has to due with GLJPanel. It doesn’t show up on the G5 machine we have either but on 2 G4s and a G3 it does. Here’s a little piece of code that makes it happen.

I also tried JGears, same error. Gears with GLCanvas works though.

The error is:

objc: FREED(id): message release sent to freed object=0x373f90


import javax.swing.;
import javax.media.opengl.
;

class test {
public static void main(String[] args) {
JFrame frame = new JFrame();
GLJPanel panel = new GLJPanel();

frame.getContentPane().add(panel);

frame.setVisible(true);

}
}