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

Opened 2011-09-26T15:03:00-05:00

Last modified 2013-05-28T16:47:02-05:00

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)

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 2011-09-28T16:22:49-05:00 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 2012-02-27T11:00:58-06:00 by curtis

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

comment:3 Changed 2012-07-12T17:01:13-05:00 by curtis

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

comment:4 Changed 2012-07-17T13:30:49-05:00 by bdezonia

  • Description modified

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 2012-07-19T21:23:41-05:00 by dscho

  • Blocking 1331 added

comment:6 Changed 2012-09-07T11:16:11-05:00 by bdezonia

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

comment:7 Changed 2013-01-22T16:43:04-06:00 by bdezonia

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

comment:8 Changed 2013-03-07T13:23:47-06:00 by bdezonia

  • Priority changed from major to review

comment:9 Changed 2013-03-07T13:50:46-06:00 by bdezonia

  • Priority changed from review to major

comment:10 Changed 2013-03-07T15:03:34-06:00 by bdezonia

  • Status changed from assigned to reviewing

comment:11 Changed 2013-05-28T16:47:02-05:00 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.