开发过程中打开 Android Studio 的 Android Profiler 做性能优化,
然后在输入框处准备输入时应用异常退出,代码没有任何修改,只是打开了
之后只要一点开输入文字就异常退出错误如下:
04-13 17:36:12.906 9841-9841/demo.greendao D/Error: ERR: exClass=java.lang.StackOverflowError
04-13 17:36:12.907 9841-9841/demo.greendao D/Error: ERR: exMsg=stack size 8MB
ERR: file=InputConnectionWrapper.java
ERR: class=com.android.tools.profiler.support.event.InputConnectionWrapper
ERR: method=commitText line=43
04-13 17:36:12.920 9841-9841/demo.greendao D/Error: ERR: stack=java.lang.StackOverflowError: stack size 8MB
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:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrapper.java:44)
at android.view.inputmethod.InputConnectionWrapper.commitText(InputConnectionWrapper.java:82)
at com.android.tools.profiler.support.event.InputConnectionWrapper.commitText(InputConnectionWrap)
解决方法:
关闭以上选项,clear 工程,重新编译安装App
具体原因还不知道,测试机使用的是Oppo ,可能是Android Profiler 的bug吧