-
Notifications
You must be signed in to change notification settings - Fork 21
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
THREAD WARNING: exec() call to SQLitePlugin.backgroundExecuteSqlBatch blocked the main thread #12
Comments
This is an issue with the SQLite Plugin for Cordova, not the Sencha Touch On Wed, Sep 17, 2014 at 7:41 AM, Juan Luis Barreda <[email protected]
|
So using sencha sql proxy with your overrides seems to be the solution. I have just a question. SQL proxy from sencha uses SQLite or WebSQL? Because I need to deal with SQLite. |
Ok, I found the answer in the getDatabaseObject at the end of the Sql.js, you're managing the sqlitePlugin there. Ok, I'm going to test this overrides and give you the feedback, thanks! |
Yes which one you use depends on window. or sqlite. - the query language is On Wed, Sep 17, 2014 at 8:08 AM, Juan Luis Barreda <[email protected]
|
Hi @shepsii , everything is working fine with the override except two things:
Should I manage the onPause event to close any database? |
Don't worry about the block main thread thing. That's just a warning. Just I've not experienced your second issue there at all - this hasn't happened On Tue, Sep 23, 2014 at 1:43 PM, Juan Luis Barreda <[email protected]
|
I've debugged and I've seen the main thread is blocked while doing store.sync() operation with aprox 1000 registers, the thing is the UI is locked and app seems to be hang. The second issue I'm trying to find out the reason. |
That sounds like you are trying to do too much in one go! Without seeing On Tue, Sep 23, 2014 at 2:30 PM, Juan Luis Barreda <[email protected]
|
Thank you anyway! I'll report the solution I hope soon! |
My second issue was a bug that has been solved by @brodysoft on this issue storesafe/cordova-sqlite-storage#134 people with this problem must refer to this branch |
I'm getting this error:
THREAD WARNING: exec() call to SQLitePlugin.backgroundExecuteSqlBatch blocked the main thread for 474ms. Plugin should use CordovaInterface.getThreadPool().
When doing sync() operation over stores with proxy sqlitestorage. When loading my app, i need to download almost 2000 records over 12 stores, and the error happens when the stores.sync() operation is called, blocking the UI thread.
The text was updated successfully, but these errors were encountered: