Skip to content
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

[Question] Android App Crash #3091

Open
mhollis1980 opened this issue Jan 16, 2025 · 1 comment
Open

[Question] Android App Crash #3091

mhollis1980 opened this issue Jan 16, 2025 · 1 comment
Labels
question Question about the usage

Comments

@mhollis1980
Copy link

❓ 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 mhollis1980 added the question Question about the usage label Jan 16, 2025
@MasterJH5574
Copy link
Member

Hi @mhollis1980, thanks for reporting. we are not able to reproduce this failure so have no immediate ideas. It's also interesting to me why the linker couldn't find the .so output, and it might be helpful for us to dig into it if you would like to share the logs when running mlc_llm package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about the usage
Projects
None yet
Development

No branches or pull requests

2 participants