General questions

"java.lang.IllegalStateException: a trace is already pending" Error

I got this error during the writing on the canvas.Error occurred on this function (Recognizer class, pointerDown): mTextRecognizer.pointerDown(point.x, point.y, point.t, point.p);

What could be the possible reason for this?

Thanks for your help.

1 Comment

Dear Omerakif,


Thank you for your question.


This error is usually raised when a pointerUp event is missing. For each stroke that is added, you must ensure it starts with a penDown event and end with a penUp event

MyScript iink SDK processes user input in real time. You thus have to tell how pointers are interacting with the capture surface (typically a screen or a graphical tablet).

This can be done by calling the following methods of the Recognizer object:

  • pointerDown() - When the pointer first touches the surface.
  • pointerMove() - When the pointer moves while staying in contact with the surface.
  • pointerUp() - When the pointer is lifted from the surface.


Best regards,


Gwenaëlle

Login or Signup to post a comment