Ticket #816 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

Crop can throw exception

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-b1-initial
Component: Plugin Framework Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

Open Boats. Draw an overlay. Draw another one. No outline appears for it. Now crop. Exception thrown.

[ERROR] Module threw exception
java.lang.ArrayIndexOutOfBoundsException: 414720

at net.imglib2.img.basictypeaccess.array.ByteArray.getValue(ByteArray.java:59)
at net.imglib2.type.numeric.integer.GenericByteType.getValue(GenericByteType.java:73)
at net.imglib2.type.numeric.integer.UnsignedByteType.get(UnsignedByteType.java:117)
at net.imglib2.type.numeric.integer.UnsignedByteType.getIntegerLong(UnsignedByteType.java:123)
at net.imglib2.type.numeric.integer.AbstractIntegerType.getRealDouble(AbstractIntegerType.java:15)
at imagej.core.plugins.imglib.CropImage$CropAlgorithm.process(CropImage.java:158)
at imagej.core.plugins.imglib.ImgLibDataTransform.run(ImgLibDataTransform.java:68)
at imagej.core.plugins.imglib.CropImage.run(CropImage.java:91)
at imagej.ext.plugin.PluginModule.run(PluginModule.java:174)
at imagej.ext.module.ModuleRunner.run(ModuleRunner.java:148)
at imagej.ext.module.ModuleRunner.call(ModuleRunner.java:118)
at imagej.ext.module.ModuleRunner.call(ModuleRunner.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

Change History

comment:1 Changed 7 years ago by bdezonia

Found the exception issue. Fixed that portion of this bug in e71655f2ae27b82bb67ee79ac3d8bb5898186e39.

Note that second overlay still does not draw.

Also the overlay service returns the selected bounds as the whole of the image rather than the dimensions of the last created overlay. Need to determine correct behavior here.

comment:2 Changed 7 years ago by bdezonia

  • Status changed from new to closed
  • Resolution set to fixed

Closing this ticket and opening a new one: #817

Note: See TracTickets for help on using tickets.