Closed imagejan closed 7 years ago
Update: now I got a more informative error log after running the above workflow in a freshly started KNIME instance:
java.lang.ArrayIndexOutOfBoundsException: -59
at net.imglib2.img.basictypeaccess.array.ShortArray.getValue(ShortArray.java:61)
at net.imglib2.type.numeric.integer.GenericShortType.getValue(GenericShortType.java:100)
at net.imglib2.type.numeric.integer.UnsignedShortType.get(UnsignedShortType.java:168)
at net.imglib2.type.numeric.integer.UnsignedShortType.getIntegerLong(UnsignedShortType.java:185)
at net.imglib2.type.numeric.integer.AbstractIntegerType.getRealDouble(AbstractIntegerType.java:62)
at io.scif.img.ImgSaver.getPlaneArray(ImgSaver.java:854)
at io.scif.img.ImgSaver.writePlanes(ImgSaver.java:626)
at io.scif.img.ImgSaver.writeImg(ImgSaver.java:542)
at io.scif.img.ImgSaver.writeImg(ImgSaver.java:528)
at io.scif.img.ImgSaver.writeImg(ImgSaver.java:497)
at io.scif.img.ImgSaver.writeImg(ImgSaver.java:459)
at io.scif.img.ImgSaver.saveImg(ImgSaver.java:174)
at io.scif.img.ImgSaver.saveImg(ImgSaver.java:158)
at org.knime.knip.io.nodes.imgwriter2.ImgWriter2.writeImage(ImgWriter2.java:340)
at org.knime.knip.io.nodes.imgwriter2.ImgWriter2.writeImage(ImgWriter2.java:231)
at org.knime.knip.ilastik.nodes.headless.IlastikHeadlessNodeModel.execute(IlastikHeadlessNodeModel.java:302)
at org.knime.core.node.NodeModel.execute(NodeModel.java:732)
at org.knime.core.node.NodeModel.executeModel(NodeModel.java:566)
at org.knime.core.node.Node.invokeFullyNodeModelExecute(Node.java:1128)
at org.knime.core.node.Node.execute(Node.java:915)
at org.knime.core.node.workflow.NativeNodeContainer.performExecuteNode(NativeNodeContainer.java:561)
at org.knime.core.node.exec.LocalNodeExecutionJob.mainExecute(LocalNodeExecutionJob.java:95)
at org.knime.core.node.workflow.NodeExecutionJob.internalRun(NodeExecutionJob.java:179)
at org.knime.core.node.workflow.NodeExecutionJob.run(NodeExecutionJob.java:110)
at org.knime.core.util.ThreadUtils$RunnableWithContextImpl.runWithContext(ThreadUtils.java:328)
at org.knime.core.util.ThreadUtils$RunnableWithContext.run(ThreadUtils.java:204)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.knime.core.util.ThreadPool$MyFuture.run(ThreadPool.java:123)
at org.knime.core.util.ThreadPool$Worker.run(ThreadPool.java:246)
Is anyone able to reproduce this?
fixed with: https://github.com/knime-ip/knip/commit/1f54de63edba767e5601b204103dc9484e8cb9dd. Problem is in ImgSaver
of scifio
. I worked around it, but I will also fix it in scifio
.
ah: thanks for reporting. this was a perfect workflow :-)
Thanks for fixing it! I guess the automated nightly build didn't pick this up yet, I'm not seeing a new version on the update site. I'll check again and test tomorrow.
nightly build is currently failing for other reasons, therefore it's not built at the moment. needs 1 or 2 more days. sorry for the trouble.
build should be available in 2h.
When trying to run an Ilastik Headless node after a Segment Cropper, an
ArrayIndexOutOfBoundsException
is thrown (workflow attached below):Ilastik Tests.zip (the upper Ilastik node runs fine, the lower one produces the issue)
The problem might also be in the Segment Cropper though...
Tested with the latest nightly builds of knip and knip-ilastik (and ilastik 1.2.0 from 2016-12-21)