gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Application crash on startup when trying to list projects

Open niceFont opened this issue 2 years ago • 2 comments

Hello, I am currently facing an issue when trying to open the application after I restarted my computer. It says that it fails trying to list my projects. I am running the latest version on Pop!_OS 22.04 LTS.

image

niceFont avatar Feb 19 '24 10:02 niceFont

Hi! Did you run into this issue again? How are you launching the application?

Do you have some steps I can use to reproduce the crash?

alabhyajindal avatar Feb 27 '24 16:02 alabhyajindal

I was not able to reproduce it unfortunately. For some reason my projects.json was suddenly empty, maybe something caused it to fail while updating. I fixed it by just deleting everything from .local/share/com.gitbutler.app and reinstalling.

niceFont avatar Feb 29 '24 09:02 niceFont

Thanks for reporting!

Currently the application writes this file directly, which can leave it half-written or empty for that matter if the app is killed in just the right time.

A solution would be to write a new file, and move it into place when done as this would make the write atomic.

Byron avatar Apr 21 '24 19:04 Byron