Ticket #1295 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Exception error in Plot Z Profile

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b4-plugins
Component: Legacy Compatibility Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1345

Description (last modified by bdezonia) (diff)

Plot Z Profile works in general. But there is a sequence of events that throws an exception in the legacy layer

Open Organ Of Corti
Run Image > Stacks > Plot Z Profile

Open Organ Of Corti
Run Image > Stacks > 3d Project and use all default settings
Close results from previous command
Run Image > Stacks > Plot Z Profile on original image
Exception thrown:

[ERROR] Uncaught exception in thread Thread[plugin thread,6,plugin thread group]
java.lang.IllegalArgumentException: Pixel array is null

at ij.ImageStack.getProcessor(ImageStack.java:260)
at imagej.legacy.translate.LegacyUtils.isBinary(LegacyUtils.java:415)
at imagej.legacy.translate.Harmonizer.updateLegacyImage(Harmonizer.java:118)
at imagej.legacy.plugin.LegacyPlugin$LegacyPluginThread.updateImagePlusesFromDisplays(LegacyPlugin.java:338)
at imagej.legacy.plugin.LegacyPlugin$LegacyPluginThread.run(LegacyPlugin.java:179)

Change History

comment:1 Changed 8 years ago by bdezonia

  • Description modified (diff)

comment:2 Changed 8 years ago by bdezonia

  • Blocking 1345 added

comment:3 Changed 8 years ago by bdezonia

After debugging it is apparent that after calling the legacy plugin there are two displays open and they are each mapped to different ImagePluses but the two ImagePluses share the same ImageStack. Closing one nulls out the image data for the other. Determine why we are reusing an ImageSTack in two ImagePluses.

comment:4 Changed 8 years ago by bdezonia

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

Fixed with commit fef45e2d9d69dcc8d0995f39fff442ef6c51d7e5

Again another legacy layer change that will require testing

Note: See TracTickets for help on using tickets.