Posted by
andrade on
Dec 14, 2011; 2:40pm
URL: https://forum.jogamp.org/GLCanvas-problem-with-JOGL-2-0-RC4-on-OSX-Snow-Leopard-32-bit-VM-tp3585628.html
Hi,
I'm upgrading the Agile2D library to JOGL 2.0 RC4 and I'm testing it in many platforms.
When testing it on OSX Snow Leopard 10.6.8, JOGL won't work when using GLCanvas with a 32-bit VM (I've tested it in more than one machine).
I've pasted below the output of the errors when trying to launch the GEARS example.
Note that GLCanvas works fine with a 64-bit VM and GLJPanel works fine with both 32 and 64 VM.
Any ideas?
Thanks in advance!
Rodrigo
(I can post the longer output with debug flags if it may help)
******************
Exception in thread "main-AWTAnimator-1" java.lang.IndexOutOfBoundsException
at java.nio.Buffer.checkIndex(Buffer.java:518)
at java.nio.DirectByteBuffer.getLong(DirectByteBuffer.java:760)
at com.jogamp.common.nio.StructAccessor.getLongAt(StructAccessor.java:169)
at jogamp.nativewindow.jawt.macosx.JAWT_MacOSXDrawingSurfaceInfo.getCocoaViewRef(JAWT_MacOSXDrawingSurfaceInfo.java:53)
at jogamp.nativewindow.jawt.macosx.MacOSXJAWTWindow.lockSurfaceImpl(MacOSXJAWTWindow.java:173)
at jogamp.nativewindow.jawt.JAWTWindow.lockSurface(JAWTWindow.java:278)
at jogamp.opengl.GLDrawableImpl.lockSurface(GLDrawableImpl.java:195)
at jogamp.opengl.GLDrawableImpl.setRealized(GLDrawableImpl.java:156)
at javax.media.opengl.awt.GLCanvas.validateGLDrawable(GLCanvas.java:573)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:394)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:74)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:142)
at com.jogamp.opengl.util.Animator$MainLoop.run(Animator.java:176)
at java.lang.Thread.run(Thread.java:680)
Invalid memory access of location 0x15c eip=0x371c63
Bus error
--
Rodrigo Andrade de Almeida