Closed Mr-Anonymous closed 2 years ago
Sorry to bump this. Any update on this please? I need to release my next mobile app update and hoping if someone can shed some light on this issue. Thanking you.
I got another 7 more crash reports today and users are complaining the app keeps crashing. The crash log says:
SIGABRT: Application tried to present modally an active controller <UIViewController: 0x104c1e010>.
I understand the author of his plugin is from China, I really do hope he is safe and well.
Does anyone else have any idea on what may cause this please? My users are getting a bit annoyed and I don't know how to fix this crashing.
could it be due to this:
[self presentViewController:alert animated:YES completion:nil];
in line #171 in:
node_modules/cordova-plugin-mediapicker-dmcsdk/src/ios/DMCMediaPicker/DmcPickerViewController.m
I've spent hours and days on this. no idea what is causing these crashes.
@DmcSDK Can you shed some light on this please? I have received numerous complains from our users using iPads complaining of the issue where the app crashes as soon as it is launched. I started having these issues only after:
Updating Mediapicker plugin from 2.4.6 to 2.4.7.
After building app using Xcode 11.2.1 onwards.
@Mr-Anonymous sorry,I've been very busy lately and can't improve
Thank you for replying @DmcSDK Can you just tell me 1 thing if you can please? could this error be related to this plugin or should I be looking elsewhere such as the webview plugin? It appears perhaps a conflict with the plugins is causing this error but not sure which one is it:
SIGABRT: Application tried to present modally an active controller <UIViewController: 0x10550a9b0>.
Can this addition in version 2.4.7 cause this crash issue?
if (@available(iOS 13.0, *)) {
dmc.modalInPresentation = true;
}
@DmcSDK An update on this issue. Since I was unable to find out the cause for these crashes in some devices, I did the following changes and it seems to work for the users whose app was crashing before:
Instead of using the current version of this plugin, I downloaded the 2.4.6 version up until this commit https://github.com/DmcSDK/cordova-plugin-mediaPicker/commit/9bf7809c404b0b22e1c6001fa64a4cacec9c41e8 and rebuilt my iOS App.
I also manually added the ios13 text color fix to this plugin since the above commit did not include this: https://github.com/DmcSDK/cordova-plugin-mediaPicker/commit/98d10a139a92c6c9c98d4fa5d1e3fa4fcaba3c1f
I released my App with 2.4.6 version of this plugin and requested my users to see if they are able to launch the App. Couple of them emailed back today confirming that now they are able to open the app properly without crashing.
So this confirms that the reason for so many crashes was perhaps due to one of the edits that was done after this commit https://github.com/DmcSDK/cordova-plugin-mediaPicker/commit/9bf7809c404b0b22e1c6001fa64a4cacec9c41e8
I suspect if one of these commits were causing the crashes:
https://github.com/DmcSDK/cordova-plugin-mediaPicker/commit/e89a6215128e3c5479b990a79880c097c77bbc2e
https://github.com/DmcSDK/cordova-plugin-mediaPicker/commit/ae542426dd8ffeb1c633a3d9d2abdfe5c253d5bd
I hope this helps you in finding that was causing these errors and crashes for my users when my app is launched and it has 2.4.7 version of this plugin:
SIGABRT: Application tried to present modally an active controller <UIViewController: 0x10550a9b0>
Hope you will get time to look into fixing these issues since an app crashing during launch is quite big.
Looks like this issue is still there even after installing 2.4.6 version of this plugin. Some iOS apps are still crashing.
I have been getting a few crash reports for the past few weeks, all from iOS, and I have been searching and searching and I don't know which plugin might be the cause for this error. Can you tell if it is possible for MediaPicker Plugin to cause this issue? Or could the issue be related to some other plugin and not this one?
A lot of the users who have reported this issue says that the App abruptly crashes and closes soon after the launch screen when the page loads. No Android users or my web app users have this issue. For some it works fine in iPhone but crashes in iPads.
The Xcode did not give anything useful other than the following errors:
and
I symbolicated the crash and from App Centre I view these:
![Screenshot 2020-01-28 at 11 14 08 AM](https://user-images.githubusercontent.com/8770270/73238659-b5a0e180-41bf-11ea-9dc5-163a3955fdc8.png)
Could MediaPicker Plugin cause these crashes? Any ideas on where I may need to look?
These are the plugins and the environment I have:
Ionic Info: