13

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)

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?

BEOM KI
  • 143
  • 1
  • 6

2 Answers2

2

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.

Kevin Kokomani
  • 1,568
  • 7
  • 14
2

I had this error and bought a samsung J4 device to solve it. In my case there was a screen with many recyclerviews and nestedscrollviews. The solution was to remove "match_parent" and manually set the size (height or widht) of one of the recyclerviews. I think this somehow made the calculations of the GPU easier.

MSilva
  • 151
  • 1
  • 6