Ticket #1882 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

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 6 years ago 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 6 years ago by bdezonia (previous) (diff)

comment:2 Changed 6 years ago by bdezonia

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

comment:3 Changed 6 years ago 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 6 years ago by bdezonia

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

Tested as fixed.

Note: See TracTickets for help on using tickets.