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)
- [Question] batchsize of prefill step
- [Bug] InternalError: Check failed: (offset + needed_size <= this->buffer.size) is false: storage allocation failure, attempted to allocate 513024 at offset 0 in region that is 163840bytes HOT 1
- [Question] How to use cpp in project HOT 1
- [Question] How to use function calling in MLCChat Android app? HOT 2
- [Question] Trying to use vulkan version 1.1 library on Qualcomm chip leads to tvm runtime error HOT 4
- [Bug] can run mlc_llm chat on T4 with the model convert with A100 HOT 3
- [Bug] org.apache.tvm.Base$TVMError Check failed: token_id < static_cast<int>(token_table_.size()) HOT 10
- [Question] Can you programmatically clear the kv cache? HOT 2
- [Question] It takes too much time for the first token to be returned after a reqeust issued. HOT 3
- [Question] The Android SDK is too large HOT 4
- [Bug] current available model_libs in dist/lib/libmodel_android.a: [] HOT 4
- [Bug] Threadgroup memory size exceeds the maximum threadgroup memory allowed HOT 4
- [Question] CMake build error, missing variable: _CMAKE_CUDA_WHOLE_FLAG not set HOT 2
- [Bug] "Build Android APP from Source" step2: "mlc_llm package" returns error ""path/to/mlc-llm/android/android/mlc4j" does not exist" HOT 6
- [Bug] fine-tuned model deployed with webllm not working HOT 6
- [Bug] Check failed: (it != type_key2index_.end()) is false: Cannot find type ObjectPath. Did you forget to register the node by TVM_REGISTER_NODE_TYPE
- [Bug] Could not find a version that satisfies the requirement during installation of prebuilt packages HOT 3
- [Question] How to calculate the VRAM usage in Android package config? HOT 2
- [Model Request] Gemma 9b and 27b
- [Bug] TypeError: GemmaConfig.__init__() missing 1 required positional argument: 'hidden_activation' HOT 8
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.