Posted by
Adrian Daerr-2 on
URL: http://imagej.273.s1.nabble.com/Bug-when-scaling-VirtualStack-to-Stack-tp3691021.html
Hello,
After importing (File->Import->Image Sequence) a series of jpeg RGB
images 'Using Virtual Stack', I try to create a scaled-down normal stack
by running Image->Scale (*0.25, no interpolation, processing entire
stack, creating new window). This works with a small (63 picture)
sample, but with a 430 picture folder, ImageJ aborts scaling with an
Exception after having processed about 100 frames:
java.lang.NullPointerException
at ij.plugin.Scaler.createNewStack(Scaler.java:85)
at ij.plugin.Scaler.run(Scaler.java:54)
at ij.IJ.runPlugIn(IJ.java:152)
at ij.Executer.runCommand(Executer.java:122)
at ij.Executer.run(Executer.java:59)
at java.lang.Thread.run(Thread.java:619)
For information: the maximum heap size was set to about 2GB, the virtual
stack was 16GB in size, the scaled down stack was expected to be around
1GB fat.
The line #85 in Scalar.java is
ip1.setInterpolationMethod(method);
where ip = imp.getStack().getProcessor(i);
with imp the first parameter to createNewStack, apparently the original
from which the copy is to be made.
Do you need other information?
Adrian
more technical details:
the bug was noticed with version 1.43e (installed through Debian or
fiji, don't remember), and reproduced with the latest daily build 1.43h5
(from which the Exception above was copied; installed by hand).
Plugins->Utilities->ImageJ Properties:
java.version: 1.6.0_16
java.vendor: Sun Microsystems Inc.
os.name: Linux
os.version: 2.6.30-1-686
os.arch: i386
file.separator: /
path.separator: :
line.separator: <lf>
user.name: adrian
user.home: /home/adrian
user.dir: /home/adrian
user.country: US
file.encoding: UTF-8
java.home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
java.class.path: /home/adrian/Programmes/ImageJ/ij.jar
java.ext.dirs:
/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/ext:/usr/java/packages/lib/ext
java.io.tmpdir: /tmp
IJ.getVersion: 1.43h5
IJ.isJava2: true
IJ.isJava15: true
IJ.isJava16: true
IJ.isLinux: true
IJ.isMacintosh: false
IJ.isMacOSX: false
IJ.isWindows: false
IJ.isVista: false
IJ.is64Bit: false
Menus.getPlugInsPath: /home/adrian/.imagej/plugins/
Menus.getMacrosPath: /home/adrian/.imagej/macros/
Prefs.getHomeDir: /home/adrian/.imagej
Prefs.getThreads: 1 (1 core)
Prefs.open100Percent: false
Prefs.blackBackground: false
Prefs.useJFileChooser: false
Prefs.weightedColor: false
Prefs.blackCanvas: false
Prefs.pointAutoMeasure: false
Prefs.pointAutoNextSlice: false
Prefs.requireControlKey: false
Prefs.useInvertingLut: false
Prefs.antialiasedTools: false
Prefs.useInvertingLut: false
Prefs.intelByteOrder: false
Prefs.doubleBuffer: false
Prefs.noPointLabels: false
Prefs.disableUndo: false
Prefs.runSocketListener: false
Prefs dir: /home/adrian/.imagej
Current dir: /home/adrian/
Sample images dir:
http://rsb.info.nih.gov/ij/images/ Screen size: 1280x1024
Memory in use: 1285K of 1984MB (<1%)