Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Moon-Metrex opened this issue Jan 10, 2025 · 0 comments

Comments

@Moon-Metrex
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant