Answered

sonos port not working as upnp renderer from foobar2000


Userlevel 1
Badge +1

Hi my sonos port no longer works as a upnp renderer using foobar2000 on windows as the client/controller. Interestingly I'm able to use my Roam as a renderer and all speakers in my s1 system also work OK as renderer too from the same PC.

 

Even more confusing is that BubbleUPnP (android app) IS able to send a UPnP stream to the Port.

icon

Best answer by groove_regulator 21 April 2023, 15:49

View original

This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

28 replies

Userlevel 7
Badge +18

Hi @groove_regulator 

That is some unexpected good news! I’m glad to hear it’s working for you again.

I guess we’ll never know what was going on there. If it ever happens again, my first recommendation would now be to reboot the unit by unplugging it from power for a time.

You are most welcome!

Userlevel 1
Badge +1

HI @Corry P  I just received a sonos system update….streaming from foobar2000 to the port has started working again….🤣

 

thanks for all your efforts, here’s a diagnostics id showing it working

 

847727681

Userlevel 7
Badge +18

Hi @groove_regulator 

Using Windows 10 build 19045, a Port and the same versions of foobar2000 and it’s UPnP plugin as yourself, my colleague was unable to recreate this issue you’re seeing.

He isn’t sure where he can find the same Windows build as you are on (19044), however, so we’re wondering if you can a) update your computer to Windows 10 build 19045 or let us know if the other computer you tested from is on 19045 already and b) send us a sample file that you know causes the problem. It’s just the file used and the exact build of Windows that separates your setup from my colleague’s at the moment, and we’d like to close the gap as much as we can.

If you don’t have access to a file-sharing cloud service, please let me know and I’ll message you an email address to use instead.

My thanks.

Userlevel 1
Badge +1

thanks @Corry P fingers crossed we get to the bottom of it, I’m able to reproduce it with 2 different PCs btw (both Windows 10). One using an ethernet connection to the LAN, the other PC using Wifi (not sure that would be material but worth knowing all the same)

Userlevel 7
Badge +18

Hi @groove_regulator 

Thanks for that!

I’m pretty sure this is a software issue - with hardware issues, things tend to either work or not work, and they don’t get so weirdly specific.

My colleague has had to order himself a Port (we’re mostly all working from home, so don’t have immediate access to all models) to test properly - so far, he’s been testing on an Amp and has been unable to reproduce the behaviour. I’ll get back to you in a day or three.

 

Userlevel 1
Badge +1

I wonder if my Port simply has a H/W fault…. will leave it to you guys :)

Userlevel 1
Badge +1

HI @Corry P 

 

Userlevel 7
Badge +18

Hi @groove_regulator 

One more question for you - what version of Windows is your foobar2000 installed on? We’ve been testing on Windows 11 up to this point.

Userlevel 7
Badge +18

Hi @groove_regulator 

Thanks for all those details - I’ve passed them to a colleague, and I will get back to you once he’s done some testing.

Userlevel 1
Badge +1

HI @Corry P just updated foobar2000 to v1.6.16 along with upnp component to 1.4

Unfortunately the issue persists

Userlevel 1
Badge +1

HI @Corry P as always I appreciate your continued support, so Diagnostics ID with foobar2000 successfully sending the stream to the Roam → 1701381231

Foobar version v1.6.11

Foobar has the default foo_out_upnp component installed v1.3.2

I wouldn’t get too hung up on the file I’m trying to stream, I’ve not managed to get it to “break” using the Roam no matter what I send (I had it streaming to the Roam from foobar2000 for about 5 hours on the weekend with no issues).

Let me know if I can do anything else.

Tony

Userlevel 7
Badge +18

Hi @groove_regulator 

In addition, it looks like a plugin is needed to get foobar2000 playing over UPnP - could you please provide details of which plugin you used? Thanks.

This does of course beg the question of whether or not you still encounter the issue if you use a different plugin?

 

Userlevel 7
Badge +18

Hi @groove_regulator 

My colleague is currently looking into this issue, as although UPnP is unsupported, our products shouldn’t be crashing, so yes please - a diagnsotic of Roam playing successfully will be helpful as all data points will be useful, I think.

The Music Library indexing problem only seems to exist for some NAS drives, though I certainly appreciate how annoying all this must be for you. One option would be to have your library stored on a computer instead, though if you don’t already have a computer powered on 24/7 I can see why this wouldn’t be ideal. I personally have my S2 system linking to a Raspberry Pi with a Samba share and experience no issues, though I admit I don’t need to connect a S1 system to it too (though I do have an Android SMB app that needs SMBv1).

My colleague is currently trying to reproduce your issue with a macOS version of foobar2000 without success (as in, it works). Could you please provide us with the software version of foobar2000 that you’re running and, if possible, a sample file (via Dropbox or Google Drive or similar) of what you’re trying to play? He’s about to start trying on Windows now. Thanks.

 

Userlevel 1
Badge +1

thanks @Corry P I appreciate the feedback however it is disappointing that this doesn’t work. What I find confusing is that it happily works with the Roam. Would it be worth me doing a test where I stream to the Roam from Foobar2000 and send you the Diagnostics Id?

I have to admit I’m getting fairly disappointed with my S2 system, I’ve had it less than a year (i think) and it’s given me a number of significant issues ( this one here being the most critical → 

 ). I’d started using foobar2000 more often as a result of the S2 NAS Music Library issue, and now foobar2000 as you’ve seen is broken too.

The S1 platform just works better, I don’t recall any significant issue with S1 in the decade I’ve had it.

Userlevel 7
Badge +18

Hi @groove_regulator 

Ah yes - the “click”. I asked, and Port has no mechanical parts, so the click must be coming from your amplifier - which is totally normal behaviour (especially since the Port is rebooting) and not a concern in any way.

Given that the issue is not related to the length of the file, however, and that UPnP playback is possible but not supported, I’m afraid the best advice I can give you at the moment is to not use foobar200 and use BubbleUPnP instead, if possible.

We did tighten some security recently, so it could be that BubbleUPnP is adhering to the increased security requirements more than foobar2000 is, but please be aware that this is just a guess and should not be taken as definite.

I hope you find a workaround that suits your usage needs.

Userlevel 1
Badge +1

Hi @Corry P thanks for getting back to me, I can confirm that I’ve tried numerous tracks of varying lengths and bitrates, all exhibit the same behaviour. Your feedback makes sense in that “something” happens at the Port end when trying to start the stream from Foobar, albeit it ends with a crash ( that probably explains why the DAC gives the “click.” )

Looking forward to a resolution, let me know if there’s anything else I can do to help.

Tony

Userlevel 7
Badge +18

Hi @groove_regulator 

Thanks for performing those tests and providing the diagnostics - I’ve had a look and I think I see what the problem is.

So, when the request is sent via BubbleUPnP, I can see the Port accept the prompt to start playing and it does so. With the foobar2000 attempt, however, the Port is immediately crashing and restarting it’s main software - it can recover from this in a mere second or two, but it obviously doesn’t play the requested media (you might even see the Port go offline for a moment in the Sonos app).

Due to another recent thread here on the community which strikes me as similar, in a way, I suspect a possible reason for this happening might be if the file foobar2000 is trying to play is extremely short - as in, a second or two long. Could you please confirm if this is the case or not? Thanks.

This is of course not expected or wanted behaviour, but if I can verify that the length of the track is the issue, I can at least say we’ve seen this behaviour before and are investigating.

I suspect that the person on this thread was also using UPnP to initiate playback, but the tiny audio file crashed my Amp via Music Library playback, so I don’t think the issue was do to the UPnP method.

Edit: from your first post, it doesn’t actually look like it being a short file is the answer, but I’ll wait for you to confirm.

Userlevel 1
Badge +1

HI @Corry P 

Diagnostics ID whilst unsuccessfully using foobar2000 1576535344

Userlevel 1
Badge +1

HI @Corry P 

Diagnostics ID whilst successfully using BubbleUPnP 1771870117

Userlevel 7
Badge +18

Hi @groove_regulator 

Looking at UPnP playback events is not something I’m used to doing. Could you please initiate playback to the Port via BubbleUPnP, then try via foobar2000, and then submit another support diagnostic for me? I’d like to compare the two. Thanks.

While you do that, I’m going to try to get some assistance (a bit tricky today because of the long weekend), as I am not entirely sure the DAC does click (though I could easily be wrong).

Userlevel 1
Badge +1

One point to add, although you’re not seeing anything in the logs, there is certainly some reaction from the Port when I start the stream since as I say I can hear the DAC “click” which as I say it does when changing sample rates or inputs. To clarify, with the output in Foobar set to the Port, if I double click around a playlist, choosing tracks at random, I’ll hear the DAC “click” each time but the stream won’t start.

Userlevel 1
Badge +1

HI @Corry P  with ethernet removed I get the same behaviour. I note your point on using Sonos to Index the library unfortunately (as you’re probably aware) there are some issues with Sonos and (presumably) SMB2,3 and large libraries since I regularly get errors thrown that “share has disappeared” as reported by me here 

.

Userlevel 7
Badge +18

Hi @groove_regulator 

Thanks for the diagnostics! I see no sign in them of the Port receiving any instruction to play anything, nor of a connection being made.

Combine this with the fact that you are able to play to the Port via BubbleUPnP, and I’m tempted to come to the conclusion that foobar2000 is where the problem lies, though I don’t understand why it is still able to play to the Roam. It’s certainly strange. Was there a software update for foobar2000 recently?

Just in case this is down to the network, you could try disconnecting the Port from ethernet - that way, it will be using the same network interface as the Roam, which may, for some reason, perform differently. 

I hope this helps, but please be aware it is really just a guess. Our official answer will always be to add the folder to Sonos’ Music Library and select music to play from within the Sonos app (though if you exceed the limit of ~65,000 tracks, we recommend the use of Plex instead).

 

Userlevel 1
Badge +1

HI @Corry P restarted router/switches/wifi etc (full cold restart) - no change, issue persists.

Userlevel 1
Badge +1

HI @Corry P  here’s the diag ref

 

116911275

 

I’ve also given a screen grab where you can see Foobar is just “stuck”