Open windreamlion opened 5 years ago
See #930 -- we need to do something to isolate the shared libraries that both modules are using. Unfortunately there's no easy fix or workaround for this. Will leave open for now for visibility, since it's a different error message.
I'm having exactly the same issue, so I'd be happy too if you can fix it
Same issue here
I have the same issue. Do you think that it could create some issues while running my app?
Thanks!
It causes memory leaks for me... Big ones, however, to be fair, something else was causing issues at the same time and haven't figured out if its a combo thing or not.
Hello
I'm facing the same issue as described previously. Hope you will find a way to resolve this.
Thanks!
canvas 2.5.0
sharp 0.23.3
the same issue . Has someone solved it? ? Although it looks like a warning, it doesn't affect the use .
Same problem here
nothing update
Same
Same here
I have to use jimp instead of sharp to avoid conflict
same here
same Issue here.....
the latest version of sharp and node-cavans, this problem still exists,any solution?
same here 🌵
Same here 👀
same here
I got this bug after I had added text-svg to my project dependencies. The package text-svg depends on node-canvas. Then again, node-canvas depends on globally installed libraries, such as cairo.
Installing libvips globally (as suggested in this comment) fixed the issue for me. I'm on mac, so I installed that package via brew: https://formulae.brew.sh/formula/vips#default
Seems canvas should ship up to date binaries.
https://github.com/lovell/sharp/issues/3007#issuecomment-988662604
Any updates here, people? Any workaround?
same here
same here
same here
For node I just ended up with firing script with canvas logic inside through the execSync API.
So after I generate some content via canvas, I then run sharp via execSync
and apply required transformations
this issue sucks
The problem is that they both are running in the same V8/NodeJS instance, this can be solved by separating the instances, e.g. child_process or piscina worker pool. Create a wrapper/helper for canvas/sharp or both and call the wrapper instead of the lib directly.
I had this issue a year ago and if I'm not wrong I just used child process, didn't used piscina for this issue but I highly recommend it.
UPDATE:
Canvas 2.11.2
and Sharp 0.33.2
are working together without conflict@sepehrsamavati it worked for me. thanks for your best guidance.
macos: 14.5 (23F79)
sharp@0.33.4 & canvas@2.11.2
It works normally on Windows and Linux, but the following issue occurs on Mac.
sharp
loads first, canvas
loads later.
objc[19234]: Class GNotificationCenterDelegate is implemented in both /private/tmp/a/canvas-drawimage-benchmark/node_modules/@img/sharp-libvips-darwin-x64/lib/libvips-cpp.42.dylib (0x1310378e0) and /private/tmp/a/canvas-drawimage-benchmark/node_modules/canvas/build/Release/libgio-2.0.0.dylib (0x12f6a26b0). One of the two will be used. Which one is undefined.
objc[19269]: Class GNotificationCenterDelegate is implemented in both /private/tmp/a/canvas-drawimage-benchmark/node_modules/canvas/build/Release/libgio-2.0.0.dylib (0x1362966b0) and /private/tmp/a/canvas-drawimage-benchmark/node_modules/@img/sharp-libvips-darwin-x64/lib/libvips-cpp.42.dylib (0x139a868e0). One of the two will be used. Which one is undefined.
But in Mac, although there are such errors, it does not affect the essential usage.
Issue or Feature
objc[2275]: Class GNotificationCenterDelegate is implemented in both //node_modules/canvas/build/Release/libgio-2.0.0.dylib (0x10cfd0498) and //node_modules/sharp/vendor/lib/libgio-2.0.0.dylib (0x10d612498). One of the two will be used. Which one is undefined.
Steps to Reproduce
Your Environment