Bug 60894 - Crash on scrolling (re-use cells) Tableview quickly
Summary: Crash on scrolling (re-use cells) Tableview quickly
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.5.0
Hardware: Macintosh Mac OS
: Normal major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-11-28 15:18 UTC by pinkelephantdev
Modified: 2017-12-18 10:49 UTC (History)
2 users (show)

Tags: tableview, scroll, InvalidCastException, ac
Is this bug a regression?: ---
Last known good build:

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 for Bug 60894 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description pinkelephantdev 2017-11-28 15:18:22 UTC
Current Project Updated to 2.5(from 2.4) and when fast scrolling (So when re-use cells is going on) in a tableview with different edit components like entry en date fields.

Everytime hard crash on iOS in Main.cs: Specified cast is not valid.


Test Project included :
A normal tableview where objects are generated onto it

- Open App (Simulator 8 Ios 11 or device)
- Tableview loaded
- Scroll FAST (Throw view with mouse so reuse from cells is triggered) from top to bottom and bottom to top for several times 



Error occurred :
System.InvalidCastException has been thrown
Specified cast is not valid

Looks like the reuse from Cells is not working correctly

- 2.4.0.91020 OK
- 2.5.0.77107 Crash
- 2.5.0.91635 Crash


TEST Project:

https://we.tl/s6jwU34JcA

Recording from my simulator:

https://we.tl/hHfiWKeH3f



=== Visual Studio Community 2017 for Mac ===

Version 7.2.2 (build 11)
Installation UUID: 36d4a3ef-bbf4-42c0-922c-ab3c70c3b2e9
Runtime:
	Mono 5.4.1.6 (2017-06/1f4613aa1ac) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 504010006

=== NuGet ===

Version: 4.3.1.4445

=== .NET Core ===

Runtime: Not installed
SDK: Not installed
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.5.6
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 9.1 (13532)
Build 9B55

=== Xamarin.iOS ===

Version: 11.3.0.47 (Visual Studio Community)
Hash: 51128b8c
Branch: xcode9.1
Build date: 2017-10-31 22:42:13-0400

=== Xamarin.Android ===

Version: 8.0.2.1 (Visual Studio Community)
Android SDK: /Users/PinkDevelopment/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.4 (API level 19)
		5.1 (API level 22)
		6.0 (API level 23)
		7.0 (API level 24)
		7.1 (API level 25)
		8.0 (API level 26)

SDK Tools Version: 25.2.5
SDK Platform Tools Version: 25.0.5
SDK Build Tools Version: 25.0.3

Java SDK: /usr
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin.Mac ===

Version: 3.8.1.0 (Visual Studio Community)

=== Xamarin Inspector ===

Version: 1.3.2
Hash: 461f09a
Branch: 1.3-release
Build date: Tue, 03 Oct 2017 18:26:57 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 702020011
Git revision: b604c37c5a4a2f0919b45ffbe2aaad9fe040af31
Build date: 2017-11-01 08:31:43-04
Xamarin addins: d57dc14cbd4eb166ee62bab585965ab78d3650bc
Build lane: monodevelop-lion-d15-4

=== Operating System ===

Mac OS X 10.12.6
Darwin 16.7.0 Darwin Kernel Version 16.7.0
    Thu Jun 15 17:36:27 PDT 2017
    root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
Comment 1 Paul DiPietro [MSFT] 2017-11-28 18:01:51 UTC
Thank you for the reproduction which was fortunately able to cause the crash, so I will set this as confirmed until further investigation can be made.
Comment 2 pinkelephantdev 2017-12-18 10:49:24 UTC
New (not expiring) link with Testproject + screen recording:

https://we.tl/1R0nY72TS3