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
Sharp crashes silently #1828
Comments
Hi, are you able to use WinDbg or similar to get a backtrace of the crash? |
I am able, but you have to guide me through the steps. I tried installing windbg and setting it as postmortem debugger as described here, but windbg does not get auto-started after the crash and I don't know how to get the crash report.... I also tried to attach to the node process from the windbg, but it says: Please provide me with the steps and I will give you results... |
#1708 (comment) provides an example of using procdump that should help. |
Ok, sorry for the wait, so I started the code above with sharp 0.23.0 and procdump: Output:
Dump attached. Hope this helps! |
Thanks, I'll try to find a Windows machine to inspect this file on. Does this problem occur only with PNG input images? |
It does happen on jpg as well. Note that it does not happen on all windows machines but only on some (as I mentioned above, 3 out of 6 in my organization). |
I tried analysing the dump file using WinDbg and, with a bit of web searching, my best guess would be that this exception relates to delayed loading of DLLs . A good next step might be to try running http://www.dependencywalker.com/ on the Perhaps overzealous anti-virus software on the failing machines is somehow intercepting/breaking DLL calls? |
@bjg2 Were you able to make any progress with this? |
Closing due to inactivity but please feel free to reopen with more details if further help is required. |
What is the output of running
npx envinfo --binaries --languages --system --utilities
?What are the steps to reproduce?
sharp version: 0.23.0
Run simple code with any PNG, like the one below (getting the metadata).
What is the expected behaviour?
BEFORE + AFTER, but only BEFORE happens (example below).
Are you able to provide a standalone code sample, without other dependencies, that demonstrates this problem?
Are you able to provide a sample image that helps explain the problem?
A bit longer explanation:
I do the devops in my company. I use sharp in the last pre-release step, to optimize the images on the site. It works on all linux machines (2), all mac machines (1), and 3 windows machines out of 6 (it works on 3 win10 machines, doesn't work on 2 win10 and 1 win8). It just crashes, breaking the program without any output... Can you figure out why it is happening and how to mitigate the issue for these machines?
PS. The issue happens with 0.23.0 version. With 0.22.1 everything works, so we have reverted to that one for now (so we're not blocked by the issue).
The text was updated successfully, but these errors were encountered: