litesuits / litesuits/android-lite-orm

android 三星手机打开数据库出问题

Open
#58 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.