-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
🐛 Bug
Android app crashed while printing out a response to my question.
To Reproduce
Steps to reproduce the behavior:
- Install android app on Galaxy S22 Ultra
- Ask a question
- Answer interrupted by crash
MLCChat failed
Stack trace:
org.apache.tvm.Base$TVMError: InternalError: Check failed: (offset + needed_size <= this->buffer.size) is false: storage allocation failure, attempted to allocate 4202496 at offset 0 in region that is 4194304bytes
Stack trace:
File "/Users/houbohan/tvm/src/runtime/relax_vm/memory_manager.cc", line 115
at org.apache.tvm.Base.checkCall(Base.java:173)
at org.apache.tvm.Function.invoke(Function.java:130)
at ai.mlc.mlcllm.ChatModule.decode(ChatModule.java:71)
at ai.mlc.mlcchat.AppViewModel$ChatState$requestGenerate$1$2.invoke(AppViewModel.kt:654)
at ai.mlc.mlcchat.AppViewModel$ChatState$requestGenerate$1$2.invoke(AppViewModel.kt:653)
at ai.mlc.mlcchat.AppViewModel$ChatState.callBackend(AppViewModel.kt:537)
at ai.mlc.mlcchat.AppViewModel$ChatState.requestGenerate$lambda$4(AppViewModel.kt:653)
at ai.mlc.mlcchat.AppViewModel$ChatState.$r8$lambda$lluIrcsPALEW5nCb2tohZYadhTY(Unknown Source:0)
at ai.mlc.mlcchat.AppViewModel$ChatState$$ExternalSyntheticLambda2.run(Unknown Source:6)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:463)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
Error message:
InternalError: Check failed: (offset + needed_size <= this->buffer.size) is false: storage allocation failure, attempted to allocate 4202496 at offset 0 in region that is 4194304bytes
Stack trace:
File "/Users/houbohan/tvm/src/runtime/relax_vm/memory_manager.cc", line 115
Expected behavior
Environment
Additional context
Metadata
Metadata
Assignees
Labels
No labels