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 #703 (closed defect: moved)

Opened 2011-07-29T16:28:23-05:00

Last modified 2013-03-21T11:33:40-05:00

Race condition when repainting image canvas

Reported by: curtis Owned by: curtis
Priority: trivial Milestone: imagej-2.0.0
Component: Display API Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1500


Exception in thread "AWT-EventQueue-0" java.util.ConcurrentModificationException
	at java.util.LinkedList$ListItr.checkForComodification(
	at java.util.LinkedList$
	at java.util.Collections$UnmodifiableCollection$
	at org.jhotdraw.draw.DefaultDrawingView.drawHandles(
	at org.jhotdraw.draw.DefaultDrawingView.paintComponent(
	at javax.swing.JComponent.paint(
	at org.jhotdraw.draw.DefaultDrawingView.paint(
	at javax.swing.JComponent._paintImmediately(
	at javax.swing.JComponent.paintImmediately(
	at javax.swing.RepaintManager.paintDirtyRegions(
	at javax.swing.RepaintManager.paintDirtyRegions(
	at javax.swing.RepaintManager.seqPaintDirtyRegions(
	at javax.swing.SystemEventQueueUtilities$
	at java.awt.event.InvocationEvent.dispatch(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$000(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(

Threading issues can be difficult to replicate, but I can generally reproduce this exception on my system by opening Blobs, drawing a large rectangle overlay from the center of the image to far outside the bounds on the bottom right, then mashing Ctrl+Shift+X to repeatedly crop as fast as possible.

Change History

comment:1 Changed 2012-01-26T12:44:50-06:00 by curtis

  • Owner changed from gharris to curtis

comment:2 Changed 2013-03-21T11:33:40-05:00 by bdezonia

  • Blocking 1500 added

comment:3 Changed 2014-12-18T12:47:57-06:00 by curtis

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