Re: Convolve bug
Posted by
Fco. Javier Merino Guardiola on
Jul 16, 2008; 3:26pm
URL: http://imagej.273.s1.nabble.com/Convolve-bug-tp3695581p3695585.html
Thank you for your answers, I've found the problem but I'm not sure why this
happens :-S
I was running the JVM with the next arguments: -d64 -Xmx2500m but if I run
without those params the program works fine. I think its a problem of runing
the JVM with the 64bit compatibility option.
Im using OSX 10.5.3 on a macbook: Intel Core 2 Duo 2.2GHz + 4GB RAM, with
Java 1.5.0_13.
---
FJMG
2008/7/16 Johannes Schindelin <
[hidden email]>:
> Hi,
>
> On Wed, 16 Jul 2008, Gabriel Landini wrote:
>
> > On Wednesday 16 July 2008 15:37:01 Johannes Schindelin wrote:
> > > On Wed, 16 Jul 2008, Francisco Javier Merino Guardiola wrote:
> > > > I think I've discovered a bug in the convolver plugin:
> > > > kernel index error: 25
> > > > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException:
> 25
> > > > at
> ij.plugin.filter.Convolver.convolveFloat(Convolver.java:234)
> > > > at ij.plugin.filter.Convolver.convolve(Convolver.java:173)
> > > > at ij.process.FloatProcessor.convolve(FloatProcessor.java:819)
> > > > at test_convolver.main(test_convolver.java:23)
> > > > Java Result: 1
> >
> > > Thank you for including the code. I tested it here, and it works just
> > > fine. My platform is Linux/Athlon (32-bit), java -version says
> > >
> > > java version "1.6.0_06"
> > > Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
> > > Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
> > >
> > > Oh, and I use an ImageJA based on ImageJ 1.41g.
> >
> > There is a very strange bug -- at least in linux -- possibly in the JIT
> > compiler that pops up with *multi-core* cpus and gives a similar error.
> >
> > See line 232 of /ImageJ/source/ij/plugin/filter/Convolver.java for a
> > workaround.
>
> That's why I tested it on a 4-processor 4-core-per-cpu Xeon (64-bit)
> machine, and it worked...
>
> Ciao,
> Dscho
>