litesuits / litesuits/android-lite-orm
android 三星手机打开数据库出问题
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.5k
- Forks
- 359
- PR merge metrics
- No merged PRs in 30d
Description
ava.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteQuery: SELECT * FROM sqlite_master WHERE type='table' ORDER BY name
at android.database.sqlite.SQLiteClosable.acquireReference(SQLiteClosable.java:55)
at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:58)
at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:143)
at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:132)
at com.litesuits.orm.db.assit.Querier.doQuery(Querier.java:27)
at com.litesuits.orm.db.TableManager.initAllTablesFromSQLite(TableManager.java:245)
at com.litesuits.orm.db.TableManager.initSqlTable(TableManager.java:78)
at com.litesuits.orm.db.TableManager.(TableManager.java:73)
at com.litesuits.orm.LiteOrm.openOrCreateDatabase(LiteOrm.java:86)
at com.litesuits.orm.LiteOrm.(LiteOrm.java:75)
at com.litesuits.orm.db.impl.SingleSQLiteImpl.(SingleSQLiteImpl.java:31)
at com.litesuits.orm.db.impl.SingleSQLiteImpl.newInstance(SingleSQLiteImpl.java:36)
at com.litesuits.orm.LiteOrm.newSingleInstance(LiteOrm.java:119)
at com.uns.utils.LiteOrmDBUtil.createDb(LiteOrmDBUtil.java:28)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with LiteOrm.openOrCreateDatabase and TableManager.initAllTablesFromSQLite, following the stack into Querier.doQuery and the SQLiteQuery failure. Reproduce the database-opening failure on the reported Samsung device and verify that opening the database completes without the closed-object exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, sqlite
- Domain
- database, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100