mlc-llm icon indicating copy to clipboard operation
mlc-llm copied to clipboard

[Question] Android App Crash

Open mhollis1980 opened this issue 9 months ago • 1 comments

❓ General Questions

The Android app is crashing with an exception -

 channel '1cce162 ai.mlc.mlcchat/ai.mlc.mlcchat.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2025-01-15 20:28:24.710  1424-1541  WindowManager           system_server                        E  RemoteException occurs on reporting focusChanged, w=Window{1cce162 u0 ai.mlc.mlcchat/ai.mlc.mlcchat.MainActivity}
                                                                                                    android.os.DeadObjectException
                                                                                                    	at android.os.BinderProxy.transactNative(Native Method)
                                                                                                    	at android.os.BinderProxy.transact(BinderProxy.java:575)
                                                                                                    	at android.view.IWindow$Stub$Proxy.windowFocusChanged(IWindow.java:829)
                                                                                                    	at com.android.server.wm.WindowState.reportFocusChangedSerialized(WindowState.java:3793)
                                                                                                    	at com.android.server.wm.WindowManagerService$H.handleMessage(WindowManagerService.java:5433)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:107)
                                                                                                    	at android.os.Looper.loop(Looper.java:237)
                                                                                                    	at android.os.HandlerThread.run(HandlerThread.java:67)
                                                                                                    	at com.android.server.ServiceThread.run(ServiceThread.java:44)

I'm using a Galaxy S9 with 64GB of memory. package-config.json { "device": "android", "model_list": [ { "model": "HF://mlc-ai/Phi-3.5-mini-instruct-q4f16_0-MLC", "estimated_vram_bytes": 4250586449, "model_id": "Phi-3.5-mini-instruct-q4f16_0-MLC", "overrides": { "prefill_chunk_size": 128 } } ` I also noticed there was a crash at runtime because the linker couldn't find the .so output. I renamed the .so to the file name it was looking for and it worked.

Any thoughts?

mhollis1980 avatar Jan 16 '25 02:01 mhollis1980