HTC设备中的InputConnectionWrapper.commitText StackOverflowError

时间:2018-01-11 03:28:56

标签: android

在HTC D820U中进行调试,发现StackOverflowError。 设备:HTC D820u,Android 6.0,HTC版本:1.0.0.D820u 见日志:

  

01-11 10:55:33.101 11234-11234 / com.xxx E / CrashReport:   java.lang.StackOverflowError:堆栈大小为8MB                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:42)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                  在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:43)                                                                                  在   android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)                                                                                 在   com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.j   01-11 10:55:33.101 11234-11234 / com.xxx E / CrashReport:

     

++++++++++++++++++++++++++++++++++++++++++

关于日志,关于我的应用没有崩溃。 这是Android的错误吗?还是HTC Rom bug?

1 个答案:

答案 0 :(得分:54)

我得到了相同的错误Nexus 5.看起来像是Android分析器错误。您可以通过在运行配置中禁用高级分析来修复它: enter image description here

更新根据issue,这应该在Android Studio 3.1 beta 1中修复。

更新2: @ilyamuromets确认要在AS 3.1.1中解决的问题