Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
259 views
in Technique[技术] by (71.8m points)

android - InputConnectionWrapper.commitText StackOverflowError in HTC devices

Debug in HTC D820U, found StackOverflowError. Device: HTC D820u, Android 6.0 ,HTC version:1.0.0.D820u See log:

01-11 10:55:33.101 11234-11234/com.xxx 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 01-11 10:55:33.101 11234-11234/com.xxx E/CrashReport:

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

About log, No crash about my app. Is this an Android bug? or HTC Rom bug?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I'm getting the same error Nexus 5. Looks like it's Android profiler bug. You can fix it by disabling advanced profiling in Run configuration: enter image description here

UPDATE: According to issue this should be fixed in Android Studio 3.1 beta 1.

UPDATE 2: @ilyamuromets confirms issue to be solved in AS 3.1.1


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...