Re: Convolve bug
Posted by
dscho on
Jul 16, 2008; 3:10pm
URL: http://imagej.273.s1.nabble.com/Convolve-bug-tp3695581p3695584.html
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