Bug 54441 - ListView Context Action binding update freezes iOS app
Summary: ListView Context Action binding update freezes iOS app
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.4
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-04-04 13:10 UTC by Alexander
Modified: 2017-07-12 22:51 UTC (History)
3 users (show)

Tags: ios, performance, contextaction, propertychanged, binding, ac
Is this bug a regression?: ---
Last known good build:

Sample app which shows the problem described (304.55 KB, application/x-zip-compressed)
2017-04-04 13:10 UTC, Alexander

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 54441 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:

Description Alexander 2017-04-04 13:10:36 UTC
Created attachment 21181 [details]
Sample app which shows the problem described

If ListView context action "Text" or "IsDestructive" property is bound to the item props, several updating of those properties freezes an iOS app. To see:

1. Start the sample attached on iOS device or simulator (any iOS version);
2. Click several times on some item. After 15-20 clicks the app will be frozen.

Depending on items count and complexity, the freezing may be occurred on 3-5th bound property change.
Reproducible on 2.3.2, 2.3.3 and 2.3.4.
Comment 1 Jimmy [MSFT] 2017-04-05 16:48:09 UTC
I was able to reproduce the issue described with the attached project. In the project, each press of the cell fires off a property changed notification for the MenuItems and after ~20 presses the app started to run and respond to the event very slowly, though I never saw it completely freeze or crash. I ran the project on a 10.3 simulator and 10.2 device. 

On Android, there was no degradation in performance so this seems to only be happening on iOS. I can confirming this report so the team can look more into this.

### Version Tests    BAD
2.3.4-pre6  BAD   BAD