Bug 34252 - [Android] Setting EntryEditText.Error Text Causes IInputConnectionWrapper Errors
Summary: [Android] Setting EntryEditText.Error Text Causes IInputConnectionWrapper Errors
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 1.5.0
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-09-24 14:34 UTC by Jimmy [MSFT]
Modified: 2016-04-13 19:55 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

repro project (22.29 KB, application/zip)
2015-09-24 14:34 UTC, Jimmy [MSFT]

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Jimmy [MSFT] 2015-09-24 14:34:58 UTC
Created attachment 13060 [details]
repro project

*** Overview ***
When a custom Entry control inside a ListView or TableView, setting the control's EntryEditText.Error text causes endless IInputConnectionWrapper errors:

> [IInputConnectionWrapper] requestCursorAnchorInfo on inactive InputConnection
> [IInputConnectionWrapper] getTextBeforeCursor on inactive InputConnection
> [IInputConnectionWrapper] getTextBeforeCursor on inactive InputConnection
> [IInputConnectionWrapper] getTextBeforeCursor on inactive InputConnection

Tested on Forms 1.5.0

Other things to note:
- It does not occur if the Entry controls are not inside a ListView, e.g. just a StackLayout
- It only occurs if the first Entry in the list has its Error property set

*** Steps to Reproduce ***
1. Run the attached Forms Android project
2. Select an Entry control
3. Select another Entry control

*** Actual Results ***
On either the second or third time you select a different Entry, the errors start appearing in the Application Output. However, you select the original Entry you started with, the errors do stop.

The GC will eventually run to try and free up some memory.

*** Expected Results ***
Switching between controls does not produce any errors.

*** Environment Info ***
=== Xamarin Studio ===

Version 5.9.7 (build 9)
Installation UUID: 94ce5106-6a72-4691-b34e-cd5857b1db66
	Mono 4.0.4 ((detached/cb6d6b2)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400040002

=== Apple Developer Tools ===

Xcode 7.0 (8227)
Build 7A220

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/jimmygarrido/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.4   (API level 19)
		5.0   (API level 21)
		5.1   (API level 22)
Java SDK: /usr
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: d8e9592
Branch: master
Build date: 2015-09-18 23:22:05-0400

=== Xamarin.Mac ===

Version: (Business Edition)

=== Build Information ===

Release ID: 509070009
Git revision: 31fa64709030b3edb971237780a452a4c69943c4
Build date: 2015-09-17 11:44:37-04
Xamarin addins: b105d33d8cd72911ff2cf3ee0b7715d37e5f19a6

=== Operating System ===

Mac OS X 10.10.5
Darwin Jimmys-MacBook-Pro.local 14.5.0 Darwin Kernel Version 14.5.0
    Wed Jul 29 02:26:53 PDT 2015
    root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64
Comment 1 Kent 2015-10-29 20:19:40 UTC
This appears to be fixed in Xamarin.Forms