imagej / imagej/imagej2

You can quit while saving

Open
#119 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.4k
Forks
350
PR merge metrics
No merged PRs in 30d

Description

And if you do, the save gets cut off, since `System.exit(0)` is called.

What a nasty problem. But that's what happens when you forcibly shut down the JVM. We could work around it by adding a shutdown hook which blocks until saving is complete, but that could create its own problems (deadlock, etc.)...

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the System.exit(0) call and tracing how saving completes before shutdown. Determine a safe, agreed shutdown behavior that does not cut off saves, while checking for the deadlock concerns raised in the issue; done means quitting cannot interrupt an active save.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.