[Image Picker plugin] [Image Picker plugin] its crashing on ios app upon permission pop up
Question
Forge component by Barduino
Application Type
Mobile

As soon as I get the alert for the permission to access the photo the app crashes.The app crashes if I select selected images.If I select all images it does not crash

OSCrashHandler

A fatal error has occurred. Please contact OutSystems support: Unhandled error (NSCocoaErrorDomain, 134093) occurred during faulting and was thrown: Error Domain=NSCocoaErrorDomain Code=134093 "(null)"


OperatingSystem: iOS 14.3
NetworkStatus: Online
Cordova: 6.1.1
DeviceModel: iPhone12,1
AppVersionName: 0.2
Client-Side Log

0   CoreFoundation                      0x0000000198089880 935533F2-35EE-314E-A760-E74521F68435 + 1202304
1 libobjc.A.dylib 0x00000001acff8c50 objc_exception_throw + 60
2 CoreData 0x000000019e2ed830 D1240876-C298-3E82-824F-F4D0DB8F474D + 1161264
3 CoreData 0x000000019e2eeec4 D1240876-C298-3E82-824F-F4D0DB8F474D + 1167044
4 CoreData 0x000000019e308714 D1240876-C298-3E82-824F-F4D0DB8F474D + 1271572
5 CoreData 0x000000019e308478 D1240876-C298-3E82-824F-F4D0DB8F474D + 1270904
6 PhotoLibraryServices 0x00000001a9754e5c 4B1C70D3-EEEC-353B-B132-ED538DCFFEFC + 1408604
7 PhotoLibraryServices 0x00000001a97b088c 4B1C70D3-EEEC-353B-B132-ED538DCFFEFC + 1783948
8 PhotoLibraryServices 0x00000001a97bc288 4B1C70D3-EEEC-353B-B132-ED538DCFFEFC + 1831560
9 AssetsLibrary 0x00000001c9f17d70 1E6D85CA-470A-3564-B992-1FFBD8155231 + 32112
10 CoreData 0x000000019e3120f8 D1240876-C298-3E82-824F-F4D0DB8F474D + 1310968
11 libdispatch.dylib 0x0000000197c7ddb0 0F3905E0-6720-3D08-9AE0-A43A8DA244C0 + 15792
12 libdispatch.dylib 0x0000000197c8c428 0F3905E0-6720-3D08-9AE0-A43A8DA244C0 + 74792
13 CoreData 0x000000019e1dc270 D1240876-C298-3E82-824F-F4D0DB8F474D + 41584
14 AssetsLibrary 0x00000001c9f1c090 1E6D85CA-470A-3564-B992-1FFBD8155231 + 49296
15 AssetsLibrary 0x00000001c9f1e818 1E6D85CA-470A-3564-B992-1FFBD8155231 + 59416
16 AssetsLibrary 0x00000001c9f17cb8 1E6D85CA-470A-3564-B992-1FFBD8155231 + 31928
17 APP 0x0000000100179c90 MYMSK + 1334416
18 UIKitCore 0x000000019ac6b168 23311071-8AD7-3E8F-836A-BE5DC8A8B0DF + 14643560
19  UIKitCore                           0x000000019



Hi,

Is there any update on the above issue?

Champion

not yet. I am trying to investigate this issue in my free time however, it would be difficult for me right now as I don't have any certs for iOS anymore.

Hello,

We were having a similar issue and solved it by adding a {disable_popover: true} option to the getPictures() function as proposed here:

The getPictures() JavaScript code in the ImagePicker client action now is:

window.imagePicker.getPictures(
function(results) {
for (var i = 0; i < results.length; i++) {
console.log('Image URI: ' + results[i]);
}

Success(results);

}, function (error) {
console.log('Error: ' + error);
Fail(error);
},{ maximumImagesCount:$parameters.maximumImagesCount,
width: $parameters.width,
height: $parameters.height,
quality:$parameters.quality,
disable_popover: true
}
);

Disclaimer: we are using the GitHub code from:

Hope this helps!

Regards,

Rui

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.