mllm icon indicating copy to clipboard operation
mllm copied to clipboard

Android app crash while Image Reading

Open Vinaysukhesh98 opened this issue 1 year ago • 12 comments

Fail To Load Models! Please Check if models exists at /sdcard/Download/model and restart but i have copied model in that location. still getting same error message what would be the reason.

Vinaysukhesh98 avatar Apr 05 '24 07:04 Vinaysukhesh98

Hi,

  1. Currently the android lib is only shipped with LLaMA and Fuyu support, please make sure your model files are supported.
  2. Could you double check the file is renamed properly according to This notice? it would be better if you attach a screenshot or else to show the file tree structure of your /sdcard/Download/model.

lx200916 avatar Apr 05 '24 08:04 lx200916

while loading fuyu app is getting crashed getting below errors:

FATAL EXCEPTION: main Process: org.saltedfish.chatbot, PID: 10488 java.lang.IllegalArgumentException: Software rendering doesn't support hardware bitmaps

Process is going to kill itself! java.lang.Exception at android.os.Process.killProcess(Process.java:1356) at com.android.internal.os.RuntimeInit$KillApplicationHandler.uncaughtException(RuntimeInit.java:174) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1071) at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1066) at java.lang.Thread.dispatchUncaughtException(Thread.java:2306)

Vinaysukhesh98 avatar Apr 08 '24 03:04 Vinaysukhesh98

Uh... It seems something wrong about the UI framework. What kind of device you are testing on?

lx200916 avatar Apr 08 '24 03:04 lx200916

Uh... It seems something wrong about the UI framework. What kind of device you are testing on?

Snapdragon 8 gen3 (xiaomi14)

Vinaysukhesh98 avatar Apr 08 '24 04:04 Vinaysukhesh98

Opps... It seems fine on our testing devices (of same model). We may need some time to investigate it.😂

lx200916 avatar Apr 08 '24 04:04 lx200916

Opps... It seems fine on our testing devices (of same model). We may need some time to investigate it.😂

okay, Especially it is failing ImageReader Mode.

Vinaysukhesh98 avatar Apr 08 '24 04:04 Vinaysukhesh98

Hi, we tried to reproduce the bug but sadly failed. Could you double check the model file tree? 1712632741666

lx200916 avatar Apr 09 '24 03:04 lx200916

hi @lx200916 , could able to load the model , but app is getting crashed after passing image.

Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 7578 (RenderThread), pid 7538 (tedfish.chatbot)

Vinaysukhesh98 avatar Apr 09 '24 05:04 Vinaysukhesh98

Understood. Could you attach the image file here? I guess maybe something wrong about the file size or PreProcessors.

lx200916 avatar Apr 09 '24 07:04 lx200916

The input image needs to be 3-channel (RGB), @Vinaysukhesh98 you need to check if it is 4-channel (RGBA)

yirongjie avatar Apr 09 '24 08:04 yirongjie

Understood. Could you attach the image file here? I guess maybe something wrong about the file size or PreProcessors.

https://github.com/UbiquitousLearning/mllm/blob/main/assets/dog_image.jpg

Vinaysukhesh98 avatar Apr 09 '24 09:04 Vinaysukhesh98

The input image needs to be 3-channel (RGB), @Vinaysukhesh98 you need to check if it is 4-channel (RGBA)

can you please help me with more info or any steps to resolve.

Vinaysukhesh98 avatar Apr 09 '24 09:04 Vinaysukhesh98