Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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) |
Loading... |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I know this is two years old, but there were no replies, and in case someone else stumbles across this thread, RenderingConfig32.java, RenderingConfig64.java, Vec32.java, and Vec64.java all seem to define their structures incorrectly. Perhaps the way they are supposed to be defined changed.
To fix it, replace each occurrence of setIntAt(x, val) with setIntAt(x*4, val) (e.g. setIntAt(1, val) -> setIntAt(4, val)) Do the same thing with getIntAt(x), getFloatAt(x), setFloatAt(x, val), setFloatsAt(x, val), and getFloatsAt(x). Hope this helps. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
I've created a bug report for this (https://jogamp.org/bugzilla/show_bug.cgi?id=957) and will check it out and try your fix.
|
Free forum by Nabble | Edit this page |