Open FranciZ opened 5 years ago
When putting the phone to and out of sleep I also sometimes start getting the below exception.
System.err: com.tns.NativeScriptException: Attempt to use cleared object reference id=45414
System.err: at com.tns.Runtime.getJavaObjectByID(Runtime.java:923)
System.err: at com.tns.Runtime.callJSMethodNative(Native Method)
System.err: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1120)
System.err: at com.tns.Runtime.callJSMethodImpl(Runtime.java:1000)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:987)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:967)
System.err: at com.tns.Runtime.callJSMethod(Runtime.java:959)
System.err: at com.tns.gen.android.hardware.Camera_PreviewCallback.onPreviewFrame(Camera_PreviewCallback.java:17)
System.err: at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1209)
System.err: at android.os.Handler.dispatchMessage(Handler.java:106)
System.err: at android.os.Looper.loop(Looper.java:193)
System.err: at android.app.ActivityThread.main(ActivityThread.java:6718)
System.err: at java.lang.reflect.Method.invoke(Native Method)
System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Can you share the code that triggers these?
Occasionally the MLKitImageLabeling camera will fail with the below exception. I think it loses reference to the JavaScript method.