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

can't load big image of 17068x17068 #766

Closed
nothings opened this issue May 23, 2019 · 2 comments
Closed

can't load big image of 17068x17068 #766

nothings opened this issue May 23, 2019 · 2 comments

Comments

@nothings
Copy link
Owner

I have same error with a big image of 17068x17068 with format 32 bits.
The error message is "too large".
tail_diffuse

Originally posted by @aribot-hrv in #752 (comment)

@nothings
Copy link
Owner Author

See also #672.

stb_image won't read images which take up more than 1 GB of memory because it was written using 32-bit integers; 1 GB is 2^30.

A 16384x16384 image with 4 channels will take up exactly 1 GB, so 17068 x 17608 is larger than that.

This should probably be fixed, but it's a huge endeavour.

@rygorous As a short-term workaround, can we bump the limit up to 2^31 on 64-bit machines, or do you remember if there's something in the code that makes 2^30 the real limit?

@nothings
Copy link
Owner Author

nothings commented Feb 1, 2020

moving this into #672.

@nothings nothings closed this as completed Feb 1, 2020
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