Ticket #2019 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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 5 years ago by bdezonia

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

Fixed with commit ba870c2514771b3e039cee4a44d796e89d9e2f3a

Note: See TracTickets for help on using tickets.