imagej / imagej/ImageJ

The check for a running ImageJ instance can block indefinitely.

Open
#137 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
786
Forks
267
PR merge metrics
No merged PRs in 30d

Description

I had a corrupt "/tmp/ImageJ-username-_0-012345.stub" which cause imagej to block indefinitely. The issue happens at line [127 of OtherInstance.java](https://github.com/imagej/imagej1/blob/master/ij/OtherInstance.java#L127)

ImageJInstance instance = (ImageJInstance) new ObjectInputStream(in).readObject();

That method wasn't returning. It's pretty rare, but somewhat obscure when it happens. I had to delete the tmp file and then I could run imagej from the cmd line again.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in ij/OtherInstance.java at line 127, where the ImageJInstance is read from the temporary stub stream. Reproduce the case with a corrupt /tmp/ImageJ-username-_0-012345.stub and trace why the read does not return. Done means a corrupt stub no longer blocks indefinitely and ImageJ can be launched from the command line.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.