commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno P. Kinoshita (JIRA)" <>
Subject [jira] [Commented] (IMAGING-202) Could not read block
Date Sat, 30 Dec 2017 09:52:00 GMT


Bruno P. Kinoshita commented on IMAGING-202:

Added a breakpoint after the line which I believe should trigger the error (attached screen
shot), but could not reproduce it. Not sure if the code changed before or after the issue
was reported, but at least from trying to find the code affected from reading the exception
stack trace, I could not find a way to trigger the issue.

There's also the question on whether the image is valid or not. It could be something that
we could change in the default behaviour of the parser, to give a warning instead of throwing
an exception, but first we would need to properly reproduce the issue.

It was really helpful to have the stack trace and the test image, but now we would need some
sample code. Feel free to re-open it in case the issue persists, and if it's possible to share
some code for a [SSCCE|].


> Could not read block
> -----------------------------------------
>                 Key: IMAGING-202
>                 URL:
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: JPEG, Format: TIFF
>    Affects Versions: 1.0
>            Reporter: Srijan Bhatnagar
>            Priority: Critical
>         Attachments: breakpoint-after-line-supposed-to-trigger-issue-i-think.png
> Some images could not be read with imaging. The following exception appears - 
> {code}
> Could not read block (block start: 1024, block length: 211680000,
data length: 108598491).
> 	at org.apache.commons.imaging.common.bytesource.ByteSourceInputStream.getBlock(
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.getTiffRawImageData(
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectory(
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectory(
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readDirectories(
> 	at
> 	at org.apache.commons.imaging.formats.tiff.TiffReader.readContents(
> 	at org.apache.commons.imaging.formats.tiff.TiffImageParser.getMetadata(
> 	at org.apache.commons.imaging.ImageParser.getMetadata(
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(
> 	at com.adobe.granite.workflow.core.job.JobHandler.process(
> 	at$JobConsumerWrapper.process(
> 	at
> 	at$100(
> 	at$
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> 	at java.util.concurrent.ThreadPoolExecutor$ Source)
> 	at Source)
> {code}
> The zipped TIF file can be downloaded from -

This message was sent by Atlassian JIRA

View raw message