NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #2019 (closed defect: fixed)

Opened 2013-10-29T16:15:18-05:00

Last modified 2013-10-30T09:45:19-05:00

Legacy plugins run and run

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b8-analysis
Component: Legacy Compatibility Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1457

Description

If you put print statements into LegacyCommand you can see that if you open a sample image the command gets stuck for a long time in waitForPluginThreads(). Using reportThreads() you can see that some SciJava thread is stuck in TIMED_WAITING (I believe). Determine why things are very slow to terminate and possibly add thread to whitelisted().

Note that this issue is problematic. For instance open a sample image. Then run a pure IJ2 command on it that changes pixels (like the new MakeBinary command). Now wait a while, original legacy command terminates, and data harmonization happens messing up pixels.

ANother note: changing the StatusService from pubishLater() to publish() has no effect on this bug. So this is likely not a consequence of Lee's changes for asynch status events.

Change History

comment:1 Changed 2013-10-30T09:45:19-05:00 by bdezonia

  • Status changed from new to closed
  • Resolution set to fixed

Fixed with commit ba870c2514771b3e039cee4a44d796e89d9e2f3a