java.lang.StackOverflowError: stack size 8MB

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.StackOverflowError: stack size 8MB
at android.content.res.ColorStateList.valueOf(ColorStateList.java:102)
at android.graphics.drawable.RippleDrawable$RippleState.(RippleDrawable.java:919)
at android.graphics.drawable.RippleDrawable.createConstantState(RippleDrawable.java:914)
at android.graphics.drawable.RippleDrawable.createConstantState(RippleDrawable.java:94)
at android.graphics.drawable.LayerDrawable.(LayerDrawable.java:126)
at android.graphics.drawable.LayerDrawable.(LayerDrawable.java:122)
at android.graphics.drawable.RippleDrawable.(RippleDrawable.java:979)
at android.graphics.drawable.RippleDrawable.(RippleDrawable.java:94)
at android.graphics.drawable.RippleDrawable$RippleState.newDrawable(RippleDrawable.java:945)
at android.content.res.Resources.getCachedDrawableLocked(Resources.java:2777)
at android.content.res.Resources.getCachedDrawable(Resources.java:2745)
at android.content.res.Resources.loadDrawable(Resources.java:2586)
at android.content.res.TypedArray.getDrawable(TypedArray.java:749)
at android.graphics.drawable.StateListDrawable.inflateChildElements(StateListDrawable.java:182)
at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:127)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:1133)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:1037)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2718)
at android.content.res.Resources.loadDrawable(Resources.java:2614)
at android.content.res.TypedArray.getDrawable(TypedArray.java:749)
at android.graphics.drawable.StateListDrawable.inflateChildElements(StateListDrawable.java:182)
at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:127)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:1133)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:1037)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2718)
at android.content.res.Resources.loadDrawable(Resources.java:2614)
at android.content.res.TypedArray.getDrawable(TypedArray.java:749)
at android.graphics.drawable.StateListDrawable.inflateChildElements(StateListDrawable.java:182)
at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:127)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:1133)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:1037)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2718)
at android.content.res.Resources.loadDrawable(Resources.java:2614)
at android.content.res.TypedArray.getDrawable(TypedArray.java:749)
at android.graphics.drawable.StateListDrawable.inflateChildElements(StateListDrawable.java:182)
at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:127)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:1133)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:1037)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2718)
at android.content.res.Resources.loadDrawable(Resources.java:2614)
at android.content.res.TypedArray.getDrawable(TypedArray.java:749)
at android.graphics.drawable.StateListDrawable.inflateChildElements(StateListDrawable.java:182)
at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:127)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:1133)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:1037)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2718)
at android.content.res.Resources.loadDrawable(Resources.java:2614)
at android.content.res.TypedArray.getDrawable(TypedArray.java:749)
at android.graphics.drawable.StateListDrawable.inflateChildElements(StateListDrawable.java:182)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.