-
Notifications
You must be signed in to change notification settings - Fork 537
The LLAVA model loaded successfully on the Samsung S24 Ultra. After loading, when an image is fed into the model, the app crashes. FYI I am using latest code with all the steps mentioned in Repository. #6189
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
Comments
Hi @Deswaluday, did you build the AAR file from the same branch of this demo app? Or you are using the prebuilt AAR. |
Just to confirm, is your prompt empty? If so this could be a bug on our side |
Thank you @Deswaluday for your question. As an additional tip, please make sure that your model is successfully loaded prior to selecting an image. From the log |
we are using prebuilt AAR .. |
But in text model LLama 3.2 it is working fine. |
whenever i add prompt the app will crash. |
Thanks for the response @Deswaluday.
Can you confirm the following:
If answers to both are 'yes', then could you provide exact instructions on how to reproduce and a complete logcat for further debugging? Thanks! |
@cmodi-meta 10-31 18:33:57.096 7368 7516 D ETLogging: Model loaded time: 10215 ms 10-31 18:37:39.951 8239 8239 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** |
Hi do we have any solution for this issue |
Thank you all for the comments and logs for this. I'll see if I can reproduce this on my side for debugging. Since there looks to be related with resizing the image during the prefill stage, I'm curious if trying with another image (smaller or different dimensions) would behave better? |
Hi @cmodi-meta, thank you for your response. While providing the exact 336x224 image resolves the resizing issue, a subsequent problem arises: |
@muxi1998 Glad that we identified it was related to the image size for the previous issue you shared. Just to be clear on that one, what it resolved with providing the exact image or did you need to provide a smaller image? If you needed to provide a smaller or resized image then would you be open to sharing the original and resized dimensions so we can repro on our side? In regards to the new issue, this could be associated with memory. Can you share the RAM size of your device? Also can you test with this attached image just to ensure a baseline image? Thanks! |
@cmodi-meta For the image size, I need to provide an exact 336×224 ratio image to prevent the app from crashing. If I use an image sized 336×225, the app crashes. However, I believe this issue is less critical compared to the second issue, which I’d like to prioritize and investigate first. Attached is a screenshot of the physical Android phone I’m currently using. Thank you so much for your assistance—I’m really excited to get this running successfully! This is the screenshot phone the physical android device I tested And, this is the screenshot from the emulator on android studio Both of them will encounter the Scudo issue: By the way, the executorch.aar I used is built from the latest main branch. Thanks~ |
🐛 Describe the bug
The LLAVA model loaded successfully. Please check the screenshot. After an image is given as a prompt, the app crashes. Please check the logs as well. I am attaching the logs for your reference.
Versions
Please check the logs. I am attaching the screenshot for your reference.
Kindly help me to resolve the issue.
Thanks in advance.
logs (1).txt
The text was updated successfully, but these errors were encountered: