[BUG] Crashing on chat screen
The app crashes every time I get to a chat screen using Gemma-3n-E2B.
Phone - vivo x100 ultra OriginOS 5 - Android 15 Version - 1.0.3
Same here on a Pixel 6a, Android 15, version 1.0.3 of the app
Same on my Oppo A74 5G, ColorOS 13, Android 13
Same on my Pixel 8 pro, 1.0.3, Android 16 Beta BP31
Same on my Nothing Phone 3a, 1.0.3, Nothing OS 3.1, Android 15
Hi everyone, Thanks to @Shizola for initially raising this issue, and to all who have confirmed experiencing this crashing issue. Could you please try clearing the cache and redownloading the model? It would also be helpful to ensure there's ample free RAM before doing so. Please let us know if this helps. Thanks!
@dpknag After clearing the cache and redownloading the model, the app didn't crash and I could run the AI with no problems. The issue seems to be resolved for me. Thanks for the help!
Thanks, @ginqus, for confirming that clearing the cache and redownloading the model worked for you!
For anyone else who was experiencing this crash, it would be a great help if you could confirm whether this solution works on your device too.
Hi @dpknag that indeed fixed it for me too, thanks. I'm curious what causes this issue? When I cleared the cache it was about 300kb.
Hi @Shizola,
That's a great question, and thank you for the precise description of the problem.
The issue is likely caused by the cache file entering an inconsistent or invalid state, not by its size. Even a small 300kb file can cause problems if it contains data that the app can no longer parse correctly when loading the chat screen, leading to the crash you experienced.
Clearing the cache resolves the issue because it completely deletes that invalid file, forcing the app to create a fresh, clean one on the next launch.
Hope this helps clarify things! Thanks again for helping us troubleshoot.
Hi all,
As we continue our investigation into this issue, we are requesting a full Bug Report. This will be a great help to our engineers in diagnosing the root cause.
We've put together a step-by-step guide on how to capture and share one here: https://github.com/google-ai-edge/gallery/blob/main/Bug_Reporting_Guide.md
Thank you for your ongoing help and patience.
Weird, I can't reproduce the issue anymore. Tried reinstalling the app and the models, exactly the way I did before, but this time everything works smoothly. Neither the app nor the models have been updated since I've had this issue...
Hello everyone,
Thank you for your reports and for helping us investigate this issue and thank you @ginqus for confirming that you were no longer able to reproduce the problem on a fresh install—that was very helpful information.
We have the latest version (v1.0.7) released. Please update the app and let us know your feedback.
Release Page: https://github.com/google-ai-edge/gallery/releases/tag/1.0.7 Play Store: https://play.google.com/store/apps/details?id=com.google.ai.edge.gallery
We are closing this issue now. If you face any similar issues on the new version, please feel free to open a new issue.
Thank you for your contributions.