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
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] JNI DETECTED ERROR IN APPLICATION: jmethodID was NULL
                                                      ]     in call to CallVoidMethodV
                                                      ]     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 aborting...

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


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,


MAXST Support Team