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

Releasing statement in a finalizer. Please ensure that you explicitly call close() on your cursor #409

Closed
zoff99 opened this issue May 21, 2017 · 1 comment

Comments

@zoff99
Copy link
Contributor

zoff99 commented May 21, 2017

i am getting lots of these with 5.0.0-rc1 with encrypted database

###/com.zoffcc.applications.trifa W/SQLiteCompiledSql: Releasing statement in a finalizer. Please ensure that you explicitly call close() on your cursor: INSERT INTO `table`....
net.sqlcipher.database.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here
at net.sqlcipher.database.SQLiteCompiledSql.<init>(SQLiteCompiledSql.java:62)
 at net.sqlcipher.database.SQLiteProgram.<init>(SQLiteProgram.java:109)
 at net.sqlcipher.database.SQLiteStatement.<init>(SQLiteStatement.java:39)
at net.sqlcipher.database.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1589)
at com.github.gfx.android.orma.encryption.EncryptedDatabase.compileStatement(EncryptedDatabase.java:59)
at com.github.gfx.android.orma.Inserter.<init>(Inserter.java:56)
at com.zoffcc.applications.trifa.OrmaDatabase.prepareInsertIntoMessage(OrmaDatabase.java:307)
at com.zoffcc.applications.trifa.OrmaDatabase.prepareInsertIntoMessage(OrmaDatabase.java:290)
at com.zoffcc.applications.trifa.OrmaDatabase.insertIntoMessage(OrmaDatabase.java:282)
@gfx
Copy link
Member

gfx commented May 23, 2017

Thanks for the report. Fixed in #413, which is included in v5.0.0-rc3.

@gfx gfx closed this as completed May 23, 2017
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