[Bug report] Android pose detector occurred (fid == null) please help me..
Opened this issue · 0 comments
Moon-Metrex commented
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.