Math

Answered

Error, -[IINKEditor setPart:]::94 INVALID_OPERATION

Error, -[IINKEditor setPart:]::94 INVALID_OPERATION

Error, -[IINKEditor pointerEvents:count:doProcessGestures:error:]::256 no trace pending


Best Answer

Dear Li Bow,


Currently, I am coming back to the "INVALID_OPERATION" error? Did you solve it?


As a reminder:

If this doesn' solve the "INVALID_OPERATION" error, can you confirm you set a renderer AND a FontMetricsProvider to your editor?

You can refer to the following example: https://developer.myscript.com/docs/interactive-ink/1.4/ios/advanced/off-screen-usage/#example

And the API documentation: https://developer.myscript.com/refguides/interactive-ink/android/1.4/com/myscript/iink/Editor.html#setPart-com.myscript.iink.ContentPart-


Did you also deploy the Math configuration and resources in your project?


Can you please try to solve it and see if it allows to get everything working?


Best regards,


Olivier


image


Dear Li Bow,


thank you for contacting us.


Currently, the above trace has 2 errors, "Invalid operation" and "no trace pending."


First,the "no trace pending" message is raised when a "pointerMove" event is done while no "pointerDown" event was done. Can you please ensure each time a new stroke is added, it starts with "pointerDown", then each point is added via "pointerMove" and at the end, a "pointerUP" is done? You can refer to the following documentation that explains how to proceed: https://developer.myscript.com/docs/interactive-ink/1.4/android/fundamentals/editing/#input-capture.


If this doesn' solve the "INVALID_OPERATION" error, can you confirm you set a renderer AND a FontMetricsProvider to your editor?

You can refer to the following example: https://developer.myscript.com/docs/interactive-ink/1.4/ios/advanced/off-screen-usage/#example

And the API documentation: https://developer.myscript.com/refguides/interactive-ink/android/1.4/com/myscript/iink/Editor.html#setPart-com.myscript.iink.ContentPart-


Best regards,


Olivier

Ios object - C should be how to deal with, I have been in accordance with the GetStartedDemo set, Drawing works, not only the Math, message is: 

[IINKEditor pointerEvents: count: doProcessGestures: error:] : : 256 no trace pending

[IINKEditor pointerEvents: count: doProcessGestures: error:] : : 256 no trace pending

[IINKEditor pointerEvents: count: doProcessGestures: error:] : : 256 no trace pending

[IINKEditor pointerUp:at:force:type:pointerId:error:]::215 no trace pending

image


Dear Li Bow,


as said above, the "no trace pending" error message means a pointerMove event is done, while there were no pointerDown event.


The above code doesn't help at all. I recommend you refer to our Android batch sample (you should be able to port the code in objC): https://github.com/MyScript/interactive-ink-additional-examples-android/blob/master/java/samples/batch-mode/src/main/java/com/myscript/iink/samples/batchmode/MainActivity.java


If this doesn't help, please provide a project, so that we can investigate further.


Best regards,


Olivier

Dear Olivier @MyScript

Do I need to set the pointerMove separately from the Settings I'm using in EditorViewController?

As shown above, Drawing can be used after setting

When I touchBegin, I saw that pointerDown, pointerMove and pointerUP were successively carried out in inputView.

I guess if it's because of my setup problem, I used the EditorViewController from GetStartedDemo to initialize, and then Set up IINKContentPackage, IINKContentPart (Math)

I hope I can get your help

Dear Li Bow,


Your reply is not helpful, I hope to get your effective help. We have to  pay to use MyScript, and we're already going through the business  process. Hope to solve the problem as soon as possible. Don't just post  forums


This is a public forum and I do not appreciate this way to proceed. I requested more information from you, asked for a project, and did not get anything, even not a sentence and an answer to my questions.


As said several time, the ONLY reason that this error is raised is that the pointerDown even was not done when a new stroke is started. There cannot have any other cause.


As you can see in the InputView.mm file of the IInkUIReferenceImplementation, we override the touchesBegan and in the latter, we call the pointerDown function: 

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
[super touchesBegan:touches withEvent:event];

UITouch *touch = touches.anyObject;
IINKPointerEvent e = [self pointerDownEventFromTouch:touch];
if (e.pointerType == IINKPointerTypePen)
{
self.touchesBegan = YES;
}

[self.editor pointerDown:CGPointMake(e.x, e.y) at:e.t force:e.f type:e.pointerType pointerId:e.pointerId error:nil];

self.cancelled = NO;
}


There is probably an integration issue on your side, maybe the touchesBegan function is not called, or you did not add our touchesBegan function... But I cannot provide with more information with the information you provided, althought I requested it.


Best regards,


Olivier

Dear 

Olivier

When I start touching the View, the 'touchesBegan' method in inputView.mm has been called. I'm just taking the editorViewController from the demo and using it. The other part parameters ("Diagram", "Drawing", "Text Document", "Text ") can all be used by the same code. Does Math need to be configured separately?

image





Answer

Dear Li Bow,


Currently, I am coming back to the "INVALID_OPERATION" error? Did you solve it?


As a reminder:

If this doesn' solve the "INVALID_OPERATION" error, can you confirm you set a renderer AND a FontMetricsProvider to your editor?

You can refer to the following example: https://developer.myscript.com/docs/interactive-ink/1.4/ios/advanced/off-screen-usage/#example

And the API documentation: https://developer.myscript.com/refguides/interactive-ink/android/1.4/com/myscript/iink/Editor.html#setPart-com.myscript.iink.ContentPart-


Did you also deploy the Math configuration and resources in your project?


Can you please try to solve it and see if it allows to get everything working?


Best regards,


Olivier