Skip to content
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

SQLitePlugin Fails after 1000 transactions on iOS #33

Closed
n8sabes opened this issue Feb 23, 2015 · 2 comments
Closed

SQLitePlugin Fails after 1000 transactions on iOS #33

n8sabes opened this issue Feb 23, 2015 · 2 comments

Comments

@n8sabes
Copy link

n8sabes commented Feb 23, 2015

Execute 1000 "transactions" sequentially and the app freezes up preventing further Sqlite calls. Completion functions are no longer called after 500~1000 cycles causing the freeze. Here is an example of the problem:

https://github.com/n8sabes/ionic-sqlite-1000-transactions-ios-bug

Any input on the cause / fix would be appreciated.

@davibe
Copy link
Owner

davibe commented Feb 23, 2015

You are using Cordova-SQLitePlugin implementation from "brodysoft" github user. I suggest you refer to him.

@davibe davibe closed this as completed Feb 23, 2015
@n8sabes
Copy link
Author

n8sabes commented Feb 23, 2015

Thank you. I posted the question on brodysoft's project as well.

NOTE -- I just rebuilt the example (replacing the SQLite plugin with your plugin) and the same issue occurs only the cycles before failure are >1500. Can you try to cycling 1500+ sequential transactions (with or without an INSERT within it) on the iOS simulator and see what your results are? My completion functions stop being called and then the SQLite plugin goes deaf.

I've been chasing this (bug?) all day and welcome any thoughts on the issue.

I'm running iOS 8.1 (12B411)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants