Note that there are some explanatory texts on larger screens.

plurals
  1. POSQLCipher - Finalizing a Cursor that has not been deactivated error
    primarykey
    data
    text
    <p>My question is very much similar to this <a href="https://stackoverflow.com/q/3068320/394933">one</a> but slightly different. I get the following error when I simply try to query everything in my table that has been encrypted by <a href="https://guardianproject.info/code/sqlcipher/" rel="nofollow noreferrer">SQLCiper</a>.</p> <pre><code> 12-29 11:37:54.329: E/Cursor(10837): Finalizing a Cursor that has not been deactivated or closed. database = /data/data/com.company.myapp/databases/data, table = data_table, query = SELECT rowid, data FROM data_table 12-29 11:37:54.329: E/Cursor(10837): info.guardianproject.database.sqlcipher.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here 12-29 11:37:54.329: E/Cursor(10837): at info.guardianproject.database.sqlcipher.SQLiteCursor.&lt;init&gt;(SQLiteCursor.java:225) 12-29 11:37:54.329: E/Cursor(10837): at info.guardianproject.database.sqlcipher.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:53) 12-29 11:37:54.329: E/Cursor(10837): at info.guardianproject.database.sqlcipher.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1410) 12-29 11:37:54.329: E/Cursor(10837): at info.guardianproject.database.sqlcipher.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1289) 12-29 11:37:54.329: E/Cursor(10837): at info.guardianproject.database.sqlcipher.SQLiteDatabase.query(SQLiteDatabase.java:1243) 12-29 11:37:54.329: E/Cursor(10837): at info.guardianproject.database.sqlcipher.SQLiteDatabase.query(SQLiteDatabase.java:1325) 12-29 11:37:54.329: E/Cursor(10837): at com.company.appName.DatabaseManager.queryAllItems(DatabaseManager.java:105) </code></pre> <p>I thought that this error would only happen if I forgot to close the <code>Cursor</code> after I was done using it but it seems that I'm getting this error even before I'm able to start using it.</p> <p>Here's the code that's in the <code>queryAllItems()</code> method:</p> <pre><code>public Cursor queryAllItems() { return database.query(DATABASE_TABLE, new String[] {KEY_ID, KEY_DATA}, null, null, null, null, null); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload