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

Opened 2013-03-15T14:30:09-05:00

Last modified 2013-03-19T11:36:03-05:00

Exception when exiting ImageJ2

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

Description

If you have two or more images open in IJ2 and you exit the program you get an exception and ImageJ does not terminate.

Exception:

[ERROR] java.util.ConcurrentModificationException

at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at imagej.ui.DefaultUIService.dispose(DefaultUIService.java:411)
at org.scijava.Context.dispose(Context.java:290)
at imagej.core.commands.app.QuitProgram.run(QuitProgram.java:88)
at imagej.command.CommandModule.run(CommandModule.java:163)
at imagej.module.ModuleRunner.run(ModuleRunner.java:169)
at imagej.module.ModuleRunner.call(ModuleRunner.java:126)
at imagej.module.ModuleRunner.call(ModuleRunner.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:680)

Change History

comment:1 Changed 2013-03-19T11:36:03-05:00 by bdezonia

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

Fixed with commit b7d201a74abb915fa0d4f5ffc296dad79d6ed188