Package: imagej
Version: 1.40a-1
Severity: normal
Tags: patch
The run script provided with the ImageJ package (/usr/bin/imagej) does
not allow to change the maximum size of the JVM heap the program will
use on 32 bit architectures via the -x option as documented in the man
page.
When using the -x switch, the following output is given on the console:
| [EMAIL PROTECTED]:~$ imagej -x 1500
| /usr/bin/imagej: line 263: ((: 1500 < 16 || 1500 > : syntax error: operand
expected (error token is " ")
| Open other images in this ImageJ panel as follows:
| imagej -p 1 <image1> [<image2> ... <imageN>]
|
| [EMAIL PROTECTED]:~$
This error is due to a copy+paste error in the run script sample
provided by upstream and is fixed with this patch:
--- imagej.orig 2008-07-11 11:24:15.000000000 +0200
+++ imagej 2008-07-11 11:24:17.000000000 +0200
@@ -102,7 +102,7 @@
else
arch='-d32'
java_path="${ij_path}/jre/bin/java"
- free_mem=`free | awk 'NR == 2 {fmem=int($2 / 1024); if (fmem < 1800)
{print fmem} else {print 1800}}'`
+ max_mem=`free | awk 'NR == 2 {fmem=int($2 / 1024); if (fmem < 1800)
{print fmem} else {print 1800}}'`
free_mem=`free | awk 'NR == 3 {fmem=int($4 / 1024); if (fmem <
1800) {print fmem} else {print 1800}}'`
mem=${free_mem}/3*2
if (( $mem > $default_mem || $mem < $min_mem )) ; then
mem=$default_mem ; fi
As a minor sidenote, the indentation in this script is severly broken
and should be fixed.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.25-2-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages imagej depends on:
ii java-gcj-compat [java2-runtim 1.0.78-2 Java runtime environment using GIJ
ii sun-java6-jre [java2-runtime] 6-07-4 Sun Java(TM) Runtime Environment (
imagej recommends no packages.
Versions of packages imagej suggests:
ii sun-java6-jdk [java2-compiler 6-07-4 Sun Java(TM) Development Kit (JDK)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]