Bug 32447 - [iOS] App crash when scrolling quickly through a TableView that has Pickers in the cells.
Summary: [iOS] App crash when scrolling quickly through a TableView that has Pickers i...
Status: VERIFIED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 1.4.3
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Rui Marinho
URL:
Depends on:
Blocks:
 
Reported: 2015-07-24 21:43 UTC by Jon Goldberger [MSFT]
Modified: 2015-10-26 07:50 UTC (History)
4 users (show)

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


Attachments
Test Project (200.14 KB, application/zip)
2015-07-24 21:43 UTC, Jon Goldberger [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:
VERIFIED FIXED

Description Jon Goldberger [MSFT] 2015-07-24 21:43:04 UTC
Created attachment 12228 [details]
Test Project

## Description

App crashes (iOS only) when flicking or scrolling quickly through a TableView that has Pickers in the cell. The app crashes with exception noted below.

## Steps to reproduce

1. Open attached test project and restore packages.

2. Deploy iOS app project to simulator or device.

3. Scroll quickly up and down a few times on the TableView

Expected result: tableView will continue to scroll without app crashing.

Actual result: app crashes with below exception.


## Stack trace:

>System.ObjectDisposedException: The object was used after being disposed.
>  at Foundation.NSObject.get_SuperHandle () [0x00015] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/Foundation/NSObject2.cs:416
>  at UIKit.UIView.set_Frame (CGRect value) [0x0002b] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/build/ios/native/UIKit/UIView.g.cs:2779
>  at Xamarin.Forms.Platform.iOS.ViewCellRenderer+ViewTableCell.LayoutSubviews () [0x00046] in <filename unknown>:0
>  at at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
>  at UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/UIKit/UIApplication.cs:63
>  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/1962/8b265d64/source/maccore/src/UIKit/UIApplication.cs:47
>  at AppCrash.iOS.Application.Main (System.String[] args) [0x00008] in /Users/apple/Downloads/AppCrash/iOS/Main.cs:17

## Notes

Forms version is 1.4.3.6376. Originally the project had the TableView in a StackLayout and then in a ScrollView. I eliminated the ScrollView and the Stacklayout to see if the issue was with the nesting, but the issue remained even when the TableView is the only thing in the ContentPage. Test project reflects these changes, i.e. only a TableView in a ContentPage.


## My Environment

=== Xamarin Studio ===

Version 5.9.4 (build 5)
Installation UUID: 2dc9022f-f9a8-424f-8284-bf224cbbfde0
Runtime:
	Mono 4.0.2 ((detached/c99aa0c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400020005

=== Xamarin.Android ===

Version: 5.1.4.16 (Business Edition)
Android SDK: /Users/apple/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		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.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

=== Apple Developer Tools ===

Xcode 6.4 (7720)
Build 6E35b

=== Xamarin.iOS ===

Version: 8.10.3.2 (Business Edition)
Hash: 8b265d6
Branch: master
Build date: 2015-06-30 15:19:13-0400

=== Xamarin.Mac ===

Version: 2.0.2.35 (Business Edition)

=== Build Information ===

Release ID: 509040005
Git revision: 8010a90f6e246b32364e3fb46ef2c9d1be9c9a2b
Build date: 2015-06-08 16:52:06-04
Xamarin addins: 7e93e9c3503f28770f23ce1b7eafd829919f18e8

=== Operating System ===

Mac OS X 10.10.4
Darwin Jons-iMac.local 14.4.0 Darwin Kernel Version 14.4.0
    Thu May 28 11:35:04 PDT 2015
    root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64
Comment 3 Rui Marinho 2015-10-13 16:54:41 UTC
Should be fixed in 1.5.2-pre1
Comment 4 Parmendra Kumar 2015-10-26 07:50:24 UTC
I have checked this issue with Xamarin.Forms 1.5.2-pre1 and its working fine.


Hence closing this issue.