打开报错
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reading SqliteDb._open in fl_lib/src/core/store/sqlite.dart around line 123 and the initialization path in server_box/data/res/store.dart around line 124. The stack trace shows SQLite rejects the database while running SELECT count(*) FROM sqlite_master; inspect the attached app.log and determine how the database file became invalid. Done means identifying and addressing the cause so the app can open its database.
Written by the indexing model from the issue text.
Description
SqliteException(26): while preparing statement, file is not a database, file is not a database (code 26)
Causing statement: SELECT count(*) FROM sqlite_master;
#0 throwException (package:sqlite3/src/implementation/exception.dart:101)
#1 DatabaseImplementation._prepareInternal (package:sqlite3/src/implementation/database.dart:378)
#2 DatabaseImplementation.prepare (package:sqlite3/src/implementation/database.dart:449)
#3 FfiDatabaseImplementation.prepare (package:sqlite3/src/ffi/implementation.dart:161)
#4 DatabaseImplementation.select (package:sqlite3/src/implementation/database.dart:477)
#5 SqliteDb._open (package:fl_lib/src/core/store/sqlite.dart:123)
#6 SqliteDb.open. (package:fl_lib/src/core/store/sqlite.dart:101)
#7 SqliteStore.openDatabase (package:fl_lib/src/core/store/sqlite.dart:310)
#8 Stores.init (package:server_box/data/res/store.dart:124)
#9 _initData (package:server_box/main.dart:269)
#10 _initApp (package:server_box/main.dart:222)
#11 main. (package:server_box/main.dart:53)
#12 _runInZone (package:server_box/main.dart:86)
#13 main (package:server_box/main.dart:47)
- Dominant language
- Dart
- Stars
- 8.9k
- Forks
- 573
- Avg merge
- 2h 11m
- Merged PRs (30d)
- 145
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
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.
More from lollipopkit/flutter_server_box
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 58/100
lollipopkit/flutter_server_box#1808 · 4 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
lollipopkit/flutter_server_box#1807 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 36/100
lollipopkit/flutter_server_box#1798 · 3 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
enhancement lib
Difficulty 4/5 3-5 days Newbie friendliness 48/100
lollipopkit/flutter_server_box#1773 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
feature
Difficulty 4/5 3-5 days Newbie friendliness 48/100
lollipopkit/flutter_server_box#1772 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
All issues in lollipopkit/flutter_server_box
Similar issues
-
priority: high scope: frontend type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
GonsiorHack/czyPrzejade#15 ·
-
fix: jaspr serve keyboard shortcuts (r/R/l/d/q) don't work on WindowsPossibly taken @lewinpauli claimed this today. Openbug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 3 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
berkmancenter/frankly#729 ·
Maintainers usually reply within 1 day
-
ORMOpenBackend SW VTA
Difficulty 2/5 1-3 hours Newbie friendliness 61/100
aau-giraf/visual-tangible-artefacts#376 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day