Skip to content

Instantly share code, notes, and snippets.

@realdadfish
Created November 11, 2015 12:52
Show Gist options
  • Save realdadfish/3f6eb326ae1f2f74de49 to your computer and use it in GitHub Desktop.
Save realdadfish/3f6eb326ae1f2f74de49 to your computer and use it in GitHub Desktop.
StrictMode E A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
E java.lang.Throwable: Explicit termination method 'close' not called
E at dalvik.system.CloseGuard.open(CloseGuard.java:184)
E at android.database.CursorWindow.<init>(CursorWindow.java:168)
E at android.database.CursorWindow.<init>(CursorWindow.java:127)
E at android.database.AbstractWindowedCursor.generateNewWindowCursor(AbstractWindowedCursor.java:195)
E at android.database.AbstractWindowedCursor.clearOrCreateWindow(AbstractWindowedCursor.java:210)
E at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:165)
E at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:159)
E at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:197)
E at nl.qbusict.cupboard.QueryResultIterable.iterator(QueryResultIterable.java:45)
...
E Finalizing a Cursor that has not been deactivated or closed. database = /data/data/de.payback.app.dsa.debug/databases/db.db, table = 'Co
upon', query = SELECT * FROM 'Coupon'
E android.database.sqlite.DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here
E at android.database.sqlite.SQLiteCursor.<init>(SQLiteCursor.java:114)
E at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:53)
E at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1379)
E at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1226)
E at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1097)
E at nl.qbusict.cupboard.DatabaseCompartment.query(DatabaseCompartment.java:431)
E at nl.qbusict.cupboard.DatabaseCompartment.access$000(DatabaseCompartment.java:51)
E at nl.qbusict.cupboard.DatabaseCompartment$QueryBuilder.query(DatabaseCompartment.java:580)
E at nl.nl2312.rxcupboard.RxDatabase.query(RxDatabase.java:143)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment