mopidy icon indicating copy to clipboard operation
mopidy copied to clipboard

no sound after station changed (from playlist) on archlinuxarm (armv7h) with gstreamer 1.22.1

Open solsticedhiver opened this issue 2 years ago • 4 comments

I have a playlist of radio stations.

Since I upgraded to gstreamer 1.22.1 on rpi3b running archlinux arm (32 bits/armv7h), when I change station, I got no sound, even tough the wbe ui says that the station changed.

In fact, from the verbose log, one can see that mopidy keeps on buffering for some unknwon reason.

This is not a network problem, because this happens when changing radio station. If starting with station #1, it is ok. but station #2 fails. but if starting with station #2 no problme, but swithcing to station #1, this fails.

Downgrading to gstreamer 1.22.0 with gst-python and all gst-plugins packages, fixes the issue right away.

This is likely related to that OverflowError:

OverflowError: Python int too large to convert to C long                     
he above exception was the direct cause of the following exception:                                                                                                                                
Traceback (most recent call last):                                                                                                                                                                  
  File "/usr/lib/python3.10/site-packages/mopidy/audio/actor.py", line 229, in on_message
     if msg.type == Gst.MessageType.STATE_CHANGED:                                                                                                                                                   
 SystemError: <built-in method get_value of gi.FieldInfo object at 0xb44e8620> returned a result with an exception set

which cause other problem, like stopiing streaming ... mopidy.log mopidy-deps.txt

solsticedhiver avatar Mar 23 '23 19:03 solsticedhiver

More detailed logs with gstreamer 1.22.0 and then 1.22.1, doing the same sequence:

  • starting mopidy
  • load the playlist
  • select the first radio, and wait it starts to play
  • wait a few seconds
  • switch to somafm/groove salad (12th on the playlist)

running GST_DEBUG_FILE=gstreamer.log GST_DEBUG=3 mopidy -v > mopidy.log 2>&1

mopidy-1.22.0.log gstreamer-no-color-1.22.0.log

mopidy-1.22.1.log gstreamer-no-color-1.22.1.log

1.22.0 works. got sound for 2nd radio after change 1.22.1 no sound for 2nd radio after change

solsticedhiver avatar Mar 24 '23 02:03 solsticedhiver

0:01:11.530224891 10487 0x117d040 WARN alsa gstalsasink.c:1172:gst_alsasink_pause: Error -77 (File descriptor in bad state) calling snd_pcm_pause (alsa->handle, 1) 0:01:11.530344578 10487 0x117d040 ERROR alsa gstalsasink.c:1185:gst_alsasink_pause: alsa-pause: pcm pause error: File descriptor in bad state

Sounds bad but it's at the end of the file so possibly it came later and was missed in the 1.22.0 log?

kingosticks avatar Mar 28 '23 14:03 kingosticks

seems to work so far with gstreamer 1.22.2 and python 3.11. crossing- fingers. not sure

solsticedhiver avatar May 16 '23 17:05 solsticedhiver

it doesn't, see https://github.com/mopidy/mopidy/issues/2121

adrhc avatar Aug 31 '23 16:08 adrhc