Closed knupel closed 8 years ago
java.lang.RuntimeException: com.jogamp.opengl.GLException: Caught VerifyError: Bad type on operand stack
Exception Details:
Location:
codeanticode/tablet/Tablet.
Exception Handler Table:
bci [86, 109] => handler: 112
bci [113, 136] => handler: 139
bci [140, 163] => handler: 166
bci [167, 190] => handler: 193
Stackmap Table:
full_frame(@55,{Object[#99],Object[#100],Object[#101]},{})
chop_frame(@60,1)
same_frame(@63)
same_frame(@68)
same_locals_1_stack_item_frame(@112,Object[#102])
same_frame(@113)
same_locals_1_stack_item_frame(@139,Object[#102])
same_frame(@140)
same_locals_1_stack_item_frame(@166,Object[#102])
same_frame(@167)
same_locals_1_stack_item_frame(@193,Object[#102])
same_frame(@194)
on thread main-Display-.macosx_nil-1-EDT-1
at jogamp.newt.DefaultEDTUtil.invokeImpl(DefaultEDTUtil.java:249)
at jogamp.newt.DefaultEDTUtil.invoke(DefaultEDTUtil.java:163)
at jogamp.newt.DisplayImpl.runOnEDTIfAvail(DisplayImpl.java:427)
at jogamp.newt.WindowImpl.runOnEDTIfAvail(WindowImpl.java:2133)
at jogamp.newt.WindowImpl.setVisible(WindowImpl.java:1024)
at jogamp.newt.WindowImpl.setVisible(WindowImpl.java:1029)
at com.jogamp.newt.opengl.GLWindow.setVisible(GLWindow.java:499)
at processing.opengl.PSurfaceJOGL.setVisible(PSurfaceJOGL.java:387)
at processing.core.PApplet.showSurface(PApplet.java:10256)
at processing.core.PApplet.runSketch(PApplet.java:10240)
at processing.core.PApplet.main(PApplet.java:9969)
Caused by: com.jogamp.opengl.GLException: Caught VerifyError: Bad type on operand stack
Exception Details:
Location:
codeanticode/tablet/Tablet.
Exception Handler Table:
bci [86, 109] => handler: 112
bci [113, 136] => handler: 139
bci [140, 163] => handler: 166
bci [167, 190] => handler: 193
Stackmap Table:
full_frame(@55,{Object[#99],Object[#100],Object[#101]},{})
chop_frame(@60,1)
same_frame(@63)
same_frame(@68)
same_locals_1_stack_item_frame(@112,Object[#102])
same_frame(@113)
same_locals_1_stack_item_frame(@139,Object[#102])
same_frame(@140)
same_locals_1_stack_item_frame(@166,Object[#102])
same_frame(@167)
same_locals_1_stack_item_frame(@193,Object[#102])
same_frame(@194)
on thread main-Display-.macosx_nil-1-EDT-1
at com.jogamp.opengl.GLException.newGLException(GLException.java:76)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:680)
at jogamp.opengl.GLAutoDrawableBase.defaultWindowResizedOp(GLAutoDrawableBase.java:259)
at com.jogamp.newt.opengl.GLWindow.access$200(GLWindow.java:119)
at com.jogamp.newt.opengl.GLWindow$2.windowResized(GLWindow.java:141)
at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:3682)
at jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:3616)
at jogamp.newt.WindowImpl.setVisibleActionImpl(WindowImpl.java:1003)
at jogamp.newt.WindowImpl$VisibleAction.run(WindowImpl.java:1015)
at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:150)
at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:372)
Caused by: java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
codeanticode/tablet/Tablet.
Exception Handler Table:
bci [86, 109] => handler: 112
bci [113, 136] => handler: 139
bci [140, 163] => handler: 166
bci [167, 190] => handler: 193
Stackmap Table:
full_frame(@55,{Object[#99],Object[#100],Object[#101]},{})
chop_frame(@60,1)
same_frame(@63)
same_frame(@68)
same_locals_1_stack_item_frame(@112,Object[#102])
same_frame(@113)
same_locals_1_stack_item_frame(@139,Object[#102])
same_frame(@140)
same_locals_1_stack_item_frame(@166,Object[#102])
same_frame(@167)
same_locals_1_stack_item_frame(@193,Object[#102])
same_frame(@194)
at PreScene_28.presceneSetup(PreScene_28.java:248)
at PreScene_28.setup(PreScene_28.java:82)
at processing.core.PApplet.handleDraw(PApplet.java:2376)
at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:654)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:691)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:673)
at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:442)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
... 11 more
yes, it needs to be updated. The GL renderer in Processing 3 doesn't use AWT anymore, but jpen2 does, so the solution might be tricky.
This Processing version is real big move, a lot of things and libraries are broken ! but I feel this Processing is quicker than before ! Good luck for this tricky part.
I could release a version of the library that works with the JAVA2D renderer almost immediately, unfortunately after looking at the source of jpen2 it seems that adding back support for GL would require implementing tablet input almost from scratch, since jpen2 depends very heavily on AWT.
May be is a stupid idea, but just import java.awt.* don't resolve the problem ? I tried that's don't work.
Sure finish the big work on Processing and Syphon is a big priority ! Not sure a lot of people use the tablet with processing :)
Maybe the jpen authors have some thoughts:
http://sourceforge.net/p/jpen/discussion/753961/thread/6ea88634/
I hope !
Hello,
Oups, the bug is back with Processing 3.1.1 in P3D
/**
* Basic Drawing
* by Andres Colubri.
*
* This program shows how to use the tilt values from the pen.
*/
import codeanticode.tablet.*;
Tablet tablet;
void setup() {
size(640, 480, P3D);
tablet = new Tablet(this);
background(0);
stroke(200, 150);
strokeWeight(2);
}
void draw() {
if (0 < tablet.getPressure()) {
float x = tablet.getTiltX();
float y = tablet.getTiltY();
line(mouseX, mouseY, mouseX + 20 * x, mouseY + 20 * y);
}
}
return
may be it's not a bug, just message to say is not possible ? I h-just understand that now. There is a plan to resolve or it's just a nigthmare to imagine resolve it ?
Processing 3.0b5 is incompatible with this version of the library. The sentence of the error is very long. But it's possible to check with the example of the library example "BasicDrawing.pde" Bug on mac OSX 10.9