react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

App crashes on tapping "Manage" button with keeping selected photos

Open anjerodesu opened this issue 3 years ago • 3 comments

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.37.3
  • react-native v0.64.2

Platform

Tell us to which platform this issue is related

  • iOS iPad Pro (9.7-inch) 15.4

Expected behaviour

Open up the native iOS modal to select more photos

Actual behaviour

App crash

Steps to reproduce

  1. Open the photo picker with selected photos option

  2. Tap "Keep current selection"

  3. tap "Manage" button in top right

Attachments

screenshot

*** Terminating app due to uncaught exception 'NSGenericException', reason: 'Your application has presented a UIAlertController (<UIAlertController: 0x7f974b952e00>) of style UIAlertControllerStyleActionSheet from QBImagePickerController (<QBImagePickerController: 0x7f974b390470>). The modalPresentationStyle of a UIAlertController with this style is UIModalPresentationPopover. You must provide location information for this popover through the alert controller's popoverPresentationController. You must provide either a sourceView and sourceRect or a barButtonItem.  If this information is not known when you present the alert controller, you may provide it in the UIPopoverPresentationControllerDelegate method -prepareForPopoverPresentation.'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000011417ad44 __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x0000000114b69a65 objc_exception_throw + 48
	2   UIKitCore                           0x000000012e47ccb2 -[UIPopoverPresentationController presentationTransitionWillBegin] + 4195
	3   UIKitCore                           0x000000012e489069 __80-[UIPresentationController _initViewHierarchyForPresentationSuperview:inWindow:]_block_invoke + 2721
	4   UIKitCore                           0x000000012e48675b __56-[UIPresentationController runTransitionForCurrentState]_block_invoke.401 + 412
	5   UIKitCore                           0x000000012f2de2d5 -[_UIAfterCACommitBlock run] + 54
	6   UIKitCore                           0x000000012f2de7cd -[_UIAfterCACommitQueue flush] + 190
	7   UIKitCore                           0x000000012ed8babd _runAfterCACommitDeferredBlocks + 782
	8   UIKitCore                           0x000000012ed7b38d _cleanUpAfterCAFlushAndRunDeferredBlocks + 135
	9   UIKitCore                           0x000000012edaf8c6 _afterCACommitHandler + 72
	10  CoreFoundation                      0x00000001140e667d __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
	11  CoreFoundation                      0x00000001140e0e41 __CFRunLoopDoObservers + 570
	12  CoreFoundation                      0x00000001140e13d9 __CFRunLoopRun + 1100
	13  CoreFoundation                      0x00000001140e0a90 CFRunLoopRunSpecific + 562
	14  GraphicsServices                    0x000000011e5cfc8e GSEventRunModal + 139
	15  UIKitCore                           0x000000012ed7c90e -[UIApplication _run] + 928
	16  UIKitCore                           0x000000012ed81569 UIApplicationMain + 101
	17  [thismobileapp]                     0x000000010c2a53e8 main + 104
	18  dyld                                0x0000000112e55f21 start_sim + 10
	19  ???                                 0x000000011d69d51e 0x0 + 4788442398
)
libc++abi: terminating with uncaught exception of type NSException

// stacktrace or any other useful debug info

Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate

anjerodesu avatar May 20 '22 10:05 anjerodesu

I have the same problem on 0.38.0. Do you manage to find a solution for this?

biskis avatar Jun 29 '22 21:06 biskis

Same problem here

binchik avatar Jul 18 '22 04:07 binchik

Also having this issue.

jason-svmx avatar Jul 19 '22 17:07 jason-svmx

You can find the solution here https://github.com/ivpusic/react-native-image-crop-picker/issues/1765

anjitha-jk avatar Oct 18 '22 09:10 anjitha-jk

Having the same issue, the patch is not working nor is any new version.

AmarHumackic avatar Apr 10 '23 13:04 AmarHumackic