-[UITableView endUpdates] calls scrollView delegates on iOS 11 Beta 3

Originator:ravis.bmstu
Number:rdar://33424990 Date Originated:July 20 2017
Status:Open Resolved:No
Product:iOS + SDK Product Version:iOS 11 Beta 3 (15A5318g)
Classification:UIKit Reproducible:Rarely
 
We're receiving crash reports (can't reproduce during testing) where backtrace contains scrollView delegation method scrollViewDidScroll: calls sent from -[UITableView endUpdates]
This crash group appears only on iPhone OS 11.0 (15A5318g) (iOS 11 Beta 3).
If that's an actual API change, than it is a breaking change, because delegation methods can contain logic that must be consistent with final state of table view update.

Crashlog with backtrace showing the problem is in attachments. Frames 19-28.

...
19  UIKit                                0x000000018f101a44 -[UIScrollView(UIScrollViewInternal) _notifyDidScroll] + 68
20  UIKit                                0x00000001a402d4e4 0x1a3fde000 + 324836
21  UIKit                                0x000000018ee24560 -[UIScrollView setContentOffset:] + 400
22  UIKit                                0x000000018eeca79c -[UITableView setContentOffset:] + 296
23  UIKit                                0x000000018f1040f0 -[UIScrollView(UIScrollViewInternal) _adjustContentOffsetIfNecessary] + 56
24  UIKit                                0x000000018ee1bbd4 -[UIScrollView setContentSize:] + 1056
25  UIKit                                0x000000018eed2600 -[UITableView _updateContentSize] + 528
26  UIKit                                0x000000018efe4cf8 -[UITableView _updateWithItems:updateSupport:] + 2432
27  UIKit                                0x000000018efcc7f0 -[UITableView _endCellAnimationsWithContext:] + 15848
28  UIKit                                0x000000018efc8910 -[UITableView endUpdates] + 88
...

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!