PDA

View Full Version : Constant Rebuffing using Spotify on LMS



stovis
2016-03-08, 16:07
When I try to use Spotify on LMS, I get constant rebuffering. It plays a little of the song, then maybe a little more, then it skips to the next track, and repeats the process. It is making Spotify unusable. I can play Pandora and Slacker no problem on LMS. Is this a Spotify server problem? Does anyone else have this problem?

Here are the error logs:

[16:11:50.186540] music_delivery:427 called with num_frames: 2048
[16:11:50.186551] _streambuf_canwrite:320 player: 0 can't write error: Resource temporarily unavailable 35
[16:11:50.186561] music_delivery:517 returning without writing - can't write
[16:11:50.186570] music_delivery:525 streamed frames: 380928 can't write: 64 rate: 41225 / 44100
[16:11:50.380324] music_delivery:427 called with num_frames: 2048
[16:11:50.380420] _streambuf_canwrite:337 player: 0 wrote 2785 stored bytes
[16:11:50.380444] _streambuf_canwrite:353 state BUFFERING -> STREAMING
[16:11:50.380644] _streambuf_write:274 player: 0 wrote 2767 new bytes of 2767 min 2767
[16:11:50.380779] _streambuf_write:274 player: 0 wrote 2764 new bytes of 2764 min 2764
[16:11:50.380797] music_delivery:584 streamed frames: 382976 can't write: 64 rate: 40595 / 44100
[16:11:50.380812] music_delivery:427 called with num_frames: 2048
[16:11:50.380956] _streambuf_write:274 player: 0 wrote 0 new bytes of 2720 min 0
[16:11:50.380973] _streambuf_write:285 storing remaining 2720 bytes
[16:11:50.380983] _streambuf_write:286 state STREAMING -> BUFFERING
[16:11:50.381101] _streambuf_write:294 storing all 2716 bytes, newsize: 5436
[16:11:50.381116] _streambuf_write:295 state BUFFERING -> BUFFERING
[16:11:50.381127] music_delivery:584 streamed frames: 385024 can't write: 64 rate: 40808 / 44100
[16:11:50.381139] music_delivery:427 called with num_frames: 2048
[16:11:50.381153] _streambuf_canwrite:320 player: 0 can't write error: Resource temporarily unavailable 35
[16:11:50.381163] music_delivery:517 returning without writing - can't write
[16:11:50.381172] music_delivery:525 streamed frames: 385024 can't write: 65 rate: 40808 / 44100
[16:11:50.381181] music_delivery:427 called with num_frames: 2048
[16:11:50.381192] _streambuf_canwrite:320 player: 0 can't write error: Resource temporarily unavailable 35
[16:11:50.381202] music_delivery:517 returning without writing - can't write
[16:11:50.381210] music_delivery:525 streamed frames: 385024 can't write: 66 rate: 40808 / 44100
[16:11:50.577239] music_delivery:427 called with num_frames: 2048
[16:11:50.577287] _streambuf_canwrite:337 player: 0 wrote 5436 stored bytes
[16:11:50.577299] _streambuf_canwrite:353 state BUFFERING -> STREAMING
[16:11:50.577425] _streambuf_write:274 player: 0 wrote 3134 new bytes of 3134 min 3134
[16:11:50.577442] music_delivery:584 streamed frames: 387072 can't write: 66 rate: 40190 / 44100
[16:11:50.577452] music_delivery:427 called with num_frames: 2048
[16:11:50.577555] _streambuf_write:274 player: 0 wrote 0 new bytes of 3018 min 0
[16:11:50.577565] _streambuf_write:285 storing remaining 3018 bytes
[16:11:50.577571] _streambuf_write:286 state STREAMING -> BUFFERING
[16:11:50.577658] _streambuf_write:294 storing all 2821 bytes, newsize: 5839
[16:11:50.577666] _streambuf_write:295 state BUFFERING -> BUFFERING
[16:11:50.577704] music_delivery:584 streamed frames: 389120 can't write: 66 rate: 40402 / 44100
[16:11:50.577714] music_delivery:427 called with num_frames: 2048
[16:11:50.577724] _streambuf_canwrite:320 player: 0 can't write error: Resource temporarily unavailable 35
[16:11:50.577731] music_delivery:517 returning without writing - can't write
[16:11:50.577737] music_delivery:525 streamed frames: 389120 can't write: 67 rate: 40402 / 44100
[16:11:50.577744] music_delivery:427 called with num_frames: 2048
[16:11:50.577751] _streambuf_canwrite:320 player: 0 can't write error: Resource temporarily unavailable 35
[16:11:50.577758] music_delivery:517 returning without writing - can't write
[16:11:50.577764] music_delivery:525 streamed frames: 389120 can't write: 68 rate: 40402 / 44100
[16:11:50.749244] music_delivery:427 called with num_frames: 2048
[16:11:50.749303] _streambuf_canwrite:320 player: 0 can't write error: Resource temporarily unavailable 35
[16:11:50.749316] music_delivery:517 returning without writing - can't write
[16:11:50.749326] music_delivery:525 streamed frames: 389120 can't write: 69 rate: 39693 / 44100
[16:11:50.945649] music_delivery:427 called with num_frames: 2048
[16:11:50.945730] _streambuf_canwrite:320 player: 0 can't write error: Resource temporarily unavailable 35
[16:11:50.945747] music_delivery:517 returning without writing - can't write
[16:11:50.945761] music_delivery:525 streamed frames: 389120 can't write: 70 rate: 38915 / 44100
[16:11:51.190435] music_delivery:427 called with num_frames: 2048
[16:11:51.190504] _streambuf_canwrite:337 player: 0 wrote 5839 stored bytes
[16:11:51.190522] _streambuf_canwrite:353 state BUFFERING -> STREAMING
[16:11:51.190681] _streambuf_write:274 player: 0 wrote 2671 new bytes of 2671 min 2671
[16:11:51.190814] _streambuf_write:274 player: 0 wrote 0 new bytes of 2769 min 0
[16:11:51.190834] _streambuf_write:285 storing remaining 2769 bytes
[16:11:51.190846] _streambuf_write:286 state STREAMING -> BUFFERING
[16:11:51.190861] music_delivery:584 streamed frames: 391168 can't write: 70 rate: 38185 / 44100
[16:11:51.190875] music_delivery:427 called with num_frames: 2048
[16:11:51.190890] _streambuf_canwrite:320 player: 0 can't write error: Resource temporarily unavailable 35
[16:11:51.190900] music_delivery:517 returning without writing - can't write
[16:11:51.190910] music_delivery:525 streamed frames: 391168 can't write: 71 rate: 38185 / 44100
[16:11:51.190920] music_delivery:427 called with num_frames: 2048
[16:11:51.190932] _streambuf_canwrite:320 player: 0 can't write error: Resource temporarily unavailable 35
[16:11:51.190943] music_delivery:517 returning without writing - can't write
[16:11:51.190953] music_delivery:525 streamed frames: 391168 can't write: 72 rate: 38185 / 44100
[16:11:51.256256] main:567 new connection
[16:11:51.258213] main:619 req: relogin res: (null) par: (null) prot: HTTP/1.0 auth: (null)
[16:11:51.258234] main:1574 relogin requested
[16:11:51.258268] main:1603 resetting streambuf
[16:11:51.258292] _streambuf_reset:84 state BUFFERING -> IDLE
[16:11:53.317092] logged_out:61 logged out
[16:13:59.002213] main:567 new connection
[16:13:59.002625] main:619 req: prefetch.json res: spotify:track:3moweIE9FFG6kkRV9XyDBE par: (null) prot: HTTP/1.0 auth: (null)
[16:13:59.003164] main:702 relogging in as user: stovisman
[16:13:59.004249] log_message:81 log: 22:13:59.004 I [ap:1752] Connecting to AP ap.spotify.com:4070
[16:13:59.137361] log_message:81 log: 22:13:59.137 I [ap:1226] Connected to AP: 193.235.203.162:4070
[16:13:59.329978] logged_in:54 logged in
[16:13:59.330245] credentials_blob_updated:119 credentials blob updated
[16:13:59.331607] credentials_blob_updated:119 credentials blob updated
[16:13:59.808766] log_message:81 log: 22:13:59.808 E [ap:4172] ChannelError(2, 1, link-tracks)
[16:14:00.334018] main:985 prefetching track: No error
[16:14:00.335301] metadata_updated:86 new meta
[16:14:00.971791] log_message:81 log: 22:14:00.971 E [ap:4172] ChannelError(10, 1, playlist)
[16:14:00.971826] log_message:81 log: 22:14:00.971 E [ap:4172] ChannelError(1, 1, playlist)
[16:14:00.972263] log_message:81 log: 22:14:00.972 E [ap:4172] ChannelError(4, 1, playlist)
[16:14:01.543996] log_message:81 log: 22:14:01.543 E [ap:4172] ChannelError(0, 1, link-tracks)
[16:14:02.782243] log_message:81 log: 22:14:02.782 I [file_streamer_simple.cpp:769] Request for file ea78fae7fa311d845046e9c8cb462ecb50a6e666 complete (code: 0)
[16:14:02.782409] log_message:81 log: 22:14:02.782 E [ap:4172] ChannelError(0, 1, link-tracks)
[16:14:02.860812] log_message:81 log: 22:14:02.860 E [ap:4172] ChannelError(30, 1, playlist)
[16:14:03.029313] log_message:81 log: 22:14:03.029 E [ap:4172] ChannelError(49, 1, playlist)
[16:14:03.597617] log_message:81 log: 22:14:03.597 E [ap:4172] ChannelError(0, 1, link-tracks)
[16:14:09.744232] log_message:81 log: 22:14:09.744 E [ap:4172] ChannelError(0, 1, playlist)
[16:14:30.346104] log_message:81 log: 22:14:30.346 I [offline-mgr:2032] 0 files are locked. 0 images are locked
[16:14:30.346199] log_message:81 log: 22:14:30.346 I [offline-mgr:2058] 0 files unlocked. 0 images unlocked
[16:24:02.738717] logged_out:61 logged out

