Bug 29385 - Navigating Back When an Entry Control Is Focused Causes a Crash
Summary: Navigating Back When an Entry Control Is Focused Causes a Crash
Status: RESOLVED INVALID
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 1.4.2
Hardware: PC Mac OS
: Normal critical
Target Milestone: ---
Assignee: Seth Rosetter
URL:
Depends on:
Blocks:
 
Reported: 2015-04-24 14:47 UTC by Jimmy [MSFT]
Modified: 2015-05-28 13:50 UTC (History)
4 users (show)

Tags: android navigation entry crash ac
Is this bug a regression?: ---
Last known good build:


Attachments
Repro Project (40.96 KB, application/zip)
2015-04-24 14:47 UTC, Jimmy [MSFT]
Details
Adb, stacktrace, output (45.58 KB, application/zip)
2015-04-24 14:49 UTC, Jimmy [MSFT]
Details
Xamarin Studio logs from my repo of issue (16.03 KB, application/zip)
2015-04-28 19:03 UTC, Kent Green [MSFT]
Details


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:
Status:
RESOLVED INVALID

Description Jimmy [MSFT] 2015-04-24 14:47:06 UTC
Created attachment 10896 [details]
Repro Project

*** Overview ***
When an Entry control inside a ViewCell is focused, pressing the Up button to navigate back to the previous screen will cause the app to lock up and crash.


*** Steps to Reproduce ***
1. Press the “TablePage” button
2. Click on an Entry control so the keyboard opens
3. Click the Up button to go back to the previous page.
4. If the app does not crash, repeat steps 1-3. I’ve experienced the crash on either the first or second try.


*** Actual Results ***
The app will crash.


*** Expected Results ***
The app navigates back to the previous page.


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

Version 5.8.3 (build 1)
Installation UUID: 94ce5106-6a72-4691-b34e-cd5857b1db66
Runtime:
	Mono 3.12.1 ((detached/0849ec7)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312010003

=== Xamarin.Android ===

Version: 4.20.2.1 (Business Edition)
Android SDK: /Users/jimmygarrido/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.4   (API level 19)
		5.0   (API level 21)
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

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

=== Apple Developer Tools ===

Xcode 6.3 (7569)
Build 6D570

=== Xamarin.iOS ===

Version: 8.9.1.3 (Business Edition)
Hash: f7736a4
Branch: 
Build date: 2015-04-09 04:22:08-0400

=== Xamarin.Mac ===

Version: 1.12.0.14 (Business Edition)

=== Build Information ===

Release ID: 508030001
Git revision: 6e8e725e0d689351901c2c70453bfa4ea25e293b
Build date: 2015-04-06 20:31:47-04
Xamarin addins: 051cd5f8c1b5dbfc87eaef80a74aec03f34c60a8

=== Operating System ===

Mac OS X 10.10.3
Darwin Jimmys-MacBook-Pro.local 14.3.0 Darwin Kernel Version 14.3.0
    Mon Mar 23 11:59:05 PDT 2015
    root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
Comment 1 Jimmy [MSFT] 2015-04-24 14:49:47 UTC
Created attachment 10897 [details]
Adb, stacktrace, output

Attached log files
Comment 2 Kent Green [MSFT] 2015-04-28 19:03:25 UTC
Created attachment 10947 [details]
Xamarin Studio logs from my repo of issue

Using the steps in the description & the sample provided, I was able to reproduce the issue.
I reproduced the issue on the following:
> Xamarin Android Player: Nexus 5 (API 19)
> Device: LG Volt (API 19)

Screencast: http://screencast.com/t/3pXczbcWiqzD

=== Xamarin Studio ===

Version 5.8.3 (build 1)
Installation UUID: 8ef63a7c-1b18-40de-a334-7f78777fcb55
Runtime:
	Mono 3.12.1 ((detached/0849ec7)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312010003

=== Xamarin.Android ===

Version: 4.20.2.1 (Business Edition)
Android SDK: /Users/kentgreen/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

=== Xamarin Android Player ===

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

=== Apple Developer Tools ===

Xcode 6.3.1 (7703)
Build 6D1002

=== Xamarin.iOS ===

Version: 8.9.1.3 (Business Edition)
Hash: f7736a4
Branch: 
Build date: 2015-04-09 04:22:08-0400

=== Xamarin.Mac ===

Version: 1.12.0.14 (Business Edition)

=== Build Information ===

Release ID: 508030001
Git revision: 6e8e725e0d689351901c2c70453bfa4ea25e293b
Build date: 2015-04-06 20:31:47-04
Xamarin addins: 051cd5f8c1b5dbfc87eaef80a74aec03f34c60a8

=== Operating System ===

Mac OS X 10.10.2
Darwin Kents-Macbook-Pro.local 14.1.0 Darwin Kernel Version 14.1.0
    Thu Feb 26 19:26:47 PST 2015
    root:xnu-2782.10.73~1/RELEASE_X86_64 x86_64

---Additional Observations---
I noticed that when reproducing the issue on the XAP, I saw in the Call Stack window an "Java.Lang.Error" exception, along with a *gigantic* stacktrace, that at a glance looks like it might be identical to the one Jimmy included in his 10897 attachment (but because it's so huge I didn't definitively confirm that).

Gist: https://gist.github.com/King-of-Spades/a7ec0cc23a8c23512778
Comment 4 Seth Rosetter 2015-05-27 19:42:54 UTC
I have reviewed the issue and noticed that you put a ListView inside of a ViewCell. This is not supported in Xamarin.Forms. I removed this bit of code and was unable to reproduce the crash after doing so. If you would like to continue to use the TableView, you would have to explicitly add the cells to the section to achieve what you were trying to do. Alternatively, you could use the ListView or ListView with Grouping enabled to achieve a similar page.
Comment 5 jricketts 2015-05-28 13:50:10 UTC
If this is not supported, might I suggest making it an exception?  There was no indication at compile time or run time that this was not supported.  Also, what is the correct way to build a table with a certain number of static items and a number of dynamic items?