When calling the built-in nextGaussian method, an nextGaussian thrown: unlocking an unregistered monitor
double dispersion = RAND.nextGaussian() * 0.2;
which is inside
@Override public void stroke(Canvas c, float x, float y) { }
which is called here
case MotionEvent.ACTION_MOVE: style.stroke(mCanvas, x, y); break; } return true; }
then in Surface.java
@Override public boolean onTouchEvent(MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_UP: getHistory().saveState(); break; } final float x = panHelper.translateX(event.getX()); final float y = panHelper.translateY(event.getY()); return controller.onTouch(event.getAction(), x, y); }
Code Failure:
java.lang.IllegalMonitorStateException: unlock of unowned monitor .
Bump!
source share