-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Universal Sentence Encoder crashes on initialisation - Android #4762
Comments
validated that older versions face the same issue |
We rigorously test all of our Android Task APIs on physical mobile Android devices, primarily the Pixel, rather than on tablet devices. We strongly recommend conducting your testing on a physical mobile Android device. In cases where tasks do not necessitate the use of a device camera or microphone, an Android device emulator can be a suitable alternative to a physical device. For a more detailed guide on setting up an Android device, we encourage you to refer to our Android device setup documentation for enhanced clarity and comprehension. Additionally, kindly inform us if you encounter similar behaviour on the recommended device. Thank you |
considering another report on a Samsung s22, it seems to be a culprint that Samsung devices are not properly being supported at this time. I don't fully understand your comment. You make it seem it's my mistake of not using the correct device but it's on you the library developer to ensure compatibility within the Android ecosystem. For now, will switch to another text embedding implementation. Looking forward seeing this library becoming more stable in the future. |
Samsung z-flip 5 same crash. |
Thank you for reporting this. We have received confirmation of the crash report on the same device, and we are actively working on a solution for it. Meanwhile, we suggest that you please consider using an older version for these devices instead. |
Can't give a reason why this is happening but when adding:
the issue goes away, eventhough without it, it works on pixel and emulator. |
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
Android 13
Mobile device if the issue happens on mobile device
Samsung Galaxy Tab S8 Ultra 5G
Browser and version if the issue happens on browser
NA
Programming Language and version
Kotlin/Java
MediaPipe version
v0.10.3
Bazel version
NA
Solution
Text Embeddings
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
NA
Xcode & Tulsi version (if issue is related to building for iOS)
NA
Describe the actual behavior
When trying to load Universal Sentence Encoder on this specific device, I'm facing a native crash. This code however works on an emulator (Nexus 4, API 25).
Describe the expected behaviour
Standalone code/steps you may have used to try to get what you need
Setup is conform to the sample code from the website: - TextEmbedderHelper - hosting of model in assets
Other info / Complete Logs
The text was updated successfully, but these errors were encountered: