Ticket #799 (closed defect: fixed)

Opened 8 years ago

Last modified 6 years ago

IJ2 Convert to Mask throws exception

Reported by: bdezonia Owned by: curtis
Priority: major Milestone: imagej2-b7-ndim-data
Component: UI Framework Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1563

Description (last modified by bdezonia) (diff)

Testing with 6400e57b4d0356fa4d894824ed5784e46030b05b. 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 years 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 7 years ago by curtis

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

comment:3 Changed 7 years ago by curtis

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

comment:4 Changed 7 years ago by bdezonia

  • Description modified (diff)

Using beta 3 with blobs and threshold == 100 I get a different exception nowadays:

[ERROR] Module threw exception
java.lang.IllegalStateException: Invalid combination of views

at imagej.data.display.DefaultImageDisplay.rebuild(DefaultImageDisplay.java:151)
at imagej.data.display.DefaultImageDisplay.display(DefaultImageDisplay.java:243)
at imagej.ext.display.DefaultDisplayService.createDisplay(DefaultDisplayService.java:219)
at imagej.ext.display.DisplayPostprocessor.handleOutput(DisplayPostprocessor.java:101)
at imagej.ext.display.DisplayPostprocessor.process(DisplayPostprocessor.java:68)
at imagej.ext.module.ModuleRunner.postProcess(ModuleRunner.java:109)
at imagej.ext.module.ModuleRunner.run(ModuleRunner.java:169)
at imagej.ext.module.ModuleRunner.call(ModuleRunner.java:119)
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)

comment:5 Changed 7 years ago by dscho

  • Blocking 1331 added

comment:6 Changed 7 years ago by bdezonia

  • Blocking 1459 added; 1331 removed
  • Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0-beta5

comment:7 Changed 7 years ago by bdezonia

  • Milestone changed from imagej2-b7-ndim-data to imagej2-b8-analysis

comment:8 Changed 6 years ago by bdezonia

  • Priority changed from major to review

comment:9 Changed 6 years ago by bdezonia

  • Priority changed from review to major

comment:10 Changed 6 years ago by bdezonia

  • Status changed from assigned to reviewing

comment:11 Changed 6 years ago by bdezonia

  • Status changed from reviewing to closed
  • Resolution set to fixed
  • Blocking 1563 added; 1459 removed
  • Milestone changed from imagej2-b8-analysis to imagej2-b7-ndim-data

The code around this has changed such that this error cannot be replicated. Closiing.

Note: See TracTickets for help on using tickets.