Bug:java.lang.StackOverflowError: stack size 8MB

在开发的时候遇到了这个Bug:java.lang.StackOverflowError: stack size 8MB
Log:

11-27 14:16:37.093 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: Java Crash Happen cause by main(1)
11-27 14:16:37.183 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: stack frame :9177, has cause false
11-27 14:16:37.353 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: #++++++++++Record By Bugly++++++++++#
11-27 14:16:37.353 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: # You can use Bugly(http:ugly.qq.com) to get more Crash Detail!
11-27 14:16:37.353 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: # PKG NAME: com.xxx.xxx.xxx.debug
11-27 14:16:37.363 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: # APP VER: 1.0.2
11-27 14:16:37.363 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: # LAUNCH TIME: 2017-11-27 13:04:58
11-27 14:16:37.363 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: # CRASH TYPE: JAVA_CRASH
11-27 14:16:37.363 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: # CRASH TIME: 2017-11-27 14:16:37
11-27 14:16:37.363 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: # CRASH PROCESS: com.xxx.xxx.xxx.debug
11-27 14:16:37.363 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: # CRASH THREAD: main
11-27 14:16:37.363 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: # REPORT ID: ee60ea58-b46f-4751-b3db-20a3ab1345c5
11-27 14:16:37.363 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: # CRASH DEVICE: HTC D820u ROOTED
11-27 14:16:37.363 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: # RUNTIME AVAIL RAM:733626368 ROM:4859437056 SD:4859437056
11-27 14:16:37.363 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: # RUNTIME TOTAL RAM:1929777152 ROM:9906249728 SD:9906249728
11-27 14:16:37.363 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: # CRASH STACK:
11-27 14:16:37.373 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: java.lang.StackOverflowError: stack size 8MB
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:42)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.j
11-27 14:16:37.383 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: #++++++++++++++++++++++++++++++++++++++++++#
11-27 14:16:37.653 21892-21892/com.xxx.xxx.xxx.debug E/CrashReport: sys default last handle start!
11-27 14:16:37.783 21892-21892/com.xxx.xxx.xxx.debug E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.xxx.xxx.xxx.debug, PID: 21892
java.lang.StackOverflowError: stack size 8MB
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:42)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.

该 Bug 需要继续查找问题所在

原文地址:https://www.cnblogs.com/liyiran/p/7904999.html