xamarin/Xamarin.Forms

iOS: ContextAction collection changes cause slow-down and eventual freeze

Open

#2,085 opened on Mar 12, 2018

View on GitHub
 (3 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
a/listviewa/performancee/4 :clock4:help wantedi/highp/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

Each Change to the ContextActions in a ListView or TableView cause an exponentially increasing UI freeze on iOS.

Steps to Reproduce

  1. Create a ViewCell with context actions
  2. Repeatedly change the context actions in some way (usually based on ViewCell/ViewModel state)

Expected Behavior

Context Menu (swipe left on iOS, hold on Android, right-click on UWP, etc) should reflect this change immediately with no UI slow down.

Actual Behavior

On iOS, on every change, the UI gets slower and slower to respond till it eventually freezes indefinitely.

Basic Information

  • Version with issue: 2.5.0.280555
  • IDE: Visual Studio 2017
  • Platform Target Frameworks:
    • iOS: 11.8.0.20
  • Devices: Tested on iPhone 6 Plus

Video

https://github.com/sonic1015/bugRepo/files/1835039/2018-03-12.T16-17-07.zip

Reproduction Link

https://github.com/sonic1015/bugRepo/archive/1.zip

Contributor guide