Skip to content

A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks. #41

@long1eu

Description

@long1eu

I keep getting this error because I'm not closing the db. But I don't want to close and open it again and again. How can I stop this error from logs.

W/SQLite: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
                                                          java.lang.Throwable: Explicit termination method 'close' not called
                                                              at io.requery.android.database.sqlite.CloseGuard.open(CloseGuard.java:188)
                                                              at io.requery.android.database.sqlite.SQLiteConnection.<init>(SQLiteConnection.java:183)
                                                              at io.requery.android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:204)
                                                              at io.requery.android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:467)
                                                              at io.requery.android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:188)
                                                              at io.requery.android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:180)
                                                              at io.requery.android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:827)
                                                              at io.requery.android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:796)
                                                              at io.requery.android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:699)
                                                              at io.requery.android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:236)
                                                              at io.requery.android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:170)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions