Android Studio example crashes on launch

Hi,

I’m trying to get Nuitrack SDK running on Android. When I try running the Examples/nuitrack_android_studio_gl_sample/ example from the current version of the 3DiVi/nuitrack-sdk Github repo (so Nuitrack v0.35.1), the app crashes with this logcat:

2021-02-11 10:32:31.607 8177-8177/? I/Zygote: seccomp disabled by setenforce 0
2021-02-11 10:32:31.611 8177-8177/? I/uitrackGLSampl: Late-enabling -Xcheck:jni
2021-02-11 10:32:31.641 8177-8177/? I/uitrackGLSampl: Unquickening 12 vdex files!
2021-02-11 10:32:31.684 8177-8177/com.tdv.nuitrack.sdk.samples.NuitrackGLSample D/ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.test.base.jar
2021-02-11 10:32:31.836 8177-8177/com.tdv.nuitrack.sdk.samples.NuitrackGLSample D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2021-02-11 10:32:31.837 8177-8177/com.tdv.nuitrack.sdk.samples.NuitrackGLSample D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2021-02-11 10:32:32.056 8177-8177/com.tdv.nuitrack.sdk.samples.NuitrackGLSample W/uitrackGLSampl: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
2021-02-11 10:32:32.057 8177-8177/com.tdv.nuitrack.sdk.samples.NuitrackGLSample W/uitrackGLSampl: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
2021-02-11 10:32:32.132 8177-8177/com.tdv.nuitrack.sdk.samples.NuitrackGLSample D/whie: pre-Nuitrack.init()
2021-02-11 10:32:32.138 8177-8177/com.tdv.nuitrack.sdk.samples.NuitrackGLSample D/whie: post-Nuitrack.init()
2021-02-11 10:32:32.276 8177-8177/com.tdv.nuitrack.sdk.samples.NuitrackGLSample D/whie: Nuitrack.init() onInitSuccess()
2021-02-11 10:32:32.331 8177-8200/com.tdv.nuitrack.sdk.samples.NuitrackGLSample D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
2021-02-11 10:32:32.336 8177-8200/com.tdv.nuitrack.sdk.samples.NuitrackGLSample I/Gralloc4: mapper 4.x is not supported
2021-02-11 10:32:32.337 8177-8200/com.tdv.nuitrack.sdk.samples.NuitrackGLSample W/Gralloc3: mapper 3.x is not supported
2021-02-11 10:32:32.360 8177-8200/com.tdv.nuitrack.sdk.samples.NuitrackGLSample E/gralloc: Arm Module v1.0
2021-02-11 10:32:32.361 8177-8200/com.tdv.nuitrack.sdk.samples.NuitrackGLSample E/ion: ioctl c0044901 failed with code -1: Inappropriate ioctl for device
2021-02-11 10:32:32.504 8177-8177/com.tdv.nuitrack.sdk.samples.NuitrackGLSample V/threaded_app: Creating: 0x6f55d23cb0
2021-02-11 10:32:32.504 8177-8220/com.tdv.nuitrack.sdk.samples.NuitrackGLSample V/threaded_app: Config: mcc=0 mnc=0 lang=en cnt=US orien=2 touch=1 dens=360 keys=1 nav=1 keysHid=3 navHid=0 sdk=30 size=2 long=1 modetype=1 modenight=1
2021-02-11 10:32:32.508 8177-8177/com.tdv.nuitrack.sdk.samples.NuitrackGLSample V/threaded_app: Start: 0x6f55d23cb0
2021-02-11 10:32:32.509 8177-8220/com.tdv.nuitrack.sdk.samples.NuitrackGLSample V/threaded_app: activityState=10
2021-02-11 10:32:32.510 8177-8177/com.tdv.nuitrack.sdk.samples.NuitrackGLSample V/threaded_app: Resume: 0x6f55d23cb0
2021-02-11 10:32:32.510 8177-8220/com.tdv.nuitrack.sdk.samples.NuitrackGLSample V/threaded_app: activityState=11
2021-02-11 10:32:32.517 8177-8177/com.tdv.nuitrack.sdk.samples.NuitrackGLSample V/threaded_app: InputQueueCreated: 0x6f55d23cb0 -- 0x6f65d0a650
2021-02-11 10:32:32.517 8177-8220/com.tdv.nuitrack.sdk.samples.NuitrackGLSample V/threaded_app: APP_CMD_INPUT_CHANGED
2021-02-11 10:32:32.517 8177-8220/com.tdv.nuitrack.sdk.samples.NuitrackGLSample V/threaded_app: Attaching input queue to looper
2021-02-11 10:32:32.543 8177-8177/com.tdv.nuitrack.sdk.samples.NuitrackGLSample V/threaded_app: NativeWindowCreated: 0x6f55d23cb0 -- 0x7015d5f6c0
2021-02-11 10:32:32.544 8177-8220/com.tdv.nuitrack.sdk.samples.NuitrackGLSample V/threaded_app: APP_CMD_INIT_WINDOW
2021-02-11 10:32:32.563 8177-8220/com.tdv.nuitrack.sdk.samples.NuitrackGLSample I/NUITRACK: Configuration file ( /storage/emulated/0/Android/data/com.tdv.nuitrack.sdk/files/nuitrack/nuitrack.config ) error: <unspecified file>(1): expected value
2021-02-11 10:32:32.580 8177-8221/com.tdv.nuitrack.sdk.samples.NuitrackGLSample A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4 in tid 8221 (InsetsAnimation), pid 8177 (uitrackGLSample)
2021-02-11 10:32:32.605 8177-8177/com.tdv.nuitrack.sdk.samples.NuitrackGLSample A/libc: FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x7128771b18)

I’m running on 64-bit Android (specifically Mediatek i500), with RealSense D435. So I installed latest Nuitrack_arm64.apk, that app works as expected (shows skeleton tracking after selecting sensor + adding activation key)

So the only changes I made to the Examples/nuitrack_android_studio_gl_sample/ example project are to set abiFilters 'arm64-v8a' in app/build.gradle, upgraded Android Gradle Plugin and Gradle per the README, and added debug logging to MainActivity.java (in the logcat, you see whie debugging statements show that Nuitrack.init()'s onInitSuccess() callback is called before the crash happens)

Not sure how to diagnose this error and be able to successfully run the example app? Thank you for your help,

Julian