General questions

Answered

Crash in react native (android)

Dear Team,

We are upgrading our app from react native v0.57.5 to v0.59.10.
The android app crash when we try to use the handwriting recognition (ATK widget), here is the crash log:

-------------------------------------------------------------

W/System.err: !! Native code library failed to load !!

    java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNSt3__119__shared_weak_countD2Ev" referenced by "/data/app/com.classroom-KHRIzILObzcEWhpDJn-nCQ==/lib/x86/libMyScriptEngine.CPP.so"...

    java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNSt3__119__shared_weak_countD2Ev" referenced by "/data/app/com.classroom-KHRIzILObzcEWhpDJn-nCQ==/lib/x86/libMyScriptEngine.CPP.so"...

        at java.lang.Runtime.loadLibrary0(Runtime.java:1016)

        at java.lang.System.loadLibrary(System.java:1657)

        at com.myscript.atk.core.ATKCoreJNI.clinit(ATKCoreJNI.java:25)

        at com.myscript.atk.core.ATKCoreJNI.<clinit>(ATKCoreJNI.java:44)

        at com.myscript.atk.core.ATKCoreJNI.new_Extent__SWIG_0(Native Method)

        at com.myscript.atk.core.Extent.<init>(Extent.java:39)

        at com.myscript.atk.math.widget.utils.RenderingRunnable.<init>(RenderingRunnable.java:62)

W/System.err: at com.myscript.atk.math.widget.views.InkView.<init>(InkView.java:75)

        at com.myscript.atk.math.widget.views.InkView.<init>(InkView.java:57)

        at com.myscript.atk.math.widget.views.MathView.<init>(MathView.java:50)

        at com.myscript.atk.math.widget.views.MathView.<init>(MathView.java:38)

        at com.myscript.atk.math.widget.MathWidget.<init>(MathWidget.java:84)

        at com.myscript.atk.math.widget.MathWidget.<init>(MathWidget.java:76)

        at com.myscript.atk.math.widget.MathWidget.<init>(MathWidget.java:71)

        at com.fsclassroom.myscript.MyScriptViewManager$1.<init>(MyScriptViewManager.java:47)

        at com.fsclassroom.myscript.MyScriptViewManager.createViewInstance(MyScriptViewManager.java:47)

        at com.fsclassroom.myscript.MyScriptViewManager.createViewInstance(MyScriptViewManager.java:23)

        at com.facebook.react.uimanager.ViewManager.createView(ViewManager.java:47)

        at com.facebook.react.uimanager.NativeViewHierarchyManager.createView(NativeViewHierarchyManager.java:256)

        at com.facebook.react.uimanager.UIViewOperationQueue$CreateViewOperation.execute(UIViewOperationQueue.java:200)

        at com.facebook.react.uimanager.UIViewOperationQueue$1.run(UIViewOperationQueue.java:911)

-------------------------------------------------------------


Thanks,

Alex



Best Answer

Dear Alex,


thank you for contacting us and your question.


Based on the above, it looks like you are using a recent version of the NDK. Indeed, after checking, using the NDK R16b or R17, it should work. With a newer version (e.g. R18, R19), you will get the above error message.


On our side, as the ATK is no longer maintained, no update will be done. If possible, we recommend you update your application to the iink SDK, using a Math part.


Best regards,


Olivier

1 Comment

Answer

Dear Alex,


thank you for contacting us and your question.


Based on the above, it looks like you are using a recent version of the NDK. Indeed, after checking, using the NDK R16b or R17, it should work. With a newer version (e.g. R18, R19), you will get the above error message.


On our side, as the ATK is no longer maintained, no update will be done. If possible, we recommend you update your application to the iink SDK, using a Math part.


Best regards,


Olivier