Thanks for your help.

Bill

Giza2020
2016-03-09, 13:29
And it's not because the Spotify account is being used elsewhere by someone else? Sounds similar to what happens when the account is in use.

stovis
2016-03-09, 14:20
And it's not because the Spotify account is being used elsewhere by someone else? Sounds similar to what happens when the account is in use.

No, just one user and using it on the SB only.

callesoroe
2016-03-11, 06:01
No, just one user and using it on the SB only.

Check that the player sound settings is set to "streaming through proxy". This is a well known issue.

FredFredrickson
2016-03-16, 15:09
Check that the player sound settings is set to "streaming through proxy". This is a well known issue.

This seems to have fixed it for me. Am i wrong in understanding that it automatically uses proxy streaming when you're synched?

callesoroe
2016-03-17, 08:20
Check that the player sound settings is set to "streaming through proxy". This is a well known issue.

This seems to have fixed it for me. Am i wrong in understanding that it automatically uses proxy streaming when you're synched?

It is a player setting. But if the primary player has this setting, maybe the players that sync with it, take over this setting.... I am not sure how this Works.

bpa
2016-03-17, 08:55
This seems to have fixed it for me. Am i wrong in understanding that it automatically uses proxy streaming when you're synched?

Not wrong. When players are synced - LMS has to become the sole source of audio stream so that the same audio samples can be sent out to all player in a controlled manner.

