-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
iOS 15.6.1 - Ionic 6 - Webkit Crashes sometimes in the Background #9
Comments
Try uninstalling this plugin, and see if the error keeps happening. |
Without plugin the error does not happen. It seems like while the scanner is active, the webview in the background is restarted due to a crash. Saving the scan is not possible since the new webview has no connection to the callback from the scanner. |
Any updates here? Having the same issues here with the logs below:
|
No - no solution found so far. I tried to install the newest dependencies, but the Webview just crashes sometimes in the background and does a clean restart. So it looks like the app is still running but the PID changed and there's no possibility for the plugin to pass the data back to the app. It happens on all iOS Devices I have, iPhone SE 2022 and two different iPads with latest iOS installed. The crash happens not regularly, sometimes i feel it happens less often if there are no other apps running. |
Just waking up an old thread: After upgrades (capacitor, iOS) the bug still exists. I'm not even sure if it's a problem of capacitor-document-scanner or capacitor/ionic itself, or even a webkit bug. Anyway, If somebody knows more or has a workaround, glad to know :) |
Since I'm stuck here, I cross posted the issue in the ionic forum as well. |
Anybody can fix this issue? 😢 |
No - I've switched my codebase to flutter, but even there using the iOS built in document scanner is wonky. Sometimes it just crashes without further notice due to memory pressure. My setup now is using not the native scanner, but the one from Wetransfer (https://github.com/WeTransfer/WeScan), which looks more stable. |
@urshofer Hey I was wondering if by chance you made a capacitor plugin for WeScan ? I don't really know much of Swift so it would help a lot |
I've come upon the same issue. It's not much help solution-wise, but it does appear to be that the crash is caused by occasional spikes in the memory while the camera scanner is active. See the attached image, with the spike where a crash occurred circled in red. Here's someone else also describing the same issue and diagnosing it as being caused by a memory spike: ionic-team/capacitor#6549 (comment) Since this is an issue with the plugin from Apple, there may not be much to do. In any case, from the lack of customization options, it seems as if Apple hasn't put much effort into making VNDocumentCameraViewController usable by third-party applications. |
Hi -
Thanks for your great Work.
In my case, when opening the scanner, the App in the background sometimes crashes and restarts. Therefore not listening to any callbacks and the scanned input is lost. I don't know when exactly it happens. Not depending of the size of the scan.
It might be related to a webkit bug: ionic-team/capacitor#5491
Anyway, here's the log:
Maybe somebody can point me in the right direction for a fix.
Best,
hofer
The text was updated successfully, but these errors were encountered: