Login  Register

jocl-demos julia3D fractal Exception

Posted by Itun on Dec 29, 2011; 2:12pm
URL: https://forum.jogamp.org/jocl-demos-julia3D-fractal-Exception-tp3618896.html

I cannot launch this demo. I get this exception:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException
        at java.nio.Buffer.<init>(Unknown Source)
        at java.nio.ByteBuffer.<init>(Unknown Source)
        at java.nio.ByteBuffer.<init>(Unknown Source)
        at java.nio.MappedByteBuffer.<init>(Unknown Source)
        at java.nio.DirectByteBuffer.<init>(Unknown Source)
        at java.nio.ByteBuffer.allocateDirect(Unknown Source)
        at com.jogamp.common.nio.Buffers.newDirectByteBuffer(Buffers.java:69)
        at com.jogamp.common.nio.Buffers.newDirectFloatBuffer(Buffers.java:111)
        at com.jogamp.opencl.CLContext.createFloatBuffer(CLContext.java:318)
        at com.jogamp.opencl.demos.julia3d.Julia3d.update(Julia3d.java:92)
        at com.jogamp.opencl.demos.julia3d.Renderer.reshape(Renderer.java:188)
        at jogamp.opengl.GLDrawableHelper.reshape(GLDrawableHelper.java:197)
        at jogamp.opengl.GLDrawableHelper.reshape(GLDrawableHelper.java:203)
        at javax.media.opengl.awt.GLCanvas$DisplayAction.run(GLCanvas.java:935)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:398)
        at javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:832)
        at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:419)
        at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:518)
        at sun.awt.RepaintArea.paintComponent(Unknown Source)
        at sun.awt.RepaintArea.paint(Unknown Source)
        at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$000(Unknown Source)
        at java.awt.EventQueue$1.run(Unknown Source)
        at java.awt.EventQueue$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue$2.run(Unknown Source)
        at java.awt.EventQueue$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)