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

Cryptic error message if accounts.lock is locked #6636

Open
Hocuri opened this issue Mar 10, 2025 · 1 comment
Open

Cryptic error message if accounts.lock is locked #6636

Hocuri opened this issue Mar 10, 2025 · 1 comment
Labels
bug Something is not working

Comments

@Hocuri
Copy link
Collaborator

Hocuri commented Mar 10, 2025

How this happened to me:

Due to some bug deltachat/deltachat-desktop#4748, DC Desktop crashed but the accounts.lock stayed locked.

How DC Desktop crashed

I don't remember exactly what I did, but it was something along these lines:

  • Click "+" for new account
  • Press ESC
  • Try to select another account
  • -> DC Desktop is completely frozen
  • I closed DC

But when I try to reproduce this, everything works fine.

Steps to reproduce:

  • Lock the accounts.lock file using flock /home/.../DeltaChat/accounts/accounts.lock --command "sleep 1000"
  • Try to open Delta Chat

Actual behavior:

Image

Expected behavior:

A nice error message should be shown.

Possible solutions:

  • Make the error message nicer
  • Remove the locking of accounts.lock (this would also get us rid of one dependency, fd-lock) (see create_lock_task() in accounts.rs)
@Hocuri Hocuri added the bug Something is not working label Mar 10, 2025
@Simon-Laux
Copy link
Contributor

issue on desktop repo for reference: deltachat/deltachat-desktop#4748

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working
Projects
None yet
Development

No branches or pull requests

2 participants