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

Opened 2011-04-28T17:53:20-05:00

Last modified 2011-04-29T10:41:07-05:00

Incrementing sliders can cause runtime exceptions

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej-2.0-alpha2
Component: Display API Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

Load Organ Of Corti sample image. Leave channel slider alone. Increment the Z slider approximatley 4 times. An exception is thrown.

Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: Index: 195, Size: 60

at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at net.imglib2.img.planar.PlanarImg.update(PlanarImg.java:133)
at net.imglib2.img.planar.PlanarImg.update(PlanarImg.java:1)
at net.imglib2.type.numeric.integer.GenericShortType.updateContainer(GenericShortType.java:68)
at net.imglib2.img.planar.PlanarRandomAccess.setPosition(PlanarRandomAccess.java:227)
at net.imglib2.display.CompositeXYProjector.map(CompositeXYProjector.java:107)
at imagej.display.DatasetView.setPosition(DatasetView.java:193)
at imagej.ui.swing.display.SwingDisplayWindow$2.adjustmentValueChanged(SwingDisplayWindow.java:204)
at javax.swing.JScrollBar.fireAdjustmentValueChanged(JScrollBar.java:675)
at javax.swing.JScrollBar.access$100(JScrollBar.java:64)
at javax.swing.JScrollBar$ModelListener.stateChanged(JScrollBar.java:697)
at javax.swing.DefaultBoundedRangeModel.fireStateChanged(DefaultBoundedRangeModel.java:348)
at javax.swing.DefaultBoundedRangeModel.setRangeProperties(DefaultBoundedRangeModel.java:285)
at javax.swing.DefaultBoundedRangeModel.setValue(DefaultBoundedRangeModel.java:151)
at javax.swing.JScrollBar.setValue(JScrollBar.java:446)
at com.apple.laf.AquaScrollBarUI.scrollByUnit(AquaScrollBarUI.java:202)
at com.apple.laf.AquaScrollBarUI$TrackListener.mousePressedInArrows(AquaScrollBarUI.java:342)
at com.apple.laf.AquaScrollBarUI$TrackListener.mousePressed(AquaScrollBarUI.java:267)
at java.awt.Component.processMouseEvent(Component.java:6371)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6139)
at java.awt.Container.processEvent(Container.java:2085)
at java.awt.Component.dispatchEventImpl(Component.java:4736)
at java.awt.Container.dispatchEventImpl(Container.java:2143)
at java.awt.Component.dispatchEvent(Component.java:4566)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4621)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4279)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
at java.awt.Container.dispatchEventImpl(Container.java:2129)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4566)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:680)
at java.awt.EventQueue.access$000(EventQueue.java:86)
at java.awt.EventQueue$1.run(EventQueue.java:639)
at java.awt.EventQueue$1.run(EventQueue.java:637)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:653)
at java.awt.EventQueue$2.run(EventQueue.java:651)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:650)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Change History

comment:1 Changed 2011-04-29T10:41:07-05:00 by curtis

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

Fixed in 8745867e16f606aed5023270eef0330ebeaed795.