Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 4 123 ... LastLast
Results 1 to 10 of 40
  1. #1
    Member
    Join Date
    Apr 2006
    Location
    Wiltshire, UK
    Posts
    48

    Squeezelite on rPi 3 suddenly not working

    Hi all,

    Today I'm suddenly having problems with squeezelite running on a rPi3. Everything looks right, but there's no audio output. If it's at all relevant, I've enabled the visualisation output (-v) and there's no PCM data being output either (the file where the PCM data is output to is being created, but its all zero). Starting squeezelite manually with -d all=info gives the following: https://pastebin.com/XEJRnT2M

    Audio works when playing a video with omxplayer and the volume in alsamixer appears to be turned up. It was working last night. I've have this morning just upgraded LMS but I can't say for certain this is the cause (I didn't play anything via squeezelite immediately prior).

    edit: My Boom is working normally.

    Any ideas how to troubleshoot this further, please? Thank you!
    Last edited by ehjones; 2021-02-06 at 07:30.

  2. #2
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,230
    More information may help others to help you

    which LMS version?

    which squeezelite version?

    which raspberry pi os version?

    what exactly are you trying to play?

    Do you have the "-C" setting enabled in squeezelite?

  3. #3
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,291
    Quote Originally Posted by ehjones View Post
    Any ideas how to troubleshoot this further, please? Thank you!
    What could have changed ?

    Between playing tracks did it suddenly stop ? or was there a gap in usage between workg and not working when something happened (e.g. OS update)

    From log - it looks like squeezelite is v1.8.* - update to latest (e.g. 1.9.8) to be sure it is not an old bug that ghas been fixed..

    edit:

    It looks like no output device specific on command line. Don't use default output device as that can change "randomly" - always specify the output device.

  4. #4
    Member
    Join Date
    Apr 2006
    Location
    Wiltshire, UK
    Posts
    48
    LMS Logitech Media Server Version: 8.1.1 - 1610364019 @ Thu Jan 14 06:24:07 CET 2021

    Squeezelite v1.8

    Both squeezelite and LMS are running on Raspbian 10.7, on rpi3 and rpi2 respectively.

    I'm trying to play mp3 files stored locally on the LMS server. BBC Sounds also fails.

    I don't use -C

    I've tried downgrading to LMS 8.1.0 to no benefit. I also upgraded all the packages on the raspbian installation so I can only guess that that broke something!

  5. #5
    Member
    Join Date
    Apr 2006
    Location
    Wiltshire, UK
    Posts
    48
    I've downloaded Squeezelite v1.9.8-1344. Running this with -d all=info reports this repeatedly:
    [20:48:42.121746] output_thread:764 start error: File descriptor in bad state
    [20:48:42.131911] output_thread:764 start error: File descriptor in bad state
    [20:48:42.142075] output_thread:764 start error: File descriptor in bad state
    [20:48:42.152245] output_thread:764 start error: File descriptor in bad state

    I have a feeling it has something to do with the recent system upgrade. my /var/log/apt/history.log is as follows:
    Start-Date: 2021-02-06 12:07:51
    Upgrade: libraspberrypi-bin:armhf (1.20210108-1, 1.20210201-1), firmware-realtek:armhf (1:20190114-1+rpt10, 1:20190114-1+rpt11), libraspberrypi-dev:armhf (1.20210108-1, 1.20210201-1), libraspberrypi-doc:armhf (1.20210108-1, 1.20210201-1), libldap-2.4-2:armhf (2.4.47+dfsg-3+rpi1+deb10u4, 2.4.47+dfsg-3+rpi1+deb10u5), rpi-eeprom:armhf (11.5-1, 11.6-1), sudo:armhf (1.8.27-1+deb10u2, 1.8.27-1+deb10u3), firmware-atheros:armhf (1:20190114-1+rpt10, 1:20190114-1+rpt11), firmware-libertas:armhf (1:20190114-1+rpt10, 1:20190114-1+rpt11), raspberrypi-kernel:armhf (1.20210108-1, 1.20210201-1), raspberrypi-bootloader:armhf (1.20210108-1, 1.20210201-1), firmware-brcm80211:armhf (1:20190114-1+rpt10, 1:20190114-1+rpt11), bluez-firmware:armhf (1.2-4+rpt7, 1.2-4+rpt8), libldap-common:armhf (2.4.47+dfsg-3+rpi1+deb10u4, 2.4.47+dfsg-3+rpi1+deb10u5), libraspberrypi0:armhf (1.20210108-1, 1.20210201-1), firmware-misc-nonfree:armhf (1:20190114-1+rpt10, 1:20190114-1+rpt11), ca-certificates:armhf (20200601~deb10u1, 20200601~deb10u2), raspberrypi-sys-mods:armhf (20201026, 20210125), tzdata:armhf (2020e-0+deb10u1, 2021a-0+deb10u1)
    End-Date: 2021-02-06 12:14:41

    I'll try specifying an output device, thank you // edit: no change
    Last edited by ehjones; 2021-02-06 at 13:58.

  6. #6
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,291
    Quote Originally Posted by ehjones View Post
    I'll try specifying an output device, thank you // edit: no change
    Not clear what that update is. OS Update could change changed output devices - if it is a big version change to Buster - you may now have Pulseaudio.

    What does squeezelite -l (lower case letter L) show for available devices.


    Please try to upgrade Squeezelite to a 1.9.8 in case it is a bug which has already been fixed.

  7. #7
    Member
    Join Date
    Apr 2006
    Location
    Wiltshire, UK
    Posts
    48
    Thank you for your help

    Squeezelite v1.9.8-1344, Copyright 2012-2015 Adrian Smith, 2015-2021 Ralph Irving.

    ed@sand:~/tmp $ ./squeezelite -l
    Output devices:
    null - Discard all samples (playback) or generate zero samples (capture)
    jack - JACK Audio Connection Kit
    pulse - PulseAudio Sound Server
    default
    output
    sysdefault:CARD=b1 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Default Audio Device
    dmix:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Direct sample mixing device
    dsnoop:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Direct sample snooping device
    hw:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Direct hardware device without any conversions
    plughw:CARD=b1,DEV=0 - bcm2835 HDMI 1, bcm2835 HDMI 1 - Hardware device with all software conversions
    usbstream:CARD=b1 - bcm2835 HDMI 1 - USB Stream Output
    sysdefault:CARD=Headphones - bcm2835 Headphones, bcm2835 Headphones - Default Audio Device
    dmix:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct sample mixing device
    dsnoop:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct sample snooping device
    hw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Direct hardware device without any conversions
    plughw:CARD=Headphones,DEV=0 - bcm2835 Headphones, bcm2835 Headphones - Hardware device with all software conversions
    usbstream:CARD=Headphones - bcm2835 Headphones - USB Stream Output

    Specifying any/all of these output devices doesn't work, except to say if I specify null I get a PCM output meant for visualisation in /dev/shm/squeezelite-b8:27:eb:24:40:e8

    Specifying the 'bcm2835 HDMI 1' outputs with squeezelite starts up okay but with no output.

    Specifying 'pulse' returns
    [21:49:29.037993] test_open:294 playback open error: Connection refused
    [21:49:29.038241] output_init_common:381 unable to open output device
    even with sudo and my user is a member of group audio

    edit: the only web search result regarding the 'output_thread:764 start error: File descriptor in bad state' repeated error relates to disabling mmap on the rpi4 which I don't think is relevant.
    Last edited by ehjones; 2021-02-06 at 15:43.

  8. #8
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,291
    Ignore the visualisation for the moment - it is driven from the data stream from LMS.

    No audio output is an issue with the output device. If as a result of Pulseaudio or something else, some other application has access to audio output device - it can kill output from Squeezelite to same device - Squeezelite wants sole access.

    Please confirm your Raspbian version - I think it is Buster ?
    Please confirm you want to use the HDMI port and not the Headphone ?
    What Alsa device did you use on the Squeezelite command line (e.g. hw:CARD=b1,DEV=0 plughw:CARD=b1,DEV=0 )

    When test playing with omxplayer are using "-o hdmi" or "-o alsa:<device>"

    If using "-o hdmi" - test playing with omxplayer using same Alsa device as you use on Squeezelite ?

    What is the full command line you use to play squeezelite to output on HDMI ?

  9. #9
    Member
    Join Date
    Apr 2006
    Location
    Wiltshire, UK
    Posts
    48

    :)

    Yes I'm using Raspbian 10.7 and HDMI output. I've never needed to set an output option previously - the default was always fine, but suddenly none of the options listed by -l worked, even though hdmi and also was still working for omxplayer.

    Anyway, I was going in circles and nothing I tried was working. I suspected something had become corrupt and now it's working after reinstalling raspbian.

    Thank you for all the ideas, much appreciated

  10. #10
    Member
    Join Date
    Apr 2006
    Location
    Wiltshire, UK
    Posts
    48

    :(

    Sorry to go on about this. I'm not sure where else I can discuss this!

    I've had a recurrence of the problem - squeezelite not working on an rPi3 running upgraded Raspbian Lite 10.7 regardless of any option switches.

    How I can reproduce it:

    1. A fresh flash of Raspbian Lite 32-bit, release 2021-01-11.
    2. $ sudo apt install squeezelite and it works exactly as expected with no need to specify an output.
    3. $ sudo apt update && apt upgrade -y
    4. After a reboot into the new kernel squeezelite no longer outputs audio. It appears to run and LMS can see it. It uses resources on the rPi3 (as displayed by $ top) but no audio plays, and FWIW nothing is output via the visualisation data file in /dev/shm/

    $ uname -a before the upgrade: Linux raspberrypi 5.4.83-v7+ #1379 SMP Mon Dec 14 13:08:57 GMT 2020 armv7l GNU/Linux

    $ uname -a after the upgrade: Linux raspberrypi 5.10.11-v7+ #1399 SMP Thu Jan 28 12:06:05 GMT 2021 armv7l GNU/Linux

    I can't find any other reports of this being an issue, and I'm at a bit of a loss. At least I have a temporary workaround in the meantime. Any input, thoughts or ideas would be much appreciated, thank you.

    $ squeezelite -d all=info before upgrade: https://pastebin.com/VQ5qFyry

    $ squeezelite -d all=info after upgrade: https://pastebin.com/ykWnTVm7

    $ cat /var/log/apt/history.log https://pastebin.com/NYFHgeew

    Downloading the latest version of squeezelite yields exactly the same result, except $ squeezelite -d all=info prints [22:08:01.323784] output_thread:764 start error: File descriptor in bad state repeatedly.
    Last edited by ehjones; 2021-02-08 at 18:28.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •