Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

World age issue with lazy loading Tiff image #1062

Open
kescobo opened this issue Nov 1, 2024 · 0 comments
Open

World age issue with lazy loading Tiff image #1062

kescobo opened this issue Nov 1, 2024 · 0 comments

Comments

@kescobo
Copy link

kescobo commented Nov 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant