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

Illegal instruction: 4 #72

Open
alexey-sh opened this issue May 1, 2017 · 2 comments
Open

Illegal instruction: 4 #72

alexey-sh opened this issue May 1, 2017 · 2 comments

Comments

@alexey-sh
Copy link

alexey-sh commented May 1, 2017

Hi, thanks for the cool library.
I tried to pause an audio and got the error in console
Illegal instruction: 4

a part of my source code

        if (url.pathname === '/play') {
            if (currentPlayer) {
                currentPlayer.stop();
            }
            currentPlayer = new Player(data);
            currentPlayer.play();
            currentPlayer.on('error', function(err){
                // when error occurs
                console.log(err);
            });

        }
        else if (url.pathname === '/pause') {
            if (currentPlayer) {
                currentPlayer.pause();
            }
        }
        else if (url.pathname === '/stop') {
            if (currentPlayer) {
                currentPlayer.stop();
            }
        }

Same goes for .stop()

How can I prevent the error?

node: v5.10.1
os: mac os 10.12.4

@stromgren
Copy link

stromgren commented May 15, 2017

I have the same issue, working great on my Raspberry PI.

Process finished with exit code 132 (interrupted by signal 4: SIGILL)

I've only tried this with a streaming source.

node: v6.10.2
mac os: 10.12.4

@stromgren
Copy link

After some reasearch, I found the problem. It's related to the speaker-module and not this package. There is an issue registered and also a workaround that works for me.

TooTallNate/node-speaker#95 (comment)

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