-
Notifications
You must be signed in to change notification settings - Fork 715
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 threading issue with openDatabase? #716
Comments
openDBs is an NSMutableDictionary, which isn't designed for thread safety... |
I used a thread safe dictionary (https://gist.github.com/steipete/5928916) in my local build for openDBs, and that fixed the problem I was seeing. I tried to branch this plugin, but I haven't gotten that working yet.. |
On Tue, Sep 5, 2017 at 9:43 PM, craig-at-rsg ***@***.***> wrote:
I used a thread safe dictionary (https://gist.github.com/steipete/5928916)
in my local build for openDBs, and that fixed the problem I was seeing. I
tried to branch this plugin, but I haven't gotten that working yet..
Thanks @craig-at-rsg for the report, details, and workaround. I will deal
with this when I get a chance, been extremely busy with some work for a
client.
|
Thanks @brodybits, no rush; my fork is working for me. |
Marking this as a bug, with possible data loss risk. Will integrate the proposed workaround / solution in the near future. |
PSPDFThreadSafeMutableDictionary.m from https://gist.github.com/steipete/5928916 ref: storesafe#716
…onary (iOS/macOS) with minor changes by @brodybits: - import PSPDFThreadSafeMutableDictionary in SQLitePlugin.m instead of SQLitePlugin.h - update SQLitePlugin.m & plugin.xml in single commit - update plugin version - update docs ref: storesafe#716
Proposed workaround solution and flag fix for #703 are now integrated with cordova-sqlite-ext, will be integrated with this version in the near future. |
Proposed workaround solution is now integrated with this plugin version (cordova-sqlite-storage), will be merged into the other plugin versions in the near future. Thanks again for the contribution. |
I have intermittent crashes when my app starts up on iOS, and my guess is it's related to calling openDatabase from different places. I need to restart my app multiple times before I hit this. Here's a screenshot - if this doesn't point to the cause, let me know and I'll try creating a test app.
The text was updated successfully, but these errors were encountered: