Now I sent a set of strokes to identify. The format of the strokes is arranged in a down move up method and transmitted to editor.pointerEvents() for identification. Then two sets of exceptions are raised.
Exception one : java.lang.IllegalStateException: no trace pending
Exception two :java.lang.IllegalStateException: pointer with same pointerId has a trace already pending
After that, it can’t be recognized.
How can I get the recognition back to use normally?
The recommendation is then exactly the same than for the "no trace pending" error.
Also, as this crashes your application, if you want to prevent this, you shall ensure you catch exceptions.
Also, if this doesn't help, one other reason could be that your editor is in "invalid state", which can occur for several reasons (e.g. configuration not properly loaded...).
The recommendation is then exactly the same than for the "no trace pending" error.
Also, as this crashes your application, if you want to prevent this, you shall ensure you catch exceptions.
Also, if this doesn't help, one other reason could be that your editor is in "invalid state", which can occur for several reasons (e.g. configuration not properly loaded...).
磊 胡
Now I sent a set of strokes to identify. The format of the strokes is arranged in a down move up method and transmitted to editor.pointerEvents() for identification. Then two sets of exceptions are raised.
Exception one : java.lang.IllegalStateException: no trace pending
Exception two :java.lang.IllegalStateException: pointer with same pointerId has a trace already pending
After that, it can’t be recognized.
How can I get the recognition back to use normally?
Thank you for your help!
Dear 磊 胡,
thank you for your questions.
Currently, the "no trace pending" error usually occurs when a pointerMove is done while no pointerDown was done before: https://developer-support.myscript.com/support/discussions/topics/16000025731
=>Please ensure each stroke is added as follows:
pointerDown
pointerMove
...
pointerMove
pointerUP
Regarding the second exception "pointer with same pointerId has a trace already pending", it usually occurs when a pointerUP is missing: https://developer-support.myscript.com/support/discussions/topics/16000024603
The recommendation is then exactly the same than for the "no trace pending" error.
Also, as this crashes your application, if you want to prevent this, you shall ensure you catch exceptions.
Also, if this doesn't help, one other reason could be that your editor is in "invalid state", which can occur for several reasons (e.g. configuration not properly loaded...).
Let us know if this helps.
Best regards,
Olivier
Olivier @MyScript
Dear 磊 胡,
thank you for your questions.
Currently, the "no trace pending" error usually occurs when a pointerMove is done while no pointerDown was done before: https://developer-support.myscript.com/support/discussions/topics/16000025731
=>Please ensure each stroke is added as follows:
pointerDown
pointerMove
...
pointerMove
pointerUP
Regarding the second exception "pointer with same pointerId has a trace already pending", it usually occurs when a pointerUP is missing: https://developer-support.myscript.com/support/discussions/topics/16000024603
The recommendation is then exactly the same than for the "no trace pending" error.
Also, as this crashes your application, if you want to prevent this, you shall ensure you catch exceptions.
Also, if this doesn't help, one other reason could be that your editor is in "invalid state", which can occur for several reasons (e.g. configuration not properly loaded...).
Let us know if this helps.
Best regards,
Olivier