mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 12:56:59 +00:00
[GH-ISSUE #2504] [Bug] Missing pages and documents #1079
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#1079
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @izissise on GitHub (May 10, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2504
Bug Description
I used Appflowy for 2 or 3 weeks without restarting the application.
Today I restarted it, and most of the pages are missing on the side panel, the pages that are here have the latest data.
I have a backup of the sqlite database before quitting AppFlowy, I can find text from missing pages when selecting
document_rev_snapshottable .So the data seems to be here, but isn't show, is there a way to have more logs on eventual error in the program?
How to Reproduce
Use AppFlowy for an extended period of time 2/3 weeks
Expected Behavior
Everything show up
Operating System
Linux
AppFlowy Version(s)
AppFlowy_x86_64-unknown-linux-gnu_ubuntu-18.04.tar.gz to 0.1.2 flathub commit 002cdf13925d5e54a5b1e52a92667449c751d5538e74dabd38d4436a8830f8b3
Screenshots
No response
Additional Context
It seems to me that the pages list has some kind deserialization error stopping the process midway leaving only pages before the one that crash
@Xazin commented on GitHub (May 10, 2023):
I'm not sure if you have personal/private things in your workspace, otherwise if you can share your workspace zipped, then maybe someone can try to debug it in a development environment.
If not, it might take longer time for discovery, since without a reproducible sample it's impossible for anyone else to debug it.
@izissise commented on GitHub (May 10, 2023):
I think, I've found the issue, here is what I've done:
Some weird corruption is happening, not sure how I can fix it
Line 25 in full as an example https://pastebin.com/U6P7Wujw
@izissise commented on GitHub (May 10, 2023):
We some effort I've been able to recreate the last entry in
folder_rev_snapshotby carefully recreating the json with the other entry, using sqlite3 cli to remove all others entry and update the last one with the fixed json. Hopefully this won't happen again@appflowy commented on GitHub (May 11, 2023):
@izissise Thanks for trying. We are currently refactoring the data structure in the development branch. We are replacing the SQLite database with a key/value database, which means that the document data structure will be completely different. We anticipate that after the refactoring is completed, AppFlowy will become more robust.