question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

objc[1876]: Class GNotificationCenterDelegate is implemented in both /Users/userName/image-processor/node_modules/sharp/vendor/lib/libgio-2.0.0.dylib (0x1076f5578) and /usr/local/opt/glib/lib/libgio-2.0.0.dylib (0x10823b578). One of the two will be used. Which one is undefined.

See original GitHub issue

What is the output of running npx envinfo --binaries --languages --system --utilities?

System: OS: macOS Mojave 10.14.6 CPU: (4) x64 Intel® Core™ i5-7360U CPU @ 2.30GHz Memory: 88.89 MB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.16.3 - ~/.nvm/versions/node/v10.16.3/bin/node npm: 6.9.0 - ~/.nvm/versions/node/v10.16.3/bin/npm Utilities: Make: 3.81 - /usr/bin/make GCC: 10.14. - /usr/bin/gcc Git: 2.23.0 - /usr/local/bin/git Clang: 1001.0.46.4 - /usr/bin/clang Subversion: 1.10.3 - /usr/bin/svn Languages: Bash: 3.2.57 - /bin/bash Go: 1.13 - /usr/local/bin/go Java: 11.0.2 - /usr/bin/javac Perl: 5.18.4 - /usr/bin/perl PHP: 7.1.23 - /usr/bin/php Python: 2.7.16 - /usr/local/bin/python Python3: 3.7.0 - /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 Ruby: 2.3.7 - /usr/bin/ruby

What are the steps to reproduce?

I’m trying to use a base64 encoded SVG in an SVG image’s source

What is the expected behavior?

When I use base64 encoded SVG in another SVG’s image source, the library must convert it to a png file.

Are you able to provide a standalone code sample, without other dependencies, that demonstrates this problem?

Here’s a piece of my code to show the problem;

console.log('App started!') const sharp = require('sharp');

sharp(Buffer.from('<svg width="75" height="120"> <image width="75" height="120" opacity="0.7" x="250" y="250" xlink:href="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi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wNy0zNi40ODljLTMuNzc1LTIzLjYyOC0xNS4yNTctMzguNDc5LTM0LjEyNi00NC4xNDJjLTQuMDg4LTEuMjI2LTYuNDA3LTUuNTM0LTUuMTgtOS42MjENCglzNS41MzQtNi40MDcsOS42MjEtNS4xOGMyNC44MDcsNy40NDQsNDAuMzcxLDI3LjEzMSw0NS4wMTIsNTYuOTMxYzMuMzM4LDIxLjQ0MS0wLjE5OCw0MC41NjYtMC4zNSw0MS4zNw0KCUMyOTEuNDE5LDE1MC4zODcsMjg4LjE3OCwxNTIuOTcxLDI4NC41MzksMTUyLjk3MXoiIC8+DQoJPGNpcmNsZSBzdHlsZT0iZmlsbDojRjk1NDVCOyIgY3g9IjI4NC41MjYiIGN5PSIxNDUuMjQ0IiByPSIzOC43ODIiIC8+DQo8L3N2Zz4=" /> </svg>')) .toFile('output.png').then(out => { console.log('Output: ', out) console.log('App ended!') })

Are you able to provide a sample image that helps explain the problem?

Yes, Here’s a Fiddle to show clearly what I’m trying to do. I need to convert this image to a PNG file

Terminal Output;

objc[5120]: Class GNotificationCenterDelegate is implemented in both /Users/mustafa/image-processor/node_modules/sharp/vendor/lib/libgio-2.0.0.dylib (0x107675578) and /usr/local/opt/glib/lib/libgio-2.0.0.dylib (0x1081a1578). One of the two will be used. Which one is undefined.

(sharp:5120): GdkPixbuf-CRITICAL **: 14:45:34.859: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(sharp:5120): GdkPixbuf-CRITICAL **: 14:45:34.859: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(sharp:5120): GdkPixbuf-CRITICAL **: 14:45:34.859: gdk_pixbuf_set_option: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(sharp:5120): GdkPixbuf-CRITICAL **: 14:45:34.859: gdk_pixbuf_set_option: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(sharp:5120): GdkPixbuf-CRITICAL **: 14:45:34.860: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(sharp:5120): GdkPixbuf-CRITICAL **: 14:45:34.860: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(sharp:5120): GdkPixbuf-CRITICAL **: 14:45:34.860: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(sharp:5120): GdkPixbuf-CRITICAL **: 14:45:34.860: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(sharp:5120): GdkPixbuf-CRITICAL **: 14:45:34.860: gdk_pixbuf_scale_simple: assertion 'GDK_IS_PIXBUF (src)' failed

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
souravdasslgcommented, Mar 6, 2020

I’m getting the same waring: objc[76528]: Class GNotificationCenterDelegate is implemented in both /Volumes/Felix/Work/Highlighter/highlighter-backend/node_modules/canvas/build/Release/libgio-2.0.0.dylib (0x106241568) and /Volumes/Felix/Work/Highlighter/highlighter-backend/node_modules/sharp/vendor/lib/libgio-2.0.0.dylib (0x1076be578). One of the two will be used. Which one is undefined.

1reaction
lovellcommented, Oct 15, 2019

You’ll need to reinstall/rebuild sharp after globally-(re)installing vips so it links against the global version rather than the locally-vendored version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flutter iOS Error Class AMSupportURLConnectionDelegate is ...
Below added steps how i solved. Step 1: open ios/Podfile Check platform :ios, '10.0' is uncommented. Step 2:.
Read more >
"Class SBFCARendererImageRepresentation is implemented ...
Hi guys, This error has started popping up and I don't know how to fix it. I use no third party dependencies or...
Read more >
assetgraph/assetgraph-builder - Gitter
is there a way to stop assetgraph or assetgraph-builder from fetching a particular URL. use case: Mocha has some sample code on its...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found