Describe the bug
App crashes with a native JNI error (fid == null) when using ML Kit Pose Detection (accurate) version 18.0.0-beta5.
The crash happens immediately on app startup, even before any ML Kit API is explicitly called.
This issue only occurs on Pixel 6 / Pixel 6 Pro (Tensor) and is reproducible across multiple Android versions (12 and 13), while other devices (including Pixel 6a) work normally.
To Reproduce
- Add dependency:
implementation "com.google.mlkit:pose-detection-accurate:18.0.0-beta5"
- Build and run the app on Pixel 6 or Pixel 6 Pro
- Launch the app
- App crashes immediately on startup
Error:
JNI DETECTED ERROR IN APPLICATION: fid == null
in call to GetObjectField
Relevant stacktrace:
com.google.mlkit.vision.mediapipe.MediaPipeGraphRunner.load
com.google.mlkit.vision.pose.internal.zzh.load
com.google.mlkit.common.sdkinternal.ModelResource.zza
com.google.mlkit.common.sdkinternal.MlKitThreadPool
Expected behavior
The app should start normally without crashing, and ML Kit should initialize safely in the background.
SDK Info:
- com.google.mlkit:pose-detection-accurate:18.0.0-beta5
Note:
- Version 18.0.0-beta3 works correctly (no crash), but it does not support Android 16KB page size, so upgrading to beta5 is required.
Smartphone:
- Device: Pixel 6, Pixel 6 Pro (crash)
- OS: Android 12 (API 31), Android 13 (API 33)
Not affected:
- Pixel 6a
- Other Android devices
Full error log:
Note: Logs have been sanitized to remove project-specific information.
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/oriole/oriole:13/TQ3A.230705.001/10216780:user/release-keys'
Revision: 'MP1.0'
ABI: 'arm64'
Timestamp: 2026-05-03 21:48:41
Process uptime: 1s
Cmdline: com.example.app
pid: XXXX, tid: XXXX, name: pool-21-thread-
uid: XXXX
tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Abort message:
'JNI DETECTED ERROR IN APPLICATION: fid == null
in call to GetObjectField
from long com.google.android.gms.internal.mlkit_vision_mediapipe.zzhx.zzj(long, com.google.android.gms.internal.mlkit_vision_mediapipe.zzib)'
backtrace:
#00 pc 00000000000531f4 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164)
#01 pc 00000000006f9f28 /apex/com.android.art/lib64/libart.so (art::Runtime::Abort)
#02 pc 0000000000016ea8 /apex/com.android.art/lib64/libbase.so
#03 pc 0000000000016450 /apex/com.android.art/lib64/libbase.so
#04 pc 00000000004664e0 /apex/com.android.art/lib64/libart.so (JniAbort)
#05 pc 0000000000638780 /apex/com.android.art/lib64/libart.so (GetObjectField)
#06 pc 0000000000372fdc /data/app/.../base.apk
(Java_com_google_mediapipe_framework_PacketCreator_nativeCreateProto)
#07 pc 0000000000461554 /apex/com.android.art/lib64/libart.so
#08 pc 000000000020a910 /apex/com.android.art/lib64/libart.so
#09 pc 0000000000256668 /data/app/.../base.apk
(com.google.android.gms.internal.mlkit_vision_mediapipe.zzhx.zze)
#10 pc 000000000020a254 /apex/com.android.art/lib64/libart.so
#11 pc 00000000002ac28c /data/app/.../base.apk
(com.google.mlkit.vision.mediapipe.zzc.zzb)
#12 pc 000000000020b074 /apex/com.android.art/lib64/libart.so
#13 pc 00000000002acbb8 /data/app/.../base.apk
(com.google.mlkit.vision.mediapipe.zzg.zzd)
#14 pc 000000000020a254 /apex/com.android.art/lib64/libart.so
#15 pc 00000000002ab296 /data/app/.../base.apk
(com.google.mlkit.vision.mediapipe.MediaPipeGraphRunner.load)
#16 pc 000000000020a254 /apex/com.android.art/lib64/libart.so
#17 pc 00000000002aed3a /data/app/.../base.apk
(com.google.mlkit.vision.pose.internal.zzh.load)
#18 pc 000000000020a254 /apex/com.android.art/lib64/libart.so
#19 pc 00000000002a0904 /data/app/.../base.apk
(com.google.mlkit.common.sdkinternal.ModelResource.zza)
#20 pc 000000000020a254 /apex/com.android.art/lib64/libart.so
#21 pc 00000000002a53a0 /data/app/.../base.apk
(com.google.mlkit.common.sdkinternal.zzn.run)
#22 pc 000000000020b074 /apex/com.android.art/lib64/libart.so
#23 pc 00000000002a5510 /data/app/.../base.apk
(com.google.mlkit.common.sdkinternal.zzt.run)
#24 pc 000000000020b074 /apex/com.android.art/lib64/libart.so
#25 pc 00000000002a0672 /data/app/.../base.apk
(com.google.mlkit.common.sdkinternal.MlKitThreadPool.zze)
#26 pc 0000000000209334 /apex/com.android.art/lib64/libart.so
#27 pc 00000000002a0614 /data/app/.../base.apk
(com.google.mlkit.common.sdkinternal.MlKitThreadPool.zzc)
#28 pc 0000000000209334 /apex/com.android.art/lib64/libart.so
#29 pc 00000000002a520c /data/app/.../base.apk
(com.google.mlkit.common.sdkinternal.zzi.run)
#30 pc 0000000000308e80 /system/framework/arm64/boot.oat
(java.util.concurrent.ThreadPoolExecutor.runWorker)
#31 pc 0000000000306068 /system/framework/arm64/boot.oat
(java.util.concurrent.ThreadPoolExecutor$Worker.run)
#32 pc 000000000020b0d4 /apex/com.android.art/lib64/libart.so
#33 pc 00000000002a0640 /data/app/.../base.apk
(com.google.mlkit.common.sdkinternal.MlKitThreadPool.zzd)
#34 pc 0000000000209334 /apex/com.android.art/lib64/libart.so
#35 pc 00000000002a5288 /data/app/.../base.apk
(com.google.mlkit.common.sdkinternal.zzk.run)
#36 pc 000000000017f1f0 /system/framework/arm64/boot.oat
(java.lang.Thread.run)
#37 pc 0000000000457b6c /apex/com.android.art/lib64/libart.so
#38 pc 0000000000484e54 /apex/com.android.art/lib64/libart.so
#39 pc 0000000000484b20 /apex/com.android.art/lib64/libart.so
#40 pc 00000000005ce334 /apex/com.android.art/lib64/libart.so
#41 pc 00000000000c226c /apex/com.android.runtime/lib64/bionic/libc.so
#42 pc 0000000000054a30 /apex/com.android.runtime/lib64/bionic/libc.so
Describe the bug
App crashes with a native JNI error (fid == null) when using ML Kit Pose Detection (accurate) version 18.0.0-beta5.
The crash happens immediately on app startup, even before any ML Kit API is explicitly called.
This issue only occurs on Pixel 6 / Pixel 6 Pro (Tensor) and is reproducible across multiple Android versions (12 and 13), while other devices (including Pixel 6a) work normally.
To Reproduce
implementation "com.google.mlkit:pose-detection-accurate:18.0.0-beta5"Error:
Relevant stacktrace:
Expected behavior
The app should start normally without crashing, and ML Kit should initialize safely in the background.
SDK Info:
Note:
Smartphone:
Not affected:
Full error log:
Note: Logs have been sanitized to remove project-specific information.