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 #927 (new defect)

Opened 2012-02-01T13:58:29-06:00

Last modified 2012-08-14T12:22:19-05:00

Out of memory issue with Add Data plugin

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej-2.0.0
Component: Core Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1170

Description

It is pretty easy to run out of memory using the Add Data plugin. Repeatedly do this:

1) open T1 Head
2) Add Data, Z axis, quantity 3
3) close T1 Head

After 4 or 5 runs you get an exception thrown about being out of heap space and must terminate IJ2.

Note that my IJ2 only has 123 mb available at startup (running from eclipse rather than with IJ2's launching script).

T1 head is about 16 meg of data. Each Add Data run makes a new one. But since we're closing images as we go there should only ever be 32 mb in use.

Somewhere we're not letting go of resources. Use heap debugging method to see what is not getting freed.

Change History

comment:1 Changed 2012-05-14T10:47:13-05:00 by bdezonia

  • Blocking 1070 added

comment:2 Changed 2012-05-14T11:07:14-05:00 by bdezonia

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

comment:3 Changed 2012-06-08T10:46:57-05:00 by bdezonia

  • Blocking 1170 added; 1070 removed

comment:4 Changed 2012-08-14T12:22:19-05:00 by bdezonia

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