Ticket #799 (assigned defect)

Opened 8 months ago

Last modified 3 months ago

IJ2 Convert to Mask throws exception

Reported by: bdezonia Owned by: curtis
Priority: major Milestone: imagej-2.0.0-beta3
Component: ij-ui Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

Testing with r3983. Open Blobs (8-bit) or M51 galaxy (16-bit). Run IJ2's version of Convert To Mask. Enter 100 as the threshold value. Exception is thrown.

[ERROR] Module threw exception
java.lang.NullPointerException

at imagej.data.display.AbstractOverlayView.<init>(AbstractOverlayView.java:55)
at imagej.ui.swing.display.SwingOverlayView.<init>(SwingOverlayView.java:98)
at imagej.ui.swing.display.SwingOverlayView.<init>(SwingOverlayView.java:84)
at imagej.ui.swing.sdi.display.SwingImageDisplay.display(SwingImageDisplay.java:108)
at imagej.data.display.AbstractImageDisplay.display(AbstractImageDisplay.java:205)
at imagej.ext.display.DisplayService.createDisplay(DisplayService.java:226)
at imagej.ext.display.DisplayPostprocessor.handleOutput(DisplayPostprocessor.java:99)
at imagej.ext.display.DisplayPostprocessor.process(DisplayPostprocessor.java:66)
at imagej.ext.module.ModuleRunner.postProcess(ModuleRunner.java:108)
at imagej.ext.module.ModuleRunner.run(ModuleRunner.java:150)
at imagej.ext.module.ModuleRunner.call(ModuleRunner.java:118)
at imagej.ext.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:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

Change History

comment:1 Changed 8 months ago by bdezonia

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

Curtis, this trace goes through some deprecated calls. Basically AbstractOverlayView assumes a given overlay has an active dataset view associated with it when in this case it does not. Not sure how the deprecation fits in here. Can you look over and reassign if needed?

comment:2 Changed 3 months ago by curtis

  • Milestone changed from imagej-2.0-beta1 to imagej-2.0-beta2
Note: See TracTickets for help on using tickets.