Open Muhammadfaizann opened 2 years ago
SaveAndView function throws the following exception. Exception Name NSInvalidArgumentException Message
NSInvalidArgumentException
Native stack trace: 0 CoreFoundation 0x000000010f35f604 __exceptionPreprocess + 242 1 libobjc.A.dylib 0x000000011f168a45 objc_exception_throw + 48 2 CoreFoundation 0x000000010f3e0c63 _CFThrowFormattedException + 200 3 CoreFoundation 0x000000010f3eb137 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.5 + 0 4 CoreFoundation 0x000000010f3cd928 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 243 5 CoreFoundation 0x000000010f35e258 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49 6 QuickLook 0x000000010ef005de __49+[QLItem(PreviewInfo) contentTypesToPreviewTypes]_block_invoke + 484 7 libdispatch.dylib 0x000000012065fb25 _dispatch_client_callout + 8 8 libdispatch.dylib 0x0000000120660cdd _dispatch_once_callout + 20 9 QuickLook 0x000000010ef003f8 +[QLItem(PreviewInfo) contentTypesToPreviewTypes] + 46 10 QuickLook 0x000000010ef00d39 -[QLItem(PreviewInfo) _uncachedPreviewItemTypeForContentType:] + 117 11 QuickLook 0x000000010ef012a6 -[QLItem(PreviewInfo) _previewItemTypeForType:] + 150 12 QuickLook 0x000000010ef010ac -[QLItem(PreviewInfo) _getPreviewItemType] + 61 13 QuickLook 0x000000010ef884da -[QLItem previewItemType] + 59 14 QuickLook 0x000000010ef37d1d +[QLItemFetcherFactory fetcherForPreviewItem:] + 90 15 QuickLook 0x000000010ef87ba3 -[QLItem fetcher] + 44 16 QuickLook 0x000000010eeeb828 -[QLPreviewController previewItemAtIndex:withCompletionHandler:] + 153 17 QuickLook 0x000000010ef217af __63-[QLPreviewItemStore previewItemAtIndex:withCompletionHandler:]_block_invoke + 262 18 QuickLook 0x000000010ef55629 QLRunInMainThread + 51 19 QuickLook 0x000000010ef2167a -[QLPreviewItemStore previewItemAtIndex:withCompletionHandler:] + 181 20 QuickLook 0x000000010eee5847 -[QLPreviewController internalCurrentPreviewItem] + 222 21 QuickLook 0x000000010ef65148 -[QLPreviewController(Overlay) _actionButton] + 344 22 QuickLook 0x000000010ef65824 -[QLPreviewController(Overlay) _toolBarButtonsWithTraitCollection:] + 1147 23 QuickLook 0x000000010ef63307 -[QLPreviewController(Overlay) _updateOverlayButtonsIfNeededWithTraitCollection:animated:updatedToolbarButtons:] + 129 24 QuickLook 0x000000010ef629aa -[QLPreviewController(Overlay) updateOverlayAnimated:animatedButtons:forceRefresh:withTraitCollection:] + 152 25 QuickLook 0x000000010eee56af -[QLPreviewController _setCurrentPreviewItemIndex:updatePreview:animated:] + 230 26 QuickLook 0x000000010eeeb3be -[QLPreviewController reloadData] + 418 27 QuickLook 0x000000010ef76332 -[QLPreviewController(Transitions) animatorForShowing:previewController:presentingController:] + 86 28 UIKitCore 0x00000001364ac4d0 -[UIViewController _customAnimatorForPresentedController:presentingController:sourceController:] + 163 29 UIKitCore 0x00000001364b2533 -[UIViewController _presentViewController:withAnimationController:completion:] + 4826 30 UIKitCore 0x00000001364b337b __63-[UIViewController _presentViewController:animated:completion:]_block_invoke + 98 31 UIKitCore 0x00000001364b36b1 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 519 32 UIKitCore 0x00000001364b32d9 -[UIViewController _presentViewController:animated:completion:] + 173 33 UIKitCore 0x00000001364b3767 -[UIViewController presentViewController:animated:completion:] + 155 34 HealthSafetyApp.iOS 0x000000010519f5dc xamarin_dyn_objc_msgSendSuper + 220 35 ??? 0x00000001709c2f54 0x0 + 6184251220
Reason *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[2]
*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[2]
Same issue Although what iOS version are you useing cause for me it does work on 16.2 but not on 15.4
SaveAndView function throws the following exception. Exception Name
NSInvalidArgumentException
MessageReason
*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[2]