Open Agamnentzar opened 4 years ago
That PNG is corrupt (missing iEND, bad chunk length), but ideally that error would be handled. This looks like a cairo bug. The only open related issue I see is this, which is not quite the same: https://gitlab.freedesktop.org/cairo/cairo/-/issues/254. Fixing this would likely be time-consuming, and rather than fix bugs in current node-canvas I'm hoping to spend more time on a brand new implementation, which should fix this problem as well. Happy to review a PR if anyone wants to work on it though.
It seems to be libpng bug, updating to latest libpng solves the crashing but still doesn't load the PNG, I don't know if it can be updated independent of cairo though.
+1
Issue or Feature
node process is crashing with following message
image in question:
Steps to Reproduce
Your Environment
npm list canvas
oryarn list canvas
): 2.6.1Other remarks
on linux it threw "out of memory" error on loading