Skip to content
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

dyld: lazy symbol binding failed #2

Open
lekoOwO opened this issue Oct 28, 2018 · 7 comments
Open

dyld: lazy symbol binding failed #2

lekoOwO opened this issue Oct 28, 2018 · 7 comments

Comments

@lekoOwO
Copy link

lekoOwO commented Oct 28, 2018

OS: macOS Mojave
Node: 10.11.0

Hello, I'm working on my electron project.
When I imported this module, i got errors.

dyld: lazy symbol binding failed: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
  Referenced from: /Volumes/DATA/Codes/PokaPlayer-electron/node_modules/electron-media-service/build/Release/electron_media_service.node
  Expected in: flat namespace

dyld: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
  Referenced from: /Volumes/DATA/Codes/PokaPlayer-electron/node_modules/electron-media-service/build/Release/electron_media_service.node
  Expected in: flat namespace

Is there workaround? Thanks.

@MarshallOfSound
Copy link
Owner

@rexx0520 I assume this is with Electron 4.0 beta? I think this is using methods that don't exist in that release

@lekoOwO
Copy link
Author

lekoOwO commented Oct 28, 2018

@MarshallOfSound No, I'm using Electron 3.
image

@lekoOwO
Copy link
Author

lekoOwO commented Oct 28, 2018

By the way, I've asked a friend to try importing this module on macOS 10.13 and still got the same issue.
What we're trying to achieve is to make the "Now Playing" widget on macOS work with our electron app.
The Spotify App has done it so I believe it's possible to do it, but I can't find any APIs...

@MarshallOfSound
Copy link
Owner

@rexx0520 It definitely works on Electron 2 because that's what I use it on

@lekoOwO
Copy link
Author

lekoOwO commented Oct 28, 2018

It works on Electron 2!
But I see no change... The 'Now playing' widget in the notification center is still empty.

@MarshallOfSound
Copy link
Owner

@rexx0520 Make sure you're calling startService and setting valid metadata. I know it works because it's used in https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-

@lekoOwO
Copy link
Author

lekoOwO commented Oct 28, 2018

@MarshallOfSound It works!
But another issue, when the play/pause or another event is triggered (using Now Playing button), the app crashes... even if i'm only doing mediaService.on("next", () => console.log("next"));, after I pressed the next track button, the app crashes too.
Is your's functioning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants