Comments (4)
It’s up! https://twitter.com/bohanhou1998/status/1655772690760994818
from mlc-llm.
The app crashes after pressing the "Send" button.
android.view.InflateException: Binary XML file line #27 in ai.mlc.mlcchat:layout/user_message: Binary XML file line #27 in ai.mlc.mlcchat:layout/user_message: Error inflating class Caused by: android.view.InflateException: Binary XML file line #27 in ai.mlc.mlcchat:layout/user_message: Error inflating class Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:343) at android.view.LayoutInflater.createView(LayoutInflater.java:856) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1008) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:963) ... Caused by: android.content.res.Resources$NotFoundException: Drawable ai.mlc.mlcchat:drawable/user_rounded_corner with resource ID #0x7f0700dd Caused by: android.content.res.Resources$NotFoundException: File res/qo.xml from drawable resource ID #0x7f0700dd at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:914) ... android.graphics.drawable.Drawable.createFromXmlInnerForDensity(Drawable.java:1402) at android.graphics.drawable.Drawable.createFromXmlForDensity(Drawable.java:1361) at android.content.res.ResourcesImpl.createFromXmlForDensity(ResourcesImpl.java:1633) at android.content.res.ResourcesImpl.loadXmlDrawable(ResourcesImpl.java:979) at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:897) ... 71 more
UPD: tried to fix the apk by replacing qo.xml with a similar f1.xml and re-signing it, it worked (dialog shape appeared) but then a few seconds later a native crash happened:
05-09 19:34:18.181 13990 14028 W Adreno-GSL: : ioctl fd 77 code 0xc0300945 (IOCTL_KGSL_GPUOBJ_ALLOC) failed: errno 12 Out of memory 05-09 19:34:18.181 13990 14028 E Adreno-GSL: : GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed. 05-09 19:34:18.182 13990 14028 E libc++abi: terminating with uncaught exception of type tvm::runtime::InternalError: [19:34:18] /Users/houbohan/relax/include/tvm/runtime/device_api.h:291: unknown type =0 05-09 19:34:18.182 13990 14028 E libc++abi: Stack trace not available when DMLC_LOG_STACK_TRACE is disabled at compile time. 05-09 19:34:18.421 14227 14227 F DEBUG : Stack trace not available when DMLC_LOG_STACK_TRACE is disabled at compile time. 05-09 19:34:18.421 14227 14227 F DEBUG : ' 05-09 19:34:18.421 14227 14227 F DEBUG : x0 0000000000000000 x1 00000000000036cc x2 0000000000000006 x3 0000007357e8e970 05-09 19:34:18.421 14227 14227 F DEBUG : x4 fefefefefefeff09 x5 fefefefefefeff09 x6 fefefefefefeff09 x7 7f7f7f7f7f7f7f7f 05-09 19:34:18.421 14227 14227 F DEBUG : x8 00000000000000f0 x9 22c14d16a65dfb27 x10 0000000000000000 x11 ffffffc0fffffbdf 05-09 19:34:18.421 14227 14227 F DEBUG : x12 0000000000000001 x13 00000000645a67fa x14 0009d394c376be2f x15 000105c1e33e5323 05-09 19:34:18.421 14227 14227 F DEBUG : x16 000000744d1cd948 x17 000000744d1ac390 x18 0000000000007d00 x19 00000000000036a6 05-09 19:34:18.421 14227 14227 F DEBUG : x20 00000000000036cc x21 00000000ffffffff x22 0000007357e8eaa0 x23 0000007357e8eae0 05-09 19:34:18.421 14227 14227 F DEBUG : x24 0000007357e8ebc0 x25 0000007357e8eb08 x26 0000000000000000 x27 0000000000000004 05-09 19:34:18.421 14227 14227 F DEBUG : x28 0000007355d9bc33 x29 0000007357e8e9f0 05-09 19:34:18.421 14227 14227 F DEBUG : lr 000000744d15faa0 sp 0000007357e8e950 pc 000000744d15facc pst 0000000000000000 05-09 19:34:18.435 14227 14227 F DEBUG : backtrace: 05-09 19:34:18.435 14227 14227 F DEBUG : #00 pc 0000000000089acc /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: a790cdbd8e44ea8a90802da343cb82ce) 05-09 19:34:18.435 14227 14227 F DEBUG : #01 pc 000000000103f7b8 /data/app/~~sIy4CT1Uez8VaasXgitU7w==/ai.mlc.mlcchau-rXkyU5HyhrrPrxzcKeLGkA==/base.apk!libtvm4j_runtime_packed.so (offset 0x583000) (BuildId: c98933c8e484fe4149f368fe85a9fe63d452c44d)
Either 8gb of RAM is not enough or my snapdragon is not fresh enough
UPD(11/05): tried the new version, both problems are still present.
from mlc-llm.
I am having the same crash on Note 10 Snapdragon
from mlc-llm.
Closed as it's complete. Please feel free to open up new issues for crashes or feature requests
from mlc-llm.
Related Issues (20)
- [Bug] can't compile to wasm, is it possible in Windows using nightly wheel? HOT 1
- InternalError: Check failed: (config_istream) is false: HOT 2
- [Question] Any way to get the raw token output from the model? HOT 1
- [Feature Request] shard_strategy attr for qwen1.5-14B. fully support for qwen2 HOT 2
- [Bug] PackedFunc mlc.create_paged_kv_cache_generic cannot find HOT 3
- [Bug] KVCache takes up too much memory when running mlc_llm.serve.server HOT 2
- [Bug] The app “MLCChat” has been killed by the operating system because it is using too much memory. HOT 2
- Android app does not run model HOT 9
- [Model Request] FairSeq model for MLC-LLM
- [Bug] Run Models through MLCChat CLI Error HOT 3
- [Question] Save/load kv cache for faster load times?
- [Bug] Failed to set the allowed dynamic shared memory size to 73728 HOT 3
- [Bug] ValueError: Check failed: (f != nullptr) is false: Cannot find function vm.builtin.kv_state_clear HOT 7
- [Bug] GPT2 paged kv-cache not working, gives TVMError HOT 8
- [Question] The version of the llava HOT 3
- [Bug] `create_kv_cache_func_.defined` fails while hosting mlc llm server. HOT 7
- [Question] MLC-LLM (nightly-built) cannot be used because it conflicts with the numpy.How to solve it? HOT 4
- Base$TVMError after downloading Llama-2-7b-chat-hf-q4f16_1 HOT 3
- [Bug] kv_cache_bytes missing in metadata HOT 1
- [Bug] iOS app errors "failed to resolve model config"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlc-llm.