C++ Nuitrack init method crash occured Android app

I am developing an Android app on an ARM64-v8a board.

I have compiled some C++ code for my Android app using the necessary libraries provided in Nuitrack/lib/android (version 0.38.2), and the compilation completes successfully.

However, an error occurs at the init() line.

Even when running the nuitrack_gl_sample project, the same crash occurs.

I am using the Orbec Astra Mini Pro

id: 28717, tid: 28717, name: mypackage  >>> mypackage <<<
2025-03-27 13:50:43.738 28818-28818 DEBUG crash_dump64 A  #00 pc 000000000006f1dc  /data/app/~~9DKUreYdqf3altU4Jw5mTQ==/mypackage-Q9Gb9iEwWQY73tGGzK7J6g==/lib/arm64/libmiddleware.so (tdv::nuitrack::middleware::android::AndroidApp::attachCurrentThread()+60) (BuildId: f47b3806e11aa81ba98187ac08d4455bdfbd8037)
2025-03-27 13:50:43.738 28818-28818 DEBUG crash_dump64 A  #01 pc 000000000006fa94  /data/app/~~9DKUreYdqf3altU4Jw5mTQ==/mypackage-Q9Gb9iEwWQY73tGGzK7J6g==/lib/arm64/libmiddleware.so (tdv::nuitrack::middleware::android::NuitrackManager::callMethod(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >&)+92) (BuildId: f47b3806e11aa81ba98187ac08d4455bdfbd8037)
2025-03-27 13:50:43.738 28818-28818 DEBUG crash_dump64 A  #02 pc 00000000000708ac  /data/app/~~9DKUreYdqf3altU4Jw5mTQ==/mypackage-Q9Gb9iEwWQY73tGGzK7J6g==/lib/arm64/libmiddleware.so (tdv::nuitrack::middleware::android::NuitrackManager::getDataPath()+156) (BuildId: f47b3806e11aa81ba98187ac08d4455bdfbd8037)
2025-03-27 13:50:43.738 28818-28818 DEBUG crash_dump64 A  #03 pc 000000000001c460  /data/app/~~9DKUreYdqf3altU4Jw5mTQ==/mypackage-Q9Gb9iEwWQY73tGGzK7J6g==/lib/arm64/libnuitrack.so (tdv::nuitrack::Nuitrack::init(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)+124) (BuildId: 0f039c7974dac757428b834902a7caa00f39816b)
2025-03-27 13:50:43.738 28818-28818 DEBUG crash_dump64 A  #04 pc 00000000000483c8  /data/app/~~9DKUreYdqf3altU4Jw5mTQ==/mypackage-Q9Gb9iEwWQY73tGGzK7J6g==/lib/arm64/libnuitrack.so (nuitrack_InitializeFromConfig+152) (BuildId: 0f039c7974dac757428b834902a7caa00f39816b)
2025-03-27 13:50:43.738 28818-28818 DEBUG crash_dump64 A  #05 pc 0000000000008060  /data/app/~~9DKUreYdqf3altU4Jw5mTQ==/mypackage-Q9Gb9iEwWQY73tGGzK7J6g==/lib/arm64/mypacakge_nuitrack.so (BuildId: 433719493393a1b79149914a662204fda3959e40)
2025-03-27 13:50:43.738 28818-28818 DEBUG crash_dump64 A  #06 pc 0000000000007dd8  /data/app/~~9DKUreYdqf3altU4Jw5mTQ==/mypackage-Q9Gb9iEwWQY73tGGzK7J6g==/lib/arm64/mypacakge_nuitrack.so (Nuitrack::init(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)+204) (BuildId: 433719493393a1b79149914a662204fda3959e40)

Hi @frank, we confirm instability on Android ARM64 devices for latest versions.
We’re now working on resolution.
Current workaround is to fallback to previous versions (we haven’t found yet the latest stable version, will update information in this topic).

BTW what the particular model of your android board ?
We’re are looking for extending the QA coverage to prevent further cases.

Hi @TAG ,

I am using a Rockchip RK3399 board.

I have tested all previous versions of Nuitrack, but the same issue occurs in every version. Thank you for looking into this issue. I would appreciate it if you could provide a solution as soon as possible.

Thanks.

Hi @frank

We have tested the last few releases and found that the last two releases(0.38.1; 0.38.2) do not work, but starting with 0.38.0 the previous releases work.
What android version do you have installed?

Hi @frank
Sorry for the delay
We fixed the Nuitrack crash. If you want, we can give out a test version to test on your device.