Skip to content

World age issue with lazy loading Tiff image #1062

Description

@kescobo

Trying to use FileIO.load in the context of a command line script, and I'm hitting

ERROR: MethodError: no method matching size(::TiffImages.DenseTaggedImage{ColorTypes.Gray{FixedPointNumbers.N0f16}, 3, UInt32, TiffImages.LazyBufferedTIFF{ColorTypes.Gray{FixedPointNumbers.N0f16}, UInt32, Matrix{ColorTypes.Gray{FixedPointNumbers.N0f16}}}})
The applicable method may be too new: running in world age 27037, while current world is 27040.
You may need to implement the `length` and `size` methods for `IteratorSize` `HasShape`.

from a bit of code that calls load("path/to/image.tiff"; lazyio=true).

Running what is, as far as I can tell, the same code from the REPL, I'm not hitting this problem. At one point, can't find the code now, I hit a world age error that resolved the next time I just repeated the same function call in the same session.

I know this isn't a lot to go on - the code is currently not public, but I could invite someone to the repo if that would help, and I was hoping someone might have a thought

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions