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

OSX - Illegal Instruction:4 #95

Open
ghost opened this issue Jan 21, 2017 · 12 comments
Open

OSX - Illegal Instruction:4 #95

ghost opened this issue Jan 21, 2017 · 12 comments

Comments

@ghost
Copy link

ghost commented Jan 21, 2017

Everything works fine and I'm getting the audio to play..

But, I'm getting a "Illegal Instruction: 4" message..

@stuarttayler
Copy link

i get the same problem, any help much appreciated!

@svaghar
Copy link

svaghar commented Mar 2, 2017

For me, Speaker plays the audio on the Mac (Sierra MacBook Pro) and then it crashes the process.
It works fine on raspberry pi.

@ghost
Copy link
Author

ghost commented Mar 5, 2017

By the lack of answers, looks like the creator/maintainer is not working on this project anymore..

bummer :(

@LinusU
Copy link
Collaborator

LinusU commented Mar 6, 2017

I haven't been able to reproduce this, and there isn't that much info provided here to be able to investigate further...

@ghost
Copy link
Author

ghost commented Mar 7, 2017

install Node.js on mac with latest OSX, then npm install node-speaker and write some code get it to play some audio..

@YannickRobin
Copy link

Installation of the latest versions for NodeJS did not help me.

Changing the Audio Backend with the command npm install speaker --mpg123-backend=openal fixed the issue for me.

@svaghar
Copy link

svaghar commented Mar 24, 2017 via email

@dsteinman
Copy link

Installation of the latest versions for NodeJS did not help me.

Changing the Audio Backend with the command npm install speaker --mpg123-backend=openal fixed the issue for me.

This problem still exists, and if that backend is the only way to fix it, shouldn't the module do this by default?

@AnabetsyR
Copy link

I updated to Node v13.x and then ran npm install speaker --mpg123-backend=openal and it worked!

@dsteinman
Copy link

dsteinman commented Mar 4, 2020

I updated to Node v13.x and then ran npm install speaker --mpg123-backend=openal and it worked!

This does work, but it turns out to be enormously annoying. If any NPM module requires the "speaker" module, then it won't work because it installs the default which fails on OSX. You end up with a package.json that won't work on OSX. This should really be changed in the speaker npm module. And if it doesn't get fixed I need to fork this module.

@AnabetsyR
Copy link

I see. I'm hoping I don't need to require the speaker beyond this point. But yes, a definitive fix would be great!

@Whobeu
Copy link

Whobeu commented Aug 14, 2020

I am getting the "Illegal Instruction: 4" message under macOS 10.14.6 (Mojave) and Node.js 12.18.3. I tried the command "npm install speaker --mpg123-backend=openal" and it eliminates the error message but the audio is now choppy. If I remove the argument the error message comes back but the audio is fine.

I can live with the error message as it seems to be informational.

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

7 participants