InputConnectionWrapper commitText StackOverflowError

开发过程中打开 Android Studio 的 Android Profiler 做性能优化,
然后在输入框处准备输入时应用异常退出,代码没有任何修改,只是打开了
打开了 Enable advanced profiling 这个选项
之后只要一点开输入文字就异常退出错误如下:

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吧

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值