When there is asingle player - if no transcoding/resampling is required direct playing (i.e. stram goes directly from station to player) is possible which means LMS less traffic on local LAN and less load on LMS server. Proxied streaming means LMS receives stream from station, buffers it and then resends packets unchanged to player so twice as much traffic on local LAN and also LMS processing. Because of way TCP ack windows works LMS has larger buffer and so using proxied streaming evens out a lumpy/bursty source station.

stovis
2016-03-17, 10:56
Check that the player sound settings is set to "streaming through proxy". This is a well known issue.

This seems to have solved the problem for me too, although I don't see how it should have since I have an SB3 and a Boom which are always synced, and it should have already been using proxied streaming because of that. Thanks for the suggestion.

stovis
2016-03-19, 19:06
This seems to have solved the problem for me too, although I don't see how it should have since I have an SB3 and a Boom which are always synced, and it should have already been using proxied streaming because of that. Thanks for the suggestion.

I spoke too soon. It's back to the constant rebuffering on Spotify now. I think it must have to so with their servers being overloaded at certain times of the day/night. Although if that were true, I would expect a lot more people on here to also be affected by this problem.

Anyone else have any ideas I could try?

Giza2020
2016-03-20, 08:13
You haven't described hardware yet but if it's a low powered solution like a pi I have a *possible* cause... in the past I had issues with upnp overloading my hardware and causing buffering...my TV was the culprit and caused buffering when turned on. .I turned upnp off in lms and solved the problem.

