woocommerce / woocommerce-ios

WooCommerce iOS app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
299 stars 110 forks source link

ResultsController SectionInfo: NSRangeException: *** -[NSArray subarrayWithRange:]: range {0, 20} extends beyond bounds for empty array #3244

Closed sentry-io[bot] closed 3 years ago

sentry-io[bot] commented 3 years ago

Sentry Issue: WOOCOMMERCE-IOS-1CE0

NSRangeException: *** -[NSArray subarrayWithRange:]: range {0, 20} extends beyond bounds for empty array
  File "ResultsController.swift", line 288, in ResultsController.SectionInfo.init
  File "ResultsController.swift", in ResultsController.SectionInfo.init
  File "ResultsController.swift", line 286, in ResultsController.SectionInfo.__allocating_init
  File "Yosemite", in ResultsController.SectionInfo.__allocating_init
  File "ResultsController.swift", line 227, in ResultsController.setupEventsForwarding
...
(42 additional frame(s) were not displayed)

Created by @shiki

shiki commented 3 years ago

Nov 30, 2020:

Most of the users are using iOS 14. I don't think we should fix this since we've removed usage of ResultsController in Orders to use DiffableDataSource.

shiki commented 3 years ago

Similar to https://github.com/woocommerce/woocommerce-ios/issues/1543.

sentry-io[bot] commented 3 years ago

Sentry issue: WOOCOMMERCE-IOS-1CEY

Ecarrion commented 3 years ago

Closing this as it's not happening in the latest releases, only in >= 4.3.0.2