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

Opened 2011-12-10T05:43:14-06:00

Last modified 2012-11-21T11:49:05-06:00

Exception when running Image > Type > 8-bit color

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b6-legacy
Component: UI Framework Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1570

Description

Open clowns. Run Image > Type > 8 bit color. Image translation works and displays correctly. In the console an exception is thrown.

[ERROR] Exception during event handling:

[Event] imagej.data.event.DatasetRGBChangedEvent
context = 0
consumed = false
object = clown.jpg
[Subscriber] imagej.ui.swing.sdi.display.SwingSdiImageDisplay@7dfc8ae7
[Method] protected void imagej.data.display.AbstractImageDisplay.onEvent(imagej.data.event.DataUpdatedEvent)

java.lang.ArrayIndexOutOfBoundsException: 2

at net.imglib2.img.ImgPlus.axis(ImgPlus.java:262)
at imagej.data.DefaultDataset.axis(DefaultDataset.java:328)
at imagej.data.CombinedInterval.axis(CombinedInterval.java:170)
at imagej.data.CombinedInterval.axes(CombinedInterval.java:176)
at imagej.data.CombinedInterval.getAxes(CombinedInterval.java:133)
at imagej.data.display.AbstractImageDisplay.getAxes(AbstractImageDisplay.java:218)
at imagej.data.display.AbstractImageDisplay.update(AbstractImageDisplay.java:204)
at imagej.data.display.AbstractImageDisplay.onEvent(AbstractImageDisplay.java:531)
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at imagej.event.EventService$ProxySubscriber.onEvent(EventService.java:233)
at imagej.event.EventService$ProxySubscriber.onEvent(EventService.java:1)
at org.bushe.swing.event.ThreadSafeEventService.publish(ThreadSafeEventService.java:971)
at org.bushe.swing.event.SwingEventService.access$001(SwingEventService.java:31)
at org.bushe.swing.event.SwingEventService$1.run(SwingEventService.java:88)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:638)
at java.awt.EventQueue$1.run(EventQueue.java:636)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)
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-12-10T05:55:42-06:00 by bdezonia

Curtis, this seems to be a fallout from your latest work on combined intervals and other refactoring.

comment:2 Changed 2012-06-25T14:03:23-05:00 by curtis

  • Blocking 1245 added
  • Milestone changed from imagej-2.0.0-beta3 to imagej-2.0.0-beta4

comment:3 Changed 2012-08-03T10:46:12-05:00 by bdezonia

Some issue still exists. Newer exception:

java.lang.ArrayIndexOutOfBoundsException: 2

at net.imglib2.img.ImgPlus.axis(ImgPlus.java:281)
at imagej.data.DefaultDataset.axis(DefaultDataset.java:356)
at imagej.data.CombinedInterval.axis(CombinedInterval.java:170)
at imagej.data.CombinedInterval.axes(CombinedInterval.java:176)
at imagej.data.CombinedInterval.getAxes(CombinedInterval.java:133)
at imagej.data.display.DefaultImageDisplay.getAxes(DefaultImageDisplay.java:263)
at imagej.data.display.DefaultImageDisplay.update(DefaultImageDisplay.java:249)
at imagej.data.display.DefaultImageDisplay.onEvent(DefaultImageDisplay.java:597)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at imagej.event.DefaultEventService$ProxySubscriber.onEvent(DefaultEventService.java:228)
at imagej.event.DefaultEventService$ProxySubscriber.onEvent(DefaultEventService.java:1)
at org.bushe.swing.event.ThreadSafeEventService.publish(ThreadSafeEventService.java:971)
at imagej.event.DefaultEventBus.access$1(DefaultEventBus.java:1)
at imagej.event.DefaultEventBus$1.run(DefaultEventBus.java:200)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:682)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:643)
at java.awt.EventQueue$1.run(EventQueue.java:641)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:652)
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)

comment:4 Changed 2012-08-03T13:48:23-05:00 by curtis

  • Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0-beta5

comment:5 Changed 2012-11-07T14:18:46-06:00 by bdezonia

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

Fixed with commit ebf1135bb18ed3631aa8da66a9518d88ae0bdcba

comment:6 Changed 2012-11-07T14:19:09-06:00 by bdezonia

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:7 Changed 2012-11-07T14:19:24-06:00 by bdezonia

  • Owner changed from curtis to bdezonia
  • Status changed from reopened to assigned

comment:8 Changed 2012-11-07T14:19:31-06:00 by bdezonia

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

comment:9 Changed 2012-11-21T09:59:39-06:00 by bdezonia

  • Blocking 1570 added; 1245 removed

comment:10 Changed 2012-11-21T11:49:05-06:00 by bdezonia

  • Milestone changed from imagej-2.0.0-beta7 to imagej-2.0.0-beta6