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

Opened 2011-05-09T15:57:31-05:00

Last modified 2011-05-10T11:04:01-05:00

opening Clown image results in out of memory in heap

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: biweekly-2011: May-09 to May-20
Component: Legacy Compatibility Version:
Severity: serious Keywords:
Cc: Blocked By:


Can no longer open the clown image without a runtime exception (out of heap space).

Change History

comment:1 Changed 2011-05-09T15:57:36-05:00 by bdezonia

  • Status changed from new to accepted

comment:2 Changed 2011-05-09T16:25:41-05:00 by bdezonia

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

Fixed bug in RgbImageTranslator that caused infinite recursive loop inside createDataset(). The workaround should be to avoid ImagePlus::setPosition() and call ImagePlus::setPositionWithoutUpdate() to avoid updateAndDrawCalls(). This does not completely fix things though and thus rather than imp.setPositionWithoutUpdate() and imp.getProcesor() you are better off doing imp.getStack().getProcessor(index) where index is constructed from c, z, and t. This all points to what I think is a bug in ImageJ1 which I have reported to Wayne.

comment:3 Changed 2011-05-10T08:52:06-05:00 by bdezonia

Wayne fixed bug as of version 1.45h5. setPositionWithoutUpdate() can no longer ever call updateAndDraw(). So either method of getting an ImageProcessor from the ImagePlus should work.

comment:4 Changed 2011-05-10T11:04:01-05:00 by bdezonia

  • Milestone changed from biweekly-2011: Apr-25 to May-06 to biweekly-2011: May-09 to May-20