stovis
2016-03-20, 14:14
You haven't described hardware yet but if it's a low powered solution like a pi I have a *possible* cause... in the past I had issues with upnp overloading my hardware and causing buffering...my TV was the culprit and caused buffering when turned on. .I turned upnp off in lms and solved the problem.

Thanks. The LMS is on my mac mini. Just for my future knowledge, where do I go to in the LMS settings to turn off upnp? I can't seem to find it.

garym
2016-03-20, 15:49
Thanks. The LMS is on my mac mini. Just for my future knowledge, where do I go to in the LMS settings to turn off upnp? I can't seem to find it.

LMS > Settings > Plugins. Untick "UpNp/DLNA server" then restart LMS when asked.

stovis
2016-03-20, 15:57
LMS > Settings > Plugins. Untick "UpNp/DLNA server" then restart LMS when asked.

I don't have that one, but I have UPnP/DLNA Media Interface (v1.0). Is that the one?

garym
2016-03-20, 16:05
I don't have that one, but I have UPnP/DLNA Media Interface (v1.0). Is that the one?

that's it

pippin
2016-03-20, 20:09
Proxied streaming generally should only be relevant on Touch and Radio since for other players the stream is transcoded on the server anyway.

You don't happen to have disabled FLAC streaming, don't you? If you have, please check whether re-enabling FLAC streaming fixes the issue

callesoroe
2016-03-21, 01:42
I spoke too soon. It's back to the constant rebuffering on Spotify now. I think it must have to so with their servers being overloaded at certain times of the day/night. Although if that were true, I would expect a lot more people on here to also be affected by this problem.

Anyone else have any ideas I could try?
Are you playing with wired og wifi players ?? If wifi ? Are there any Playstation 4 connected ??? When my Son got one and connected it to WIFI, the there was buffering on all wifi SB players.
As soon as Playstation got wired then rebuffering dissapered.

stovis
2016-03-21, 07:37
Proxied streaming generally should only be relevant on Touch and Radio since for other players the stream is transcoded on the server anyway.

You don't happen to have disabled FLAC streaming, don't you? If you have, please check whether re-enabling FLAC streaming fixes the issue

No, FLAC Streaming is enabled. Thanks.

stovis
2016-03-21, 07:38
Are you playing with wired og wifi players ?? If wifi ? Are there any Playstation 4 connected ??? When my Son got one and connected it to WIFI, the there was buffering on all wifi SB players.
As soon as Playstation got wired then rebuffering dissapered.

Wifi players and no Playstation. Thanks.

strim
2016-03-27, 14:38
I set the proxy streaming on only the Radio and now it don't go rebuffing any more.
Thanks for the info :-)