Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Support for node 0.11.x #33

Closed
philiptevans opened this issue Aug 22, 2014 · 15 comments
Closed

Support for node 0.11.x #33

philiptevans opened this issue Aug 22, 2014 · 15 comments
Labels

Comments

@philiptevans
Copy link

Hi, I have installed Airsonos on my iMac and it searches and finds my Sonos devices. However when I connect and try to play, the applications quits with the following error:-

Searching for Sonos devices on network...
Setting up AirSonos for Living Room3 {10.0.1.13:1400}
Setting up AirSonos for Living Room3 {10.0.1.47:1400}
Setting up AirSonos for Kitchen {10.0.1.46:1400}
Setting up AirSonos for Living Room3 {10.0.1.48:1400}
Segmentation fault: 11

@antares3000
Copy link

Same here - do you have a stereo pair or surround set up?

@philiptevans
Copy link
Author

yes, I have surround setup as well as Play 3 in kitchen. will try to separate the pairs to see if it works.

@philiptevans
Copy link
Author

I separated the Surround System, but still get the error.

Searching for Sonos devices on network...
Setting up AirSonos for Living Room3 {10.0.1.48:1400}
Setting up AirSonos for Kitchen {10.0.1.46:1400}
Setting up AirSonos for Living Room {10.0.1.13:1400}
Setting up AirSonos for Living Room2 {10.0.1.47:1400}
Segmentation fault: 11

@alphablondy
Copy link

Similarly, I am also receiving the segmentation fault 11 code.

@tearsen
Copy link

tearsen commented Aug 24, 2014

On my fresh installed 10.9.4 Mavericks I´m also getting Segmentation fault: 11
On my other computer, in the same network, Airsonos works fine.

@stephen
Copy link
Owner

stephen commented Aug 25, 2014

What version of node.js are you using? node --version

I believe there's currently an issue using with node 0.11.x- recommended version is ~0.10.28. If it is the issue, easiest workaround for now is using https://github.com/visionmedia/n, and then doing something like n use 0.10.28 /usr/local/bin/airsonos

@philiptevans
Copy link
Author

version v0.10.31.

as a side, thank you for creating this application.  I appreciate all you hard work.  Cheers!  Phil.

— --------------------------
Phil Evans

On August 25, 2014 at 7:56:13 PM, Stephen Wan (notifications@github.com) wrote:

What version of node.js are you using? node --version


Reply to this email directly or view it on GitHub.

@alphablondy
Copy link

Changing the node.js version to 0.10.28 worked for me. Thank you Stephen for your prompt response and the work that you have put into this project. Our Sonos speakers are now truly portable.

@philiptevans
Copy link
Author

can you tell me how I get the earlier version of node please? thanks!

@alphablondy
Copy link

I presume you are installing this on a mac. Im running 10.9.4 of OSX.

Install n.
$ sudo npm install -g n

Install 0.10.28 version of node.js
$ sudo n 0.10.28

Now tell n to use the 0.10.28 version of node.js for airsonos
$ sudo n use 0.10.28 /usr/local/bin/airsonos

AirSonos will launch at this point and you can begin streaming your content. Should you decide to run AirSonos later, you can just issue the command as it will use the 0.10.28 version of node.js for all subsequent invocations:

$ airsonos

@tearsen
Copy link

tearsen commented Aug 26, 2014

Great, works again. Thx for the quick solution.

@jgrossiord
Copy link

Worked for me also, thank you @stephen for the soft and thank you @alphablondy for workaround of this issue

@stephen stephen changed the title Segmentation fault: 11 error Not working on node 0.11.x Sep 30, 2014
@stephen stephen added the bug label Oct 26, 2014
@stephen stephen changed the title Not working on node 0.11.x Support for node 0.11.x Nov 4, 2014
@stephen
Copy link
Owner

stephen commented Nov 4, 2014

Just to document where we're at with this: previously, there were three native modules that broke moving to 0.11.x:

Currently, ursa has been replaced, but the other two packages need to be updated before this will work properly on 0.11.x.

@stephen
Copy link
Owner

stephen commented Jan 14, 2015

Progress: As of 0.0.26, airsonos builds on node >= 0.11.13.

However, there's a problem when attempting to connect to any device - it seems that none of the apple challenges are being accepted... The encryption doesn't seem to have changed (i.e. same outputs from generateAppleResponse from 0.10.x and 0.11.x), so perhaps the client device is perceiving the IP or mac address differently and rejecting the response? (Change in mdns module maybe?)

@stephen
Copy link
Owner

stephen commented Aug 9, 2015

Closing in favor of #113

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

No branches or pull requests

6 participants