googlesamples / googlesamples/mlkit

[Bug report] Android pose detector occurred (fid == null) please help me..

Open
#910 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
4.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

hi sir
This is android developer in Korea.

I'm developing the app using android mlkit pose detector.
sometimes the mlkit library crashed, but i don't know how what to do.

can you check my issue sir?

** my code **
`
@OptIn(ExperimentalGetImage::class)
override fun processImageProxy(image: ImageProxy, onPoseDetected: (Pose?) -> Unit) {

runCatching {
if (image.image == null) {
throw Exception("Image null Exception")
}

detector?.process(
InputImage.fromMediaImage(
image.image!!,
image.imageInfo.rotationDegrees
)
)?.addOnSuccessListener { pose ->
onPoseDetected(pose)
}?.addOnCompleteListener {
image.image?.close()
image.close()
}?.addOnFailureListener {
image.image?.close()
image.close()
}
}.onFailure { e ->
image.close()
image.image?.close()
}
}
`

** Error cause **
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)

Please..sir...
Thank you...sir
best regards.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.