Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
Android 15 and 16 (possibly more)
Mobile device if the issue happens on mobile device
Samsung Galaxy A54 and Google Pixel 6a
Browser and version if the issue happens on browser
No response
Programming Language and version
Kotlin 2.2.0
MediaPipe version
0.10.26.1
Bazel version
No response
Solution
ImageSegmenter
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
AndroidStudio 2025.1.1 / compile SDK 36 / target SDK 36
Xcode & Tulsi version (if issue is related to building for iOS)
No response
Describe the actual behavior
Hard crash on Android runtime, even try/catch doesn't catch it.
Describe the expected behaviour
The image segmenter processes correctly
Standalone code/steps you may have used to try to get what you need
https://github.com/rvp-diconium/mediapipe-bug-report
Other info / Complete Logs
Please see the attached repository with the minimum reproducible code.
https://github.com/rvp-diconium/mediapipe-bug-report
## What's in the repo
- Gradle task `downloadSelfieSegmenterModelFile` to download the tflite file.
- MediaPipeCrash object that executes an ImageSegmenter using using the selfie_segmenter
- MainActivity that opens a coroutine and executes the crash
- ProGuard rules file to keep to
workaround [current proguard related issues](https://github.com/google-ai-edge/mediapipe/issues?q=is%3Aissue%20%20proguard)
- Gradle, Plugins, SDKs and dependencies on the latest as the time of submitting the report.
## How to reproduce the bug:
### Run with Proguard disabled
In Android Studio "build variants" select "debug", the application and ImageSegmenter should run
normally and return a MPImage as result.
### Run with Proguard enabled
In Android Studio "build variants" select "debug", the application will have a hard runtime crash that not even try/catch can catch it.
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
Android 15 and 16 (possibly more)
Mobile device if the issue happens on mobile device
Samsung Galaxy A54 and Google Pixel 6a
Browser and version if the issue happens on browser
No response
Programming Language and version
Kotlin 2.2.0
MediaPipe version
0.10.26.1
Bazel version
No response
Solution
ImageSegmenter
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
AndroidStudio 2025.1.1 / compile SDK 36 / target SDK 36
Xcode & Tulsi version (if issue is related to building for iOS)
No response
Describe the actual behavior
Hard crash on Android runtime, even try/catch doesn't catch it.
Describe the expected behaviour
The image segmenter processes correctly
Standalone code/steps you may have used to try to get what you need
https://github.com/rvp-diconium/mediapipe-bug-report
Other info / Complete Logs