I'm sorry if this is broad, inappropriate or a dupe, feel free to flag.
However I couldn't find a solution. I'm getting StackOverflowError
, and Android Studio shows -
08-03 16:22:49.293 5163-5163/com.package E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.StackOverflowError
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5384)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5388)
at android.view.ViewGroup.jumpDrawablesToCurrentState(V
I spent hours right now trying to understand what's wrong: I'm not aware of any recursive call in my code. I'm asking:
- Do you have any suggestion about what could be causing this particular issue?
- Do you have any suggestion about how to technically face similar issues? Any way to get to the "root" cause in the stack? There should be some recursive stuff going on, but it surely has (a) a starting point, and a call to that point; (b) an end, when the
StackOverflowError
is thrown. We can see the end part, but not the start, because the logcat stops.