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 #1882 (closed defect: fixed)

Opened 2013-05-20T16:05:14-05:00

Last modified 2013-05-22T10:32:42-05:00

Program exit not working well on scifio-cells branch

Reported by: bdezonia Owned by: hinerm
Priority: major Milestone: imagej2-b7-ndim-data
Component: Analysis Plugins Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1563

Description

On the scifio-cells branch if you open an image the program will not shut down correctly. Likely the file choosing dialog is not disposing itself. Hinerm let's talk if you don't get this bug report.

Change History

comment:1 Changed 2013-05-20T16:51:54-05:00 by bdezonia

Okay, it's not clear what is going on. If you set planar == true on line 166 of DefaultIOService the program exits fine. If planar == false then program does not exit. The JFileChooser being used in AbstractSwingUI has no way to inform dispose behavior and should be unaffected by the planar flag setting. Is it a difference in how the two opening paths (planarImg vs. cellImg) interact with the StatusListener?

Last edited 2013-05-20T16:58:27-05:00 by bdezonia

comment:2 Changed 2013-05-21T11:27:19-05:00 by bdezonia

Note that putting code in AbstractSwingUI::dispose() to dispose all windows does NOT fix this issue.

comment:3 Changed 2013-05-21T12:11:54-05:00 by hinerm

This was a problem with Ehcache CacheManagers being created and not shut down properly.

Tentatively fixed here via the use of a caching service:
 https://github.com/scifio/scifio/commit/0e7e4f92e3baaebb0ee2f9cd43fc4bd89913ae75

comment:4 Changed 2013-05-22T10:32:42-05:00 by bdezonia

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

Tested as fixed.