Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1

    Squeezelite freezing raspberry pi

    Hi all,

    I'm tearing my hair out, so I'm hoping someone might have some advice to help me.

    I've been trying for days to get a stable Squeezelite running on one of my Pi's, but every time I initiate Squeezelite it slows the Pi down and starts skipping badly (SSH also slows to an unresponsive crawl, despite CPU/Memory resources looking fine).

    I've tried both PiCorePlayer and also Raspbian Lite - both show the same behavior.

    Changing network setup hasn't fixed it, different USB DAC made no difference, different power supply made no change.

    Any ideas? Any suggestions on stuff I should try?

  2. #2
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,317
    Quote Originally Posted by s2kiwi View Post
    Hi all,

    I'm tearing my hair out, so I'm hoping someone might have some advice to help me.

    I've been trying for days to get a stable Squeezelite running on one of my Pi's, but every time I initiate Squeezelite it slows the Pi down and starts skipping badly (SSH also slows to an unresponsive crawl, despite CPU/Memory resources looking fine).

    I've tried both PiCorePlayer and also Raspbian Lite - both show the same behavior.

    Changing network setup hasn't fixed it, different USB DAC made no difference, different power supply made no change.

    Any ideas? Any suggestions on stuff I should try?
    Start by telling us which model pi and what exactly you are running on it?

    Ronnie

  3. #3
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    1,203
    Quote Originally Posted by s2kiwi View Post
    I'm tearing my hair out, so I'm hoping someone might have some advice to help me.

    I've been trying for days to get a stable Squeezelite running on one of my Pi's, but every time I initiate Squeezelite it slows the Pi down and starts skipping badly (SSH also slows to an unresponsive crawl, despite CPU/Memory resources looking fine).

    I've tried both PiCorePlayer and also Raspbian Lite - both show the same behavior.

    Changing network setup hasn't fixed it, different USB DAC made no difference, different power supply made no change.

    Any ideas? Any suggestions on stuff I should try?
    If you are using an USB DAC, check if your ALSA setup is at fault (see eg. here for a solution for a similar issue, and here for parameters for various USB DACs)
    Various SW: Web Interface | TUI | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | DB Optimizer | Chiptunes | LMSlib2go | ...
    Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

  4. #4
    Thanks Roland,

    I was mainly just trying to rule out any obvious known bugs before I started again on fault finding.

    So, I've started from scratch with a fresh Pi B+, no DACs etc and a new version of PiCorePlayer 3.2 - no other modifications and the same happens again. Pi goes sluggish, playback skips (but CPU/Memory loads aren't high at all). It get's much worse with sync'd players of any sort. Slightly better with low res files and much worse with high res.

    So, I fired up my older windows server and it seems much better - and works with sync'ing.

    I can only think that means it's the Vortexbox server I'm running... it's a pretty stock new Vortexbox install with no real mods, running on a Intel Centrino vpro V2 with 2GB ram.

    Wipe that server, install a fresh AMD64 Debian Server core install and load up the latest LMS on top...

    Same behaviour!


    I've tried different versions of Squeezelite/hardware etc but nothing other than switching to the windows server makes any difference.


    Is it possible the Linux laptop is somehow incompatible with LMS? Any ideas what I'm missing here?

  5. #5
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,317
    Quote Originally Posted by s2kiwi View Post
    Thanks Roland,

    I was mainly just trying to rule out any obvious known bugs before I started again on fault finding.

    So, I've started from scratch with a fresh Pi B+, no DACs etc and a new version of PiCorePlayer 3.2 - no other modifications and the same happens again. Pi goes sluggish, playback skips (but CPU/Memory loads aren't high at all). It get's much worse with sync'd players of any sort. Slightly better with low res files and much worse with high res.

    So, I fired up my older windows server and it seems much better - and works with sync'ing.

    I can only think that means it's the Vortexbox server I'm running... it's a pretty stock new Vortexbox install with no real mods, running on a Intel Centrino vpro V2 with 2GB ram.

    Wipe that server, install a fresh AMD64 Debian Server core install and load up the latest LMS on top...

    Same behaviour!


    I've tried different versions of Squeezelite/hardware etc but nothing other than switching to the windows server makes any difference.


    Is it possible the Linux laptop is somehow incompatible with LMS? Any ideas what I'm missing here?
    Can't help with regard to Vortexbox, sorry.

    I was going to suggest trying a different OS (or pCP version) but you seem to have done that?

    I've tried different versions of Squeezelite/hardware etc but nothing other than switching to the windows server makes any difference.

    I use this version of Squeezelite

    http://www.gerrelt.nl/RaspberryPi/wo...r-on-raspbian/

    with LMS. I have it now on a rpi3b but have, previously used a 2b and 2b+.

    Good luck

    Ronnie.

  6. #6
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,416
    As CPU and memory doesn't change go up - but Squeezelite and SSH are sluggish - it "feels" like a network issue such as faulty cable, network interface, adaptor, router which is just degrading network communications. Typically when load is light TCP manages to get message through despite errors/lost packets but when load increases network throughput plummets as retransmissions take up more bandwidth.

    When you said you changed network setup - did you change cables, use a different adaptor (e.g. on Pi USB wifi vs on board ethernet) ?

    To see if this is a possibliity - check network interface stats for errors, retries, reset and timeouts on both player and LMS

  7. #7
    Quote Originally Posted by bpa View Post
    As CPU and memory doesn't change go up - but Squeezelite and SSH are sluggish - it "feels" like a network issue such as faulty cable, network interface, adaptor, router which is just degrading network communications. Typically when load is light TCP manages to get message through despite errors/lost packets but when load increases network throughput plummets as retransmissions take up more bandwidth.

    When you said you changed network setup - did you change cables, use a different adaptor (e.g. on Pi USB wifi vs on board ethernet) ?

    To see if this is a possibliity - check network interface stats for errors, retries, reset and timeouts on both player and LMS
    I did wonder this so too. I originally had it running via a powerline ethernet adaptor, so I swapped it over to a wifi dongle - no change in behaviour.

    After another day playing I'm now at:
    * I've decided to go back to Windows as that has eliminated some problems that appear server related (I'll sort the linux server later).
    * On windows a PiB+ I have running PiCorePlayer 3.02 working fine.
    * One my other PiB+ the same memory card with PBP 3.02 doesn't work.

    So, Ultimately I think it's a power related issue.

    The Pi is doing a few power related things:
    • It's running a USB DAC and a GPIO DAC.
    • Two GPIO Pins are triggering a relay (one each) which is then powering on the amps.


    EDIT:
    I've just disconnected everything one by one and the GPIO Pins to the Relays look to be the cause.

    Anyone got any experience in wiring up the GPIO pins in a similar way to give some advice as to why this might be sucking so much power?

  8. #8
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    4,317
    Check the config.txt file to see if max power for the usb is enabled (I think pCP does this by default).

  9. #9
    A quick trip to the RasPi forums confirms the issue is likely a dangerous voltage loop from having a relay that needs too much power and is a low voltage trigger.

    Time for a rethink


    Thanks all!

  10. #10
    Junior Member
    Join Date
    Feb 2011
    Location
    The Netherlands
    Posts
    22
    Try http://dietpi.com/
    I have a Raperry Pi B (not B+ - so very old!) / HiFiBerry DAC running with LMS (7.9.0) and Squeezelite with DietPi, and it runs perfectly. Installation is very simple. Install the image and download LMS and Squeezelite with the easy to use interface (it took me 45min from downloading image, burning on SD, configuration to playing my first song with Spotify!).
    Logitech Squeezebox Touch
    Logitech Squeezebox Radio

    LMS running on CuBox-i4Pro

Posting Permissions

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