List
JNI error while starting Image Tracker in Unity-Android
Posted Date: 2023-08-21 15:59     Edited Date: 2023-08-23 3:43     Writer: support

Please provide your development details as below;

1. SDK Version: 6.0.1
2. Development Environment: Unity-Android
3. Tracker/Scanner: Image Tracker
4. License Type: Free
5. Target Device(Optional):

Hello. After updating license from 5 to 6 the app crashes when the image tracker scene is loaded. Here's the error I get in the logcat:

2023-08-21 17:48:46.902 it.distum.testar                     I  StartTracker
                                                                ImageTrackerARSample:Start()
2023-08-21 17:48:46.903 it.distum.testar                     I  Enter Tracking thread
2023-08-21 17:48:46.906 it.distum.testar                     A  java_vm_ext.cc:594] JNI DETECTED ERROR IN APPLICATION: jmethodID was NULL
                                                                java_vm_ext.cc:594]     in call to CallVoidMethodV
                                                                java_vm_ext.cc:594]     from boolean com.unity3d.player.UnityPlayer.nativeRender()
2023-08-21 17:48:46.911 system_server                        I  notifyCameraState packageName:it.distum.testar cameraState:1 frontcamera:0 cameraId:0
2023-08-21 17:48:46.986 it.distum.testar                     A  runtime.cc:682] Runtime aborting...

Looks like the function that raises the error is the following:

TrackerManager.GetInstance().StartTracker(TrackerManager.TRACKER_TYPE_IMAGE);

Same behaviour if I use TrackerManager.TRACKER_TYPE_IMAGE_FUSION.

Any idea how to resolve the error?
Thanks in advance.

Posted Date: 2023-08-23 3:43     Edited Date: 2023-08-23 3:43     Writer: sejin

Thank you for your interest in MAXST AR SDK.

First, does the AR SDK 6.0.1 ImageTrackerSample Scene work normally? 
And how did you update from AR SDK 5 to AR SDK 6?
If the ImageTrackerSample is working fine, it looks like there are files missing during the update process.
If it crashes, please post a log with the fatal error so we can get a more accurate answer.
Thank you.


Best regards,

Shelden

MAXST Support Team