致命异常:java.lang.IllegalStateException - 无法为 LinearLayout 创建层(仅在 Galaxy j4+、j6+ 中崩溃)

2022-01-12 00:00:00 crash android java galaxy google-fabric

致命异常:java.lang.IllegalStateException 无法创建LinearLayout 层,尺寸 768x5440 最大尺寸 8192 颜色类型 4 有上下文 1

Fatal Exception: java.lang.IllegalStateException Unable to create layer for LinearLayout, size 768x5440 max size 8192 color type 4 has context 1

android.os.MessageQueue.nativePollOnce (MessageQueue.java)
android.os.Looper.loop + 181 (Looper.java:181)
android.app.ActivityThread.main + 7097 (ActivityThread.java:7097)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit.main + 975 (ZygoteInit.java:975)

我收到了来自 firebase Crashlytics 的 nativePollOnce.java 崩溃警报,但许多(galaxy j4 +、j6 +)模型中只有少数会经常崩溃.我是如何解决这个问题的?

I received a nativePollOnce.java crash alarm from the firebase Crashlytics, but only a few of the many (galaxy j4 +, j6 +) models will crash frequently. How did i resolve this?

推荐答案

好像这个问题是相关的 - 该链接中的第一个答案链接到 带有英雄元素的场景转换抛出层超过最大值.GPU 支持的尺寸 可能会对您有所帮助.

It seems like this issue is related - the first answer in that link that links to Scene transition with hero elements throws Layer exceeds max. dimensions supported by the GPU might help you.

相关文章