Bug 36675 - ListView with Header causes a crash after PopAsync
Summary: ListView with Header causes a crash after PopAsync
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.0.0
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-12-07 15:23 UTC by John Miller [MSFT]
Modified: 2016-11-15 22:44 UTC (History)
6 users (show)

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


Attachments
Sample Project (137.84 KB, application/zip)
2015-12-07 15:23 UTC, John Miller [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 NOT_REPRODUCIBLE

Description John Miller [MSFT] 2015-12-07 15:23:45 UTC
Created attachment 14148 [details]
Sample Project

**Overview:**

   Possible regression with a header in a ListView with Xamarin.Forms 1.5.1.6471 (and higher) on Iphone 4 IOS 7.1. We have the same problem with the latest version of Xamarin.Forms (2.0.0.6490). However, we no longer can reproduce the problem with an iPhone 5C IOS 8.3 and we had no problem with Xamarin.Forms 1.5.0.6447 on Iphone 4 IOS 7.1.

When I am on a page containing a ListView with a header and I do a PopAsync via NavigationPage my app crashes.

**Steps to Reproduce:**

   1. Run the attached sample on an iPhone 4 iOS 7.1 device/simulator
   2. Press the button to navigate forward.
   3. Press back

**Actual Results:**

   App crashes. 

**Expected Results:**

   No crash. 

**Build Date & Platform:**

   XF 2.0
Comment 2 Thetyne 2016-02-29 21:24:00 UTC
Reproduce it on Xamarin.Forms 2.1.0.6517-pre5 on iOS 6 device (iPod) under iOS 6.1.5
I found  description with log on Xamarin forum : https://forums.xamarin.com/discussion/59887/crash-when-going-back-to-a-view-on-iphone-4

remove listview Header fix this crash.
Comment 3 Chris Addington 2016-03-22 20:54:53 UTC
Still crashing as of 2.1.0.6529.  If I set the the ListView Header to null in the OnDisappearing event of the page, it no longer crashes and I can use the ListView Header on iOS 7.  This is not ideal because I have to manage this and recreate the header OnAppearing.
Comment 4 adrianknight89 2016-09-30 07:04:22 UTC
I tested this in XF 2.3.3.152-pre2 / iOS 10 / iPhone 6. For me, the issue does not exist.