Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

打开报错

Open
#1,784 11 comments 2 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
dart, flutter, sqlite
Domain
database, mobile

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

bug invalid

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)

app.log

Dominant language
Dart
Stars
8.9k
Forks
573
Avg merge
2h 11m
Merged PRs (30d)
145

Getting set up

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.

More from lollipopkit/flutter_server_box

All issues in lollipopkit/flutter_server_box

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.