Ticket #507 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

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:
Blocking:

Description

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

Change History

comment:1 Changed 8 years ago by bdezonia

  • Status changed from new to accepted

comment:2 Changed 8 years ago 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 8 years ago 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 8 years ago by bdezonia

  • Milestone changed from biweekly-2011: Apr-25 to May-06 to biweekly-2011: May-09 to May-20
Note: See TracTickets for help on using tickets.