Image Tiler dies on IndexOutOfBoundsException

Description

2017-08-07T09:42:00,874 [TileSlave#1] INFO {} MCRImage: Converting image to 24 bit color depth: Image type is 'CUSTOM'
2017-08-07T09:42:05,106 [TileSlave#1] INFO {} MCRImage: Converting image to 24 bit color depth: Image type is 'CUSTOM'
2017-08-07T09:42:08,668 [TileSlave#1] INFO {} MCRImage: Converting image to 24 bit color depth: Image type is 'CUSTOM'
2017-08-07T09:42:11,943 [TileSlave#1] INFO {} MCRImage: Converting image to 24 bit color depth: Image type is 'CUSTOM'
2017-08-07T09:42:15,161 [TileSlave#1] INFO {} MCRImage: Converting image to 24 bit color depth: Image type is 'CUSTOM'
2017-08-07T09:42:18,226 [TileSlave#1] ERROR {} MCRTilingAction: Error while getting next tiling job.
java.lang.IndexOutOfBoundsException: pos < flushedPos!
at javax.imageio.stream.ImageInputStreamImpl.seek(ImageInputStreamImpl.java:768)
at com.sun.media.imageio.stream.FileChannelImageInputStream.seek(FileChannelImageInputStream.java:460)
at com.sun.media.imageioimpl.plugins.tiff.TIFFNullDecompressor.decodeRaw(TIFFNullDecompressor.java:183)
at com.sun.media.imageio.plugins.tiff.TIFFDecompressor.decode(TIFFDecompressor.java:2527)
at com.sun.media.imageioimpl.plugins.tiff.TIFFNullDecompressor.decode(TIFFNullDecompressor.java:143)
at com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader.decodeTile(TIFFImageReader.java:1137)
at com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader.read(TIFFImageReader.java:1417)
at org.mycore.imagetiler.MCRImage.getTileOfFile(MCRImage.java:307)
at org.mycore.imagetiler.MCRMemSaveImage.doTile(MCRMemSaveImage.java:114)
at org.mycore.imagetiler.MCRImage.tile(MCRImage.java:495)
at org.mycore.iview2.services.MCRTilingAction.run(MCRTilingAction.java:73)
at org.mycore.util.concurrent.processing.MCRProcessableFactory$RunnableProgressableAdapter.call(MCRProcessableFactory.java:149)
at org.mycore.util.concurrent.processing.MCRProcessableSupplier.get(MCRProcessableSupplier.java:79)
at org.mycore.util.concurrent.MCRPrioritySupplier.get(MCRPrioritySupplier.java:27)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Environment

None

Assignee

Silvio Hermann

Reporter

Silvio Hermann

Labels

None

URL

None

External issue ID

None

Components

Fix versions

Affects versions

Priority

High
Configure