-
-
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
vips__regions_start: failed for image temp-xxx #668
Comments
Hello, the Node (via libuv) provides sharp with a maximum of The default size of this shared thread pool is 4. Local filesystem operations also use this thread pool, so it's possible that The fact you're seeing problems with the 5th iteration hints that code not shown here might be altering/removing |
Hello, I'm aware of the async property of Sharp (even If I don't totally understand the mechanics behind it). I will look into it given data you gave me (thank you a lot). But do you have an hint about why the sixth iteration doesn't have this problem ? (the 400x400's one). I'm indeed altering the file Given your explanation, I'm assuming that I'm lacking a callback at the END of all operations made (so I have to be sure that all iterations and file has correctly been "sharped", and instead i'm doing it too quickly (the delete of the tempFile). |
Closing as I think this is resolved, but please re-open if there are further related questions. |
Sorry for opening it again. Just to keep you in touch with that I had try during the last 30 days to change multiple time how it works. But yeah, I always have a problem related to this. It is never the same statement. I changed how my code behave multiple times, adding some fix here and there, but yeah, sometimes picture will be empty. Even with the same picture sometimes. Edit : Can't close it myself :x Will let you do that ^^' |
See #657 for the |
Hi,
Thank you for your library, it worked as a a charm for the last months, and have saved my life !
Our usage is this : Whenever a user send a picture to our server, we store the first as original, and crop/save multiple versions : (40x40, 60x60, 120x120, 200x200, 400x400). And it has always worked.
Lastly, we came into this situation, it happened twice (without any code modification on 0.16.2) where all images has been processed, cropped, saved, except the 200x200 version that without any understanding was saved as a 0bytes file displaying nothing about void.
I didn't find any log for the first time, but the second time I saw this:
So my questions are :
I found a 0X90 0xA8 but at the offset 00000E70, but i'm not sure about what it could or not mean... I tought that JPEG doesn't need any particular headers :'( And to be fair, I don't understand much about theses headers / hexa problematics.
Here is for reference, the code I use.
inputFile.ext = jpg in this exemple.
uuid is something like : b2a60321-7e38-4a5a-8998-a3c1ebd60fde
Thank you for any help on this matters, I really don't know what happens as I didn't change it for a long times.
It has worked a numberous time without trouble (~3000 picture uploads), but failed twice in the last 2 days (with approx 100 pictures uploads, so 2% errors only on ONE specific size).
What I know :
The text was updated successfully, but these errors were encountered: