Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #12583 (closed)

Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

Bug: TIFF StripByteCounts value parsed incorrectly

Reported by: omero-qa Owned by: mlinkert
Priority: minor Milestone: 5.1.0
Component: Bio-Formats Version: 5.0.5
Keywords: TiffReader, their-fault Cc: yohan.jarosz@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: n.a.

Description (last modified by jamoore)

Exception occurs while importing this file due to the StripByteCounts? tag being parsed incorrectly. The byte count for a strip should be 32640 (see output of tiffdump), but it's currently reported as -312550. Likely the tag type is not being respected.

java.lang.RuntimeException: Failure response on import!
Category: ::omero::grid::ImportRequest
Name: import-request-failure
Parameters: {message=, stacktrace=java.lang.NegativeArraySizeException
	at loci.formats.tiff.TiffParser.getTile(
	at loci.formats.tiff.TiffParser.getSamples(
	at loci.formats.tiff.TiffParser.getSamples(
	at loci.formats.DelegateReader.openBytes(
	at loci.formats.ImageReader.openBytes(
	at loci.formats.ChannelFiller.openBytes(
	at loci.formats.ChannelFiller.openBytes(
	at loci.formats.ChannelSeparator.openBytes(
	at loci.formats.ReaderWrapper.openBytes(
	at loci.formats.ReaderWrapper.openBytes(
	at loci.formats.MinMaxCalculator.openBytes(
	at omero.cmd.HandleI.steps(
	at omero.cmd.HandleI$1.doWork(
	at omero.cmd.HandleI$1.doWork(
	at sun.reflect.GeneratedMethodAccessor277.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
	at org.springframework.orm.hibernate3.HibernateInterceptor.invoke(
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(
	at com.sun.proxy.$Proxy69.doWork(Unknown Source)
	at java.util.concurrent.Executors$
	at java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.util.concurrent.ThreadPoolExecutor$

	at ome.formats.importer.ImportLibrary$ImportCallback.onFinished(
	at omero.cmd.CmdCallbackI.finished(
	at omero.cmd._CmdCallbackDisp.___finished(
	at omero.cmd._CmdCallbackDisp.__dispatch(
	at IceInternal.Incoming.invoke(
	at Ice.ConnectionI.invokeAll(
	at Ice.ConnectionI.dispatch(
	at Ice.ConnectionI.message(
	at IceInternal.ThreadPool.access$300(
	at IceInternal.ThreadPool$

Change History (4)

comment:1 Changed 7 years ago by jamoore

  • Component changed from from QA to Bio-Formats
  • Description modified (diff)
  • Keywords TiffReader added

comment:2 Changed 6 years ago by mlinkert

  • Keywords our-fault added
  • Milestone changed from Unscheduled to 5.1.0

comment:3 Changed 6 years ago by mlinkert

  • Keywords their-fault added; our-fault removed
  • Resolution set to fixed
  • Status changed from new to closed

PR opened:

This works around the last entry in the StripByteCounts? field being incorrectly recorded in the file, so changing the fault keyword as well.

comment:4 Changed 6 years ago by Melissa Linkert <melissa@…>

  • Remaining Time set to 0

(In [d896dfa79c44c5ecb4252dd5d321649216b7b962/bioformats.git] on branch develop) TIFF: attempt to correct incorrectly stored StripByteCounts? values

If an entry in the StripByteCounts? array is negative, this logs the
original value and attempts to set it to the previous entry in the

Fixes #12583.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.145791 sec.)

We're Hiring!