GitJournal / GitJournal/GitJournal
Note is cleared on app load
- Dominant language
- Dart
- Stars
- 4.2k
- Forks
- 308
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I've seen this symptom twice now, where when I open the app, the first note (whatever it happens to be) is completely cleared and replaced with empty content (no title, no file body). This results in an empty note at the top of the note list where I know the most recent note should be. The behavior is non-deterministic but happens maybe one out of every 20 to 50 (or maybe 100) opens of the app based on my usage and the time frame in which it occurred.
If I immediately close the app and uninstall/reinstall, and reload the repository, things are fine and my data is restored. But I didn't realize this the first time and tried to sync the app, and it created a commit where it wiped the contents of the file and pushed that up to the Git repository. I'm pretty sure I tried killing the app in the Android task manager first and that didn't help, whatever state the app was tracking was already corrupted at that point. I had to go into the Git repo and manually push a revert commit to get it back. (For the record, I just went back in my Git history to check, and the file was not deleted, but replaced with an empty, zero-byte file.) I have the Git foo to do this, but other users might not, so while it's good that GitJournal always has a safety fallback (no data is ever truly gone), it would be better to avoid this in the first place.
I'm on Android with app version 1.85.2+3617. The first time I saw this behavior was on December 7, 2022, but I also saw it just a week ago or so. Happy to provide any other context that's required.
Thanks for GitJournal!
Contributor guide
Assessment
This issue has not been assessed yet.