Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All notes has been removed after the app restart #50

Open
TheBestTvarynka opened this issue Oct 25, 2024 · 4 comments
Open

All notes has been removed after the app restart #50

TheBestTvarynka opened this issue Oct 25, 2024 · 4 comments
Labels
bug Something isn't working tauri-backend Any changes related to the tauri backend part of the app

Comments

@TheBestTvarynka
Copy link
Owner

Sometimes after the app restart, I can get an emty app:

image

It looks like all the data has been deleted or something. If I look at the db folder, then I will find that the FB file is empty:

image

I don't know why and what the reason is.

@TheBestTvarynka TheBestTvarynka added bug Something isn't working tauri-backend Any changes related to the tauri backend part of the app labels Oct 25, 2024
@TheBestTvarynka
Copy link
Owner Author

TheBestTvarynka commented Oct 25, 2024

hmmm, it looks like this one may be related to this issue: PoloDB/PoloDB#137
but I still don't know why and it happens very rarely... 🤔

@TheBestTvarynka
Copy link
Owner Author

TheBestTvarynka commented Oct 25, 2024

Now I cannot create any new spaces or notes... It is weird...
Only if I delete db files manually, I'll be able to create new spaces successfully...
Now I cannot reproduce it again...

hm. The polodb version has not been changed. Cargo.lock file hasn't been touched since October 16:

image

@TheBestTvarynka
Copy link
Owner Author

TheBestTvarynka commented Oct 25, 2024

I assumed that maybe it was caused by force quit or process kill. I tried to kill the app with Task Manager, tried to restart/shut down my laptop while running the app, and so on. I didn't manage to reproduce this issue. It is weird... 🤔

@TheBestTvarynka
Copy link
Owner Author

TheBestTvarynka commented Oct 26, 2024

During the migration to Tauri 2, I added the following line of code:
https://github.com/TheBestTvarynka/Dataans/pull/52/files#diff-e2609b8ec57c998ad48a8e195cd213daf83bfc838ed2ef2687dc79e8aad70952R120

app.cleanup_before_exit();

I hope it will fix this issue. I'll close this issue if I do not face this bug in the next few months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tauri-backend Any changes related to the tauri backend part of the app
Projects
None yet
Development

No branches or pull requests

1 participant