Fixed
Status Update
Comments
uc...@google.com <uc...@google.com> #2
Thank you for your feedback. Team may reach out for more feedback in reproducing or triaging this issue.
fp...@gmail.com <fp...@gmail.com> #3
I've got the same bug with Android Studio 3.1 (Build #AI-173.4670197). when i disabled Profiling it resolve the problem.
[Deleted User] <[Deleted User]> #4
Yes, that's true, see the linked stackoverflow post...
ki...@gmail.com <ki...@gmail.com> #5
I've got the same Bug with Android Studio 3.1 with a CAT 30 phone (and emulator, nexus 5x api 26)
ch...@gmail.com <ch...@gmail.com> #6
Same issue on LG G4 (6.0) after update to Android Studio 3.1
Temporarily resolved by disabling advanced profiling.
Temporarily resolved by disabling advanced profiling.
jo...@google.com <jo...@google.com>
gi...@google.com <gi...@google.com> #7
Thanks for the bug. Can I get more details about the type of application you were running when you encountered this issue? Was it a sample app? a new app? or something more complex. I suspect this has to do with keyboard input however I am unable to repo the issue with any of the samples, or new applications available.
I will continue attempting to repo on various emulators with APIs 24+.
I will continue attempting to repo on various emulators with APIs 24+.
[Deleted User] <[Deleted User]> #8
I encountered the issue on a HTC One Mini on a complex app.
The issue occurred when clicking into an TextInputEditText, the keyboard came up and the error occurred. The corresponding piece of xml looks like:
'
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android "
xmlns:app="http://schemas.android.com/apk/res-auto "
xmlns:tools="http://schemas.android.com/tools "
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:focusable="true"
android:focusableInTouchMode="true">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<View
android:id="@+id/create_profile_step_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerInParent="true"/>
<TextView
android:id="@+id/create_profile_title_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/create_profile_step_indicator"/>
<TextView
android:id="@+id/create_profile_message_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/create_profile_title_textview"/>
<android.support.design.widget.TextInputLayout
android:id="@+id/create_profile_email_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/create_profile_message_textview">
<AutoCompleteTextView
android:id="@+id/create_profile_email_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:imeOptions="actionNext"
android:inputType="textEmailAddress"/>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/create_profile_confirm_email_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/create_profile_email_layout">
<android.support.design.widget.TextInputEditText
android:id="@+id/create_profile_confirm_email_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:imeOptions="actionNext"
android:inputType="textEmailAddress"/>
</android.support.design.widget.TextInputLayout>
<TextView
android:id="@+id/create_profile_accept_terms_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/create_profile_confirm_email_layout"
android:layout_marginEnd="@dimen/activity_horizontal_margin"
android:layout_marginStart="@dimen/activity_horizontal_margin"
android:layout_marginTop="@dimen/activity_vertical_margin"/>
<de.teambank.fymio.widget.LoadingIndicatorButton
android:id="@+id/create_profile_continue_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/create_profile_accept_terms_text_view"
android:enabled="false"/>
</RelativeLayout>
</ScrollView>
'
The issue occurred when clicking into an TextInputEditText, the keyboard came up and the error occurred. The corresponding piece of xml looks like:
'
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="
xmlns:app="
xmlns:tools="
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:focusable="true"
android:focusableInTouchMode="true">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<View
android:id="@+id/create_profile_step_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerInParent="true"/>
<TextView
android:id="@+id/create_profile_title_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/create_profile_step_indicator"/>
<TextView
android:id="@+id/create_profile_message_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/create_profile_title_textview"/>
<android.support.design.widget.TextInputLayout
android:id="@+id/create_profile_email_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/create_profile_message_textview">
<AutoCompleteTextView
android:id="@+id/create_profile_email_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:imeOptions="actionNext"
android:inputType="textEmailAddress"/>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/create_profile_confirm_email_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/create_profile_email_layout">
<android.support.design.widget.TextInputEditText
android:id="@+id/create_profile_confirm_email_edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:imeOptions="actionNext"
android:inputType="textEmailAddress"/>
</android.support.design.widget.TextInputLayout>
<TextView
android:id="@+id/create_profile_accept_terms_text_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/create_profile_confirm_email_layout"
android:layout_marginEnd="@dimen/activity_horizontal_margin"
android:layout_marginStart="@dimen/activity_horizontal_margin"
android:layout_marginTop="@dimen/activity_vertical_margin"/>
<de.teambank.fymio.widget.LoadingIndicatorButton
android:id="@+id/create_profile_continue_button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/create_profile_accept_terms_text_view"
android:enabled="false"/>
</RelativeLayout>
</ScrollView>
'
gi...@google.com <gi...@google.com> #9
Thanks for all the additional information. I was able to repo the issue and validate a fix. I will work to this this fix out in a 3.1 update.
Josh
Josh
[Deleted User] <[Deleted User]> #10
nice, thanks!
kh...@gmail.com <kh...@gmail.com> #11
Same issue on Nexus 5 (6.0) after update to Android Studio 3.1
Temporarily resolved by disabling advanced profiling.
Temporarily resolved by disabling advanced profiling.
st...@gmail.com <st...@gmail.com> #12
Same issue whith two Motorola devices (G1 and G3) with Android 6 after update to Android Studio 3.1
Temporarily resolved by disabling advanced profiling.
Temporarily resolved by disabling advanced profiling.
is...@gmail.com <is...@gmail.com> #13
Maader cood kanker Pola toi
gi...@google.com <gi...@google.com> #14
The fix is checked in an set to go out in the 3.1 beta 1.
jo...@gmail.com <jo...@gmail.com> #15
same issue on Samsung Note pro 12,
jo...@google.com <jo...@google.com> #16
Thanks everyone for the bug reports. Android Studio 3.1.1 was released earlier today and includes a fix for this issue. Please let us know if you continue to see issues after upgrading.
[Deleted User] <[Deleted User]> #17
I'm running an application on a Nexus 5 with Android Studio 3.1.1, but encounter a crash similar to this (when advanced profiling is enabled). It seems kind of random when it happens but it's either when I see choices of a Spinner, enter a EditText or move on to the next activity (that contains a webview) from the view with the spinner and EditText. I don't know if it's the same issue or a new one, but here's the Logcat report (with my application id replaced by "mycompany.myapp":
04-16 16:26:41.079 15619-15619/com.mycompany.myapp E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mycompany.myapp, PID: 15619
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.finishComposingText()' on a null object reference
at android.view.inputmethod.InputConnectionWrapper.finishComposingText(InputConnectionWrapper.java:78)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:362)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
04-16 16:26:41.079 15619-15619/com.mycompany.myapp E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mycompany.myapp, PID: 15619
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.finishComposingText()' on a null object reference
at android.view.inputmethod.InputConnectionWrapper.finishComposingText(InputConnectionWrapper.java:78)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:362)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
nj...@gmail.com <nj...@gmail.com> #18
Same issue with android 3.1.1 and Advance Profilling enabled. My application has several fragment sometimes when transition from one to another the app crash ..
04-17 19:27:37.272 10911-10911/com.app E/AndroidRuntime: FATAL EXCEPTION: main
Process:com.app , PID: 10911
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.finishComposingText()' on a null object reference
at android.view.inputmethod.InputConnectionWrapper.finishComposingText(InputConnectionWrapper.java:78)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:362)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5444)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:682)
04-17 19:27:37.272 10911-10911/
Process:
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.finishComposingText()' on a null object reference
at android.view.inputmethod.InputConnectionWrapper.finishComposingText(InputConnectionWrapper.java:78)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:362)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5444)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:682)
nj...@gmail.com <nj...@gmail.com> #19
To add to my comment, I am using a physical tablet with android 6.0..
da...@blackdevelopers.net <da...@blackdevelopers.net> #20
Hi! I can confirm this bug keeps happening in latest public released version: Android Studio 3.1.2 (Build #AI-173.4720617, built on April 13, 2018), while Advanced Profiling is enabled, when running on a -fully updated- physical device Sony Xperia Z3, with Android 6.0.1:
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.finishComposingText()' on a null object reference
at android.view.inputmethod.InputConnectionWrapper.finishComposingText(InputConnectionWrapper.java:78)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:362)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:5526)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.finishComposingText()' on a null object reference
at android.view.inputmethod.InputConnectionWrapper.finishComposingText(InputConnectionWrapper.java:78)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:362)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:5526)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
da...@blackdevelopers.net <da...@blackdevelopers.net> #21
Today I finally could download and test canary 18. I can confirm this bug is now fixed in this version. Thank you!
Description
The issue is already described here:
The suggested fix solves the problem...
Build: 3.1 RC 3, AI-173.4658569, 201803160210,
AI-173.4658569, JRE 1.8.0_152-release-1024-b01x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.13.3 unknown, screens 1920x1200; Retina
Android Gradle Plugin: 3.0.1
Gradle: 4.1
NDK: from local.properties: (not specified); latest from SDK: (not found);
LLDB: pinned revision 3.1 not found; latest from SDK: LLDB 3.0 (revision: 3.0.4213617);
CMake: from local.properties: (not specified); latest from SDK: (not found); from PATH: (not found);
IMPORTANT: Please read