Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSRangeException: *** -[NSMutableIndexSet addIndexesInRange:]: Range {18446744073709551614, 1} exceeds maximum inde... #11838

Closed
sentry-io bot opened this issue Jan 29, 2024 · 2 comments · Fixed by #11843
Labels
feature: add/edit products Related to adding or editing products. type: crash The worst kind of bug.

Comments

@sentry-io
Copy link

sentry-io bot commented Jan 29, 2024

Sentry Issue: WOOCOMMERCE-IOS-1M8W

NSRangeException: *** -[NSMutableIndexSet addIndexesInRange:]: Range {18446744073709551614, 1} exceeds maximum index value of NSNotFound - 1
  File "WPPHAssetDataSource.m", line 379, in -[WPPHAssetDataSource adjustedIndexesForIndexSet:forCount:]
  File "WPPHAssetDataSource.m", line 373, in -[WPPHAssetDataSource adjustedIndexesForIndexSet:]
  File "WPPHAssetDataSource.m", line 101, in __45-[WPPHAssetDataSource photoLibraryDidChange:]_block_invoke
  File "main.swift", line 7, in main
...
(15 additional frame(s) were not displayed)
@sentry-io sentry-io bot added feature: add/edit products Related to adding or editing products. type: crash The worst kind of bug. labels Jan 29, 2024
@joshheald
Copy link
Contributor

This may be fixed in WP-MediaPicker 1.8.10:
There are two recent crash fixes for WP-MediaPicker which look related to this: wordpress-mobile/MediaPicker-iOS#414 wordpress-mobile/MediaPicker-iOS#412

We could update to 1.8.10 (currently on 1.8.1) to try to fix the crash... however, updating to that version breaks adding photos from the camera.

When I try to add a photo from the camera on 1.8.1, it works, but with 1.8.10, it fails with Cannot upload image – the operation couldn't be completed. (WPMediaPickerErrorDomain error 0.)
failed-to-upload-from-camera

@joshheald joshheald removed their assignment Jan 29, 2024
@joshheald
Copy link
Contributor

Related: wordpress-mobile/MediaPicker-iOS#419

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: add/edit products Related to adding or editing products. type: crash The worst kind of bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant