崩溃的5.0,但确定在其他平台上 [英] Crash on 5.0 but ok on other platforms
本文介绍了崩溃的5.0,但确定在其他平台上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
ERR LOG:
E/art(1564): Throwing OutOfMemoryError "Failed to allocate a 14908018 byte allocation with 10763166 free bytes and 10MB until OOM"
E/AndroidRuntime(1564): Error reporting crash
E/AndroidRuntime(1564): java.lang.OutOfMemoryError: Failed to allocate a 14908018 byte allocation with 10763166 free bytes and 10MB until OOM
E/AndroidRuntime(1564): at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:95)
E/AndroidRuntime(1564): at java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:125)
E/AndroidRuntime(1564): at java.lang.StringBuffer.append(StringBuffer.java:278)
E/AndroidRuntime(1564): at java.io.StringWriter.write(StringWriter.java:123)
E/AndroidRuntime(1564): at com.android.internal.util.FastPrintWriter.flushLocked(FastPrintWriter.java:358)
E/AndroidRuntime(1564): at com.android.internal.util.FastPrintWriter.appendLocked(FastPrintWriter.java:303)
E/AndroidRuntime(1564): at com.android.internal.util.FastPrintWriter.write(FastPrintWriter.java:625)
E/AndroidRuntime(1564): at com.android.internal.util.FastPrintWriter.append(FastPrintWriter.java:658)
E/AndroidRuntime(1564): at java.io.PrintWriter.append(PrintWriter.java:691)
E/AndroidRuntime(1564): at java.io.PrintWriter.append(PrintWriter.java:31)
E/AndroidRuntime(1564): at java.lang.Throwable.printStackTrace(Throwable.java:324)
E/AndroidRuntime(1564): at java.lang.Throwable.printStackTrace(Throwable.java:300)
E/AndroidRuntime(1564): at android.util.Log.getStackTraceString(Log.java:335)
E/AndroidRuntime(1564): at com.android.internal.os.RuntimeInit.Clog_e(RuntimeInit.java:59)
E/AndroidRuntime(1564): at com.android.internal.os.RuntimeInit.access$200(RuntimeInit.java:43)
E/AndroidRuntime(1564): at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:85)
E/AndroidRuntime(1564): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
E/AndroidRuntime(1564): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
E/NMGDevice(1619): Exception:Attempt to invoke virtual method 'java.lang.String java.lang.String.trim()' on a null object reference
我找不到这个问题了信息。只有我知道当我加载形象会崩溃。 我的应用程序是确定的其他版本,但在5.0。我猜是艺术和Dalvik的,什么worng关于NMGDevice级?
I can not find anymore information about this question. only i know when i load image will crash. my app is ok on other version, but on 5.0. i guess is ART and Dalvik, or something worng about "NMGDevice" class?
为什么程序在Android上5崩溃?
Why is the program crashing on Android 5?
推荐答案
在此,你用完了内存:
E/AndroidRuntime(1564): java.lang.OutOfMemoryError: Failed to allocate a 14908018 byte allocation with 10763166 free bytes and 10MB until OOM
然后,您试图访问空
引用您回来:
E/NMGDevice(1619): Exception:Attempt to invoke virtual method 'java.lang.String java.lang.String.trim()' on a null object reference
验证您的返回值。停止吞咽异常。
Validate your return values. Stop swallowing exceptions.
这篇关于崩溃的5.0,但确定在其他平台上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文