Skip to content

Cryptic error message if accounts.lock is locked #6636

@Hocuri

Description

@Hocuri

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions