PDA

View Full Version : Spotty: no sound after first two songs



tole
2018-04-29, 08:35
Hi all,

I cannot get the spotty plugin to work reliably for me. I have it running on a raspi 2B with the max2play v2.46 and a nightly server from the 7.9 branch a few weeks old. Playback devices are a touch and a radio.

After server restart, spotty will play two songs and then, when starting a third song, there is now sound. Only the progrss bar and timer for the song are running as if the song is beeing played.

I have attached a part of the server.log with protocol level spotty set to "Info". Does anyone know, what to do?

Thanks for you time! Tole

mherger
2018-04-29, 22:51
The daemon seems to be crashing quit often, the log mentions re-starting
it regularly. Could you please check memory usage on your system? Or
give another spotty helper a try (see Settings/Advanced/Spotty)?

--

Michael

tole
2018-04-30, 00:44
Thanks, Michael. Will check memory usage tonight.

I tried the other helper, but never got any sound, only clicking.

Tole

tole
2018-04-30, 09:03
Hi Michael,

memory is quite full. Here is what top says during spotty playback:

24964

But not completely full...

Could it have to do with cenverting Ogg to FLAC, Web interface says:

705kb/s CBR, Ogg Vorbis (Spotify) (Konvertiert in FLAC)

Why is that?

tole
2018-04-30, 09:16
Ah, when playback stops, top looks like that:

24965


???

mherger
2018-04-30, 21:53
> Ah, when playback stops, top looks like that:

That's not alarming. Memory shouldn't be the issue. Can you check the
other settings for Spotty. Is the "local announcement" box checked or
not (don't change it!)?

Disabling transcoding to flac would take out one risk of the equation
(Settings/Advanced/File Types). Set it to PCM and see whether that helps.

--

Michael

tole
2018-05-01, 03:23
> Ah, when playback stops, top looks like that:

That's not alarming. Memory shouldn't be the issue. Can you check the
other settings for Spotty. Is the "local announcement" box checked or
not (don't change it!)?


It is checked.




Disabling transcoding to flac would take out one risk of the equation
(Settings/Advanced/File Types). Set it to PCM and see whether that helps.



Did that. Tried mp3 and PCM, did not make a difference to stability. So reverted back to original setting.

Maybe two songs is not always true: I listened several hours this morning and only had to restart the server five or six times.

I udated to the latest nightly just now, just because I was at it...

mherger
2018-05-01, 05:06
> Maybe two songs is not always true: I listened several hours this
> morning and only had to restart the server five or six times.

Can you confirm that this is limited to "Connect" mode, eg. controlling
your SB using the Spotify app on your mobile phone? Playing back while
controlling on the SB itself would work?

You might want to enable INFO logging for plugin.spotty, until it fails
again. Then provide another server.log copy.

--

Michael

tole
2018-05-01, 05:27
> Maybe two songs is not always true: I listened several hours this
> morning and only had to restart the server five or six times.

Can you confirm that this is limited to "Connect" mode, eg. controlling
your SB using the Spotify app on your mobile phone? Playing back while
controlling on the SB itself would work?


No, I can't. I have not used the spotify app at all, only for getting the plugin to work. I control via touch, radio directly or via browser or ipeng app.




You might want to enable INFO logging for plugin.spotty, until it fails
again. Then provide another server.log copy.


Will do.

Thank you so much for your help and time!

mherger
2018-05-01, 06:10
> No, I can't. I have not used the spotify app at all, only for getting
> the plugin to work. I control via touch, radio directly or via browser
> or ipeng app.

Oh, now that's interesting. I thought that was pretty much rock solid.
And there's little reason why it would stop after some time. The
server.log definitely should help us.
--

Michael

tole
2018-05-01, 11:50
> No, I can't. I have not used the spotify app at all, only for getting
> the plugin to work. I control via touch, radio directly or via browser
> or ipeng app.

Oh, now that's interesting. I thought that was pretty much rock solid.
And there's little reason why it would stop after some time. The
server.log definitely should help us.


Ok, now I hab no more crashes, so the log file attached might be boring.

I disabled PCM and FLAC for spotty in advanced settings, so now it only uses mp3 recoding. I realized, that my wireless network is pretty weak at 2.4 GHz, so sometimes only very slow wireless between pi and touch or radio (router says 6 mbps). Streaming mp3 needs less bandwidth. Could that have been the cause for the crashes?

Also, I tried out the spotify app on windows and on iOS to control both touch and radio. No problems there.

JeffHart
2018-05-05, 06:37
In my setup, WiFi quality had the biggest impact on Spotty performance. Not sure what APs you use, but it might help to try upgrading your firmware to the latest revision. I am running Ubiquiti APs - 1 AC Pro and 1 AC Lite, upgraded the firmware last month and (fingers crossed) performance has been flawless. I also updated to a recent 7.9.2 nightly from 7.9.1 and updated Spotty at the same time, so it could be a combination of any of those factors. Iím giving credit to the WiFi primarily because I used to get periodic drops streaming video before and thatís stopped as well, so unrelated to my LMS setup.

tole
2018-05-06, 01:40
You might be right. Unfortunately my AP is the router of my provider. Using a different AP is mre complicated.

Since setting disabling FLAC and PCM in file types settings for spotty, such that it reencodes to mp3, it has been working flawlessly, streaming to SB Touch and Radio and iOS devices with iPeng9 as players. Why can spotty not stream OggVOrbis natively?

I will now enable FLAC again just to try it out :-)

tole
2018-05-06, 02:02
I will now enable FLAC again just to try it out :-)

Ok, music stopped again after one or two songs when enabling FLAC in file types settings. I have attached the log file. Spotty was updated to 2.3.2 before. I have now disabled FLAC again.

I saw people have simliar problems in the other thread (the one about 2.3.0)...

tole
2018-05-06, 05:05
Pity, now (since 2.3.2??) it stops playing at track transitions. There is really nothing in the log... as far as I can see.

slartibartfast
2018-05-06, 06:00
I see the same but only (I think) when using Connect.
Pity, now (since 2.3.2??) it stops playing at track transitions. There is really nothing in the log... as far as I can see.

Sent from my SM-G900F using Tapatalk

mherger
2018-05-06, 11:53
> I saw people have simliar problems in the other thread (the one about
> 2.3.0)...

That log doesn't show me anything unexpected - except for quite a few
server restarts within an hour or two. But I guess that was you?

What OS & hardware are you running LMS on?

--

Michael

tole
2018-05-07, 11:54
> I saw people have simliar problems in the other thread (the one about
> 2.3.0)...

That log doesn't show me anything unexpected - except for quite a few
server restarts within an hour or two. But I guess that was you?l

Yes, that was me! Spotty music stopped, so had to restart. I have not been using connect.



What OS & hardware are you running LMS on?


Raspberry Pi 2 Model B
Max2Play 2.46

Betriebssystem: Debian - DE - utf8
Plattformarchitektur: armv7l-linux
Perl-Version: 5.14.2 - arm-linux-gnueabihf-thread-multi-64int

lsb_release -a
Distributor ID: Debian
Description: Debian GNU/Linux 7.8 (wheezy)
Release: 7.8
Codename: wheezy

/proc/version:
Linux version 3.18.7-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015