Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
263 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 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...