Ticket #761 (closed defect: fixed)

Opened 9 years ago

Last modified 8 years ago

Selection > Make Inverse throws exception

Reported by: afraser Owned by: dscho
Priority: major Milestone: imagej2-b4-plugins
Component: Legacy Compatibility Version:
Severity: serious Keywords: Make Inverse
Cc: Blocked By:
Blocking: #1011


Create a new image and draw an overlay in it, then choose Edit > Selection > Make Inverse. The feature appears to sort-of work, but the resultant overlay cannot be moved and it throws the following exception.

Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException

at java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:782)
at imagej.ui.swing.display.SwingDisplayPanel.createSliders(SwingDisplayPanel.java:399)
at imagej.ui.swing.display.SwingDisplayPanel.access$1(SwingDisplayPanel.java:322)
at imagej.ui.swing.display.SwingDisplayPanel$1.run(SwingDisplayPanel.java:193)
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 imagej.ui.common.awt.AWTKeyEventDispatcherGlobal.dispatchEvent(AWTKeyEventDispatcherGlobal.java:92)
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 8 years ago by curtis

  • Blocking 1011 added

comment:2 Changed 8 years ago by curtis

  • Owner changed from curtis to dscho
  • Status changed from new to assigned

comment:3 Changed 8 years ago by dscho

It appears that this does not happen anymore.

But it does not work correctly either: instead of showing an overlay with a hole (and handles so you could move things), it shows some kind of red-transparent overlay (similar to IJ1's threshold, which is not transparent though) and no handles, and a subsequent Make Inverse claims that there is no area selection.

comment:4 Changed 8 years ago by curtis

See also #878.

comment:5 Changed 8 years ago by curtis

  • Milestone changed from imagej-2.0-beta1 to imagej-2.0-beta2

Finishing this work will have to wait till beta2, as we are too short on time.

comment:6 Changed 8 years ago by curtis

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

comment:7 Changed 8 years ago by dscho

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

comment:8 Changed 8 years ago by dscho

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

This is fixed with the addition of composite ROIs.

comment:9 Changed 8 years ago by curtis

  • Milestone changed from imagej-2.0.0-beta5 to imagej-2.0.0-beta4
Note: See TracTickets for help on using tickets.