[Bug] ServerBox 无法启动

Open
#1,860 1 comment 1 reaction 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
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
dart, flutter, sqlite
Domain
database, mobile

Research direction

Start with the attached app.log and the SQLite opening path in fl_lib/src/core/store/sqlite.dart, especially _open and openDatabase; trace how Stores.init in server_box/data/res/store.dart initializes the database. Determine why SQLite reports a disk I/O error while querying sqlite_master on startup. Done means identifying a reproducible cause and confirming the app starts successfully after the relevant fix.

Written by the indexing model from the issue text.

Description

bug invalid

描述 Bug

SqliteException(1546): while preparing statement, disk I/O error, disk I/O error (code 1546)
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:230)

#6 SqliteDb.open. (package:fl_lib/src/core/store/sqlite.dart:183)

#7 SqliteStore.openDatabase (package:fl_lib/src/core/store/sqlite.dart:456)

#8 Stores.init (package:server_box/data/res/store.dart:124)

#9 _openStores (package:server_box/main.dart:244)

#10 _initData (package:server_box/main.dart:328)

#11 _initApp (package:server_box/main.dart:226)

#12 main. (package:server_box/main.dart:57)

#13 _runInZone (package:server_box/main.dart:90)

#14 main (package:server_box/main.dart:51)

复现步骤

打开应用弹出

期望结果

实际结果

截图

Image

设备

更多信息

https://github.com/user-attachments/files/34346674/app.log

Dominant language
Dart
Stars
9k
Forks
577
Avg merge
6h 26m
Merged PRs (30d)
142

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.