-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Regression in v0.32.0: flip operation can cause "out of order read" error #3600
Comments
Thanks for reporting, this will be a side effect of the switch in the newly-released v0.32.0 to more eagerly taking advantage of libvips' sequential read feature. We need to add Lines 1655 to 1670 in b9d4c30
For this sample image, it looks like the PNG decoder simply can't deliver pixel values quickly enough to libvips' very fast flip operation, whereas the flop operation is slower so it still works. You can work around it for now with: sharp(input, { sequentialRead: false }).flip()... |
v0.32.1 now available. |
Possible bug
I've run into and issue where when I try to flip an image I get the following error:
I've tried other transformations (including
flop
) on the same image without issues.Is this a possible bug in a feature of sharp, unrelated to installation?
npm install sharp
completes without error.node -e "require('sharp')"
completes without error.If you cannot confirm both of these, please open an installation issue instead.
Are you using the latest version of sharp?
sharp
as reported bynpm view sharp dist-tags.latest
.npm view sharp dist-tags.latest
0.32.0
What is the output of running
npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp
?Ok to proceed? (y)
System:
OS: Linux 5.15 Debian GNU/Linux 10 (buster) 10 (buster)
CPU: (5) arm64 unknown
Memory: 9.80 GB / 11.68 GB
Container: Yes
Shell: 5.0.3 - /bin/bash
Binaries:
Node: 16.18.1 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 8.19.2 - /usr/local/bin/npm
I'm running this inside the node:16.18-slim Docker container
What are the steps to reproduce?
What is the expected behaviour?
Flipped image should not produce an error.
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem
See above.
Please provide sample image(s) that help explain this problem
The text was updated successfully, but these errors were encountered: