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

Opened 2012-07-09T11:59:14-05:00

Last modified 2012-07-27T13:35:47-05:00

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)

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(
at imagej.legacy.translate.LegacyUtils.isBinary(
at imagej.legacy.translate.Harmonizer.updateLegacyImage(
at imagej.legacy.plugin.LegacyPlugin$LegacyPluginThread.updateImagePlusesFromDisplays(
at imagej.legacy.plugin.LegacyPlugin$

Change History

comment:1 Changed 2012-07-09T12:20:44-05:00 by bdezonia

  • Description modified

comment:2 Changed 2012-07-17T16:40:08-05:00 by bdezonia

  • Blocking 1345 added

comment:3 Changed 2012-07-27T12:35:48-05:00 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 2012-07-27T13:35:47-05:00 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