Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Mar 2016
    Location
    UK
    Posts
    27

    Squeezeplay and Linux Mint 18.2 - streams drops, program crashes

    Would appreciate some assistance :-)

    I am experiencing problems with running squeezeplay_7.8.0~984_amd64.deb on Linux Mint 18.2 Sonya.

    LMS (7.9.0-164) is hosted on a Synology NAS (DSM 6.1.3-15152 Update 1) on the local network

    When it works, squeezeplay is excellent, but unfortunately when streaming from various sources the stream frequently drops. There is no obvious pattern. The program GUI can load normally and play fine (even hours) and other times the GUI manipulated streams will fail to start. This occurs irrespective of whether the sound source is local to the NAS eg ripped CD or say a BBC radio stream using BBC iPlayer plugin (1.5.4.4) with stream preferences set to DASH->HLS->MP3->FlashAAC.

    Normally once the stream has ceased or fails to start any attempt to manipulate squeezeplay via its GUI results in the GUI disappearing (I assume this means the program has itself crashed). If the GUI is launched via a console session this is repeated (the console window also disappears)

    I have poked around in the Syslog file and a couple of specimen entries at the time of crashes which might be relevant are shown below (see "portion of SysLog file" below. I can make my full SysLog file available on request.

    I appreciate that is this is all very general and as I am very new to Linux, I wonder if anyone might give me some general guidance of how best to adopt a more structured approach to try and narrow down what might be causing the problem. For example are there any log files I can enable or other areas that I should be looking ?

    Cheers

    Alan

    ############################

    Portion of SysLog file
    ############################
    Jul 31 13:07:33 ghost squeezeplay_alsa[14411]: audio_thread_execute:1208 xrun (snd_pcm_writei) err=Broken pipe
    Jul 31 13:07:33 ghost kernel: [14984.442057] do_general_protection: 9 callbacks suppressed
    Jul 31 13:07:33 ghost kernel: [14984.442060] traps: threaded-ml[14424] general protection ip:7f1a747e54a0 sp:7f1a6dd80b80 error:0 in libpulsecommon-8.0.so[7f1a747ab000+7a000]
    Jul 31 13:08:50 ghost squeezeplay_alsa[15493]: main:1395 PREEMPT Not Detected
    Jul 31 13:08:50 ghost squeezeplay_alsa[15493]: pcm_test:917 max sample rate 192000
    Jul 31 13:08:50 ghost squeezeplay_alsa[15493]: audio_thread_execute:944 audio_thread_execute
    Jul 31 13:08:50 ghost squeezeplay_alsa[15493]: pcm_open:823 PCM Open 1 default
    Jul 31 13:08:50 ghost squeezeplay_alsa[15493]: _pcm_open:718 Access type not available: Invalid argument
    Jul 31 13:08:50 ghost squeezeplay_alsa[15493]: pcm_open:835 PCM Open with mmap failed trying to continue,Invalid argument
    Jul 31 13:08:50 ghost squeezeplay_alsa[15493]: pcm_open:837 PCM Open NOMMAP 60B960 default
    Jul 31 13:08:50 ghost squeezeplay_alsa[15493]: pcm_close:604 snd_pcm_drain error: Input/output error
    Jul 31 13:08:50 ghost squeezeplay_alsa[15493]: _pcm_open:726 Opened device default using format: S16_LE sample rate: 44100
    Jul 31 13:08:50 ghost pulseaudio[2449]: [pulseaudio] shm.c: shm_open() failed: Permission denied
    Jul 31 13:08:50 ghost squeezeplay_alsa[15493]: audio_thread_execute:1056 snd_pcm_start error: File descriptor in bad state
    Jul 31 13:08:50 ghost pulseaudio[2449]: [pulseaudio] shm.c: shm_open() failed: Permission denied
    Jul 31 13:08:50 ghost kernel: [15061.684955] [UFW BLOCK] IN=enp38s0 OUT= MAC=60:45:cb:9b:47:06:00:04:20:1b:e5:8f:08:00 SRC=192.168.123.129 DST=192.168.123.132 LEN=130 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=7 DPT=48472 LEN=110
    Jul 31 13:08:50 ghost kernel: [15061.686657] [UFW BLOCK] IN=enp38s0 OUT= MAC=60:45:cb:9b:47:06:00:04:20:23:2c:9d:08:00 SRC=192.168.123.113 DST=192.168.123.132 LEN=130 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=7 DPT=48472 LEN=110
    Jul 31 13:08:51 ghost pulseaudio[2449]: message repeated 126 times: [ [pulseaudio] shm.c: shm_open() failed: Permission denied]
    Jul 31 13:09:39 ghost squeezeplay_alsa[15493]: playback_callback:557 playback started, copyright not asserted
    Jul 31 13:09:39 ghost squeezeplay_alsa[15493]: pcm_open:823 PCM Open 1 default
    Jul 31 13:09:39 ghost squeezeplay_alsa[15493]: _pcm_open:718 Access type not available: Invalid argument
    Jul 31 13:09:39 ghost squeezeplay_alsa[15493]: pcm_open:835 PCM Open with mmap failed trying to continue,Invalid argument
    Jul 31 13:09:39 ghost squeezeplay_alsa[15493]: pcm_open:837 PCM Open NOMMAP 60B960 default
    Jul 31 13:09:39 ghost squeezeplay_alsa[15493]: pcm_close:604 snd_pcm_drain error: Input/output error
    Jul 31 13:09:39 ghost squeezeplay_alsa[15493]: _pcm_open:726 Opened device default using format: S16_LE sample rate: 48000
    Jul 31 13:09:39 ghost pulseaudio[2449]: [pulseaudio] shm.c: shm_open() failed: Permission denied
    Jul 31 13:09:39 ghost pulseaudio[2449]: [pulseaudio] shm.c: shm_open() failed: Permission denied
    Jul 31 13:09:39 ghost squeezeplay_alsa[15493]: audio_thread_execute:1056 snd_pcm_start error: File descriptor in bad state
    Jul 31 13:09:39 ghost pulseaudio[2449]: [pulseaudio] shm.c: shm_open() failed: Permission denied
    Jul 31 13:09:39 ghost kernel: [15111.193246] traps: threaded-ml[15511] general protection ip:7f93c6384789 sp:7f93bef19b20 error:0 in libpulsecommon-8.0.so[7f93c634b000+7a000]

    Jul 31 13:16:02 ghost squeezeplay_alsa[15619]: main:1395 PREEMPT Not Detected
    Jul 31 13:16:02 ghost squeezeplay_alsa[15619]: pcm_test:917 max sample rate 192000
    Jul 31 13:16:02 ghost squeezeplay_alsa[15619]: audio_thread_execute:944 audio_thread_execute
    Jul 31 13:16:02 ghost squeezeplay_alsa[15619]: pcm_open:823 PCM Open 1 default
    Jul 31 13:16:02 ghost squeezeplay_alsa[15619]: _pcm_open:718 Access type not available: Invalid argument
    Jul 31 13:16:02 ghost squeezeplay_alsa[15619]: pcm_open:835 PCM Open with mmap failed trying to continue,Invalid argument
    Jul 31 13:16:02 ghost squeezeplay_alsa[15619]: pcm_open:837 PCM Open NOMMAP 60B960 default
    Jul 31 13:16:02 ghost squeezeplay_alsa[15619]: pcm_close:604 snd_pcm_drain error: Input/output error
    Jul 31 13:16:02 ghost squeezeplay_alsa[15619]: _pcm_open:726 Opened device default using format: S16_LE sample rate: 44100
    Jul 31 13:16:02 ghost pulseaudio[2449]: [pulseaudio] shm.c: shm_open() failed: Permission denied
    Jul 31 13:16:02 ghost squeezeplay_alsa[15619]: audio_thread_execute:1056 snd_pcm_start error: File descriptor in bad state
    Jul 31 13:16:02 ghost pulseaudio[2449]: [pulseaudio] shm.c: shm_open() failed: Permission denied
    Jul 31 13:16:02 ghost kernel: [15494.100845] [UFW BLOCK] IN=enp38s0 OUT= MAC=60:45:cb:9b:47:06:00:04:20:23:2c:9d:08:00 SRC=192.168.123.113 DST=192.168.123.132 LEN=130 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=7 DPT=52826 LEN=110
    Jul 31 13:16:02 ghost kernel: [15494.106539] [UFW BLOCK] IN=enp38s0 OUT= MAC=60:45:cb:9b:47:06:00:04:20:1b:e5:8f:08:00 SRC=192.168.123.129 DST=192.168.123.132 LEN=130 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=7 DPT=52826 LEN=110
    Jul 31 13:16:02 ghost kernel: [15494.107139] [UFW BLOCK] IN=enp38s0 OUT= MAC=60:45:cb:9b:47:06:00:04:20:1b:13:12:08:00 SRC=192.168.123.117 DST=192.168.123.132 LEN=130 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=7 DPT=52826 LEN=110
    Jul 31 13:16:03 ghost pulseaudio[2449]: message repeated 126 times: [ [pulseaudio] shm.c: shm_open() failed: Permission denied]
    Jul 31 13:16:08 ghost squeezeplay_alsa[15619]: playback_callback:557 playback started, copyright not asserted
    Jul 31 13:16:08 ghost squeezeplay_alsa[15619]: pcm_open:823 PCM Open 1 default
    Jul 31 13:16:08 ghost squeezeplay_alsa[15619]: _pcm_open:718 Access type not available: Invalid argument
    Jul 31 13:16:08 ghost squeezeplay_alsa[15619]: pcm_open:835 PCM Open with mmap failed trying to continue,Invalid argument
    Jul 31 13:16:08 ghost squeezeplay_alsa[15619]: pcm_open:837 PCM Open NOMMAP 60B960 default
    Jul 31 13:16:08 ghost squeezeplay_alsa[15619]: pcm_close:604 snd_pcm_drain error: Input/output error
    Jul 31 13:16:08 ghost squeezeplay_alsa[15619]: _pcm_open:726 Opened device default using format: S16_LE sample rate: 48000
    Jul 31 13:16:08 ghost pulseaudio[2449]: [pulseaudio] shm.c: shm_open() failed: Permission denied
    Jul 31 13:16:08 ghost squeezeplay_alsa[15619]: audio_thread_execute:1056 snd_pcm_start error: File descriptor in bad state
    Jul 31 13:16:08 ghost pulseaudio[2449]: [pulseaudio] shm.c: shm_open() failed: Permission denied
    Jul 31 13:16:09 ghost pulseaudio[2449]: message repeated 126 times: [ [pulseaudio] shm.c: shm_open() failed: Permission denied]



    ##########################

    System Config information below (heavily edited to reduce post size)
    ##########################

    System: Host: ghost Kernel: 4.8.0-53-generic x86_64 (64 bit gcc: 5.4.0)
    Desktop: Cinnamon 3.4.4 (Gtk 3.18.9-1ubuntu3.3) dm: lightdm Distro: Linux Mint 18.2 Sonya

    Audio: Card-1 Advanced Micro Devices [AMD] Device 1457
    driver: snd_hda_intel bus-ID: 2b:00.3 chip-ID: 1022:1457
    Card-2 C-Media CMI8788 [Oxygen HD Audio]
    driver: snd_virtuoso port: c000 bus-ID: 28:04.0 chip-ID: 13f6:8788
    Card-3 NVIDIA GF119 HDMI Audio Controller
    driver: snd_hda_intel bus-ID: 29:00.1 chip-ID: 10de:0e08
    Sound: Advanced Linux Sound Architecture v: k4.8.0-53-generic

    Network: Card: Intel I211 Gigabit Network Connection
    driver: igb v: 5.3.0-k port: d000 bus-ID: 26:00.0 chip-ID: 8086:1539
    IF: enp38s0 state: up speed: 1000 Mbps duplex: full mac: <filter>

  2. #2
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    1,796
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  3. #3
    Junior Member
    Join Date
    Sep 2015
    Posts
    2

    Squeezeplay and Linux Mint 18.2 - streamsdrops, program crashes

    On Tue, Aug 01, 2017 at 11:41:42AM +0000, ralphy wrote:
    >Please try the 'native pulseaudio squeezeplay build'
    >(http://forums.slimdevices.com/showth...io-squeezeplay).


    ....which is working perfectly on Debian 9.0 Stretch...., so there are
    good chances that it will also work on Mind.

    Ciao,

    Schoepp


  4. #4
    Junior Member
    Join Date
    Mar 2016
    Location
    UK
    Posts
    27
    Quote Originally Posted by ralphy View Post
    Ralphy

    Thanks for the response.

    I have uninstalled the existing Squeezeplay version and downloaded squeezeplay-pulse_7.8.0~996_amd64.deb from https://sourceforge.net/projects/lms...ezeplay/linux/

    Unfortunately I appear to be going backwards, as having followed the installation instructions I cannot even get the Squeezeplay GUI program to launch.

    I suspect, being new to Linux, this will be down to my incompetence, but I wonder if you can spot where I have made an error ?


    I have followed the instructions in the README file and on the basis I have a x64 system

    casper@ghost ~/Downloads/PulseAudio $ sudo dpkg -i squeezeplay-pulse_7.8.0~996_amd64.deb

    Selecting previously unselected package squeezeplay.

    (Reading database ... 205224 files and directories currently installed.)

    Preparing to unpack squeezeplay-pulse_7.8.0~996_amd64.deb ...

    Unpacking squeezeplay (7.8.0~996) ...

    Setting up squeezeplay (7.8.0~996) ...

    The install seems to work, however I run into a problem with the next command as there is no jive_alsa file in the referenced directory.


    casper@ghost ~/Downloads/PulseAudio $ sudo chmod u+s /opt/squeezeplay/bin/jive_alsa

    chmod: cannot access '/opt/squeezeplay/bin/jive_alsa': No such file or directory

    casper@ghost /opt/squeezeplay/bin $ ls

    cjpeg jive libpng-config luac squeezeplay.sh
    djpeg jpegtran lprof rdjpgcom wrjpgcom
    freetype-config libpng12-config lua sdl-config

    casper@ghost /opt/squeezeplay/bin $

    Running entirely by the seat of my pants I tried it against the nearest thing ie just jive

    casper@ghost ~/Downloads/PulseAudio $ sudo chmod u+s /opt/squeezeplay/bin/jive

    casper@ghost ~/Downloads/PulseAudio $

    and then moved onto the next step to add a configuration line to


    casper@ghost ~ $ gksu xed /etc/ld.so.conf.d/x86_64-linux-gnu.conf

    to which I added

    /usr/lib/x86_64-linux-gnu/alsa-lib

    and its contents now show

    ################

    # Multiarch support
    /lib/x86_64-linux-gnu
    /usr/lib/x86_64-linux-gnu
    /usr/lib/x86_64-linux-gnu/alsa-lib

    ################

    but on closing the editor and saving ld.so.conf.d/x86_64-linux-gnu.conf I get the following console warning (not sure if these are significant)


    ** (xed:4064): WARNING **: Set document metadata failed: Setting attribute metadata::xed-spell-language not supported

    ** (xed:4064): WARNING **: Set document metadata failed: Setting attribute metadata::xed-encoding not supported

    ** (xed:4064): WARNING **: Set document metadata failed: Setting attribute metadata::xed-position not supported


    Running the following console command throws some errors (presumably something to do with the graphics card)

    casper@ghost ~ $ sudo ldconfig

    [sudo] password for casper:

    /sbin/ldconfig.real: /usr/lib/nvidia-375/libEGL.so.1 is not a symbolic link

    /sbin/ldconfig.real: /usr/lib32/nvidia-375/libEGL.so.1 is not a symbolic link

    casper@ghost ~ $

    When I attempt to launch Squeezeplay via /opt/squeezeplay/bin/squeezeplay.sh

    the first time I ran it the GUI hung at the initial screen (did not get even as far as specifying language) and GUI was unresponsive.

    Following a reboot the GUI will not even launch (either on its own or via a console session)

    I cannot see anything that appears relevant in the syslog file.

    Coming from Windows I am somewhat stumped presently ...

  5. #5
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    1,796
    Unfortunately, those additional instructions on the download page are for the standard alsa version and an not required for the pulseaudio version.

    Start by removing squeezplay

    sudo apt-get purge squeezeplay

    cd /opt
    sudo rm -rf squeezeplay

    The rm command may fail and that's okay.

    Revert any changes you made to ld.config and well as any other files you might have changed trying to get the alsa version to work then reboot.

    Reinstall

    sudo dpkg -i squeezeplay-pulse_7.8.0~996_amd64.deb

    Then open a terminal and run /opt/squeezeplay/bin/squeezeplay.sh
    Do not prefix with sudo.

    Do you still have the same problem?

    If yes, then it's likely that the debian 8 build doesn't work with mint and you'll need to build from source.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  6. #6
    Junior Member
    Join Date
    Mar 2016
    Location
    UK
    Posts
    27
    Hello Ralphy.

    Many thanks again for your response.

    I have removed the package as per your instructions and then reinstalled.

    Regrettably it would appear that the Pulse package is not compatable with Mint as it failed to run as shown by console output at the foot of this post.

    Building from source is beyond my Linux technical capabilities at present.

    More worryingly I appear to have lost sound output on my box - local music files whilst apparently running in the default music player produce no sound <sigh>

    Obviously I have messed up somewhere along the way.

    Anyway that's not your concern - thanks for your help in getting me this far.

    Cheers

    Alan

    #############
    Console Output
    ##############


    casper@ghost ~/Downloads/PulseAudio $ sudo dpkg -i squeezeplay-pulse_7.8.0~996_amd64.deb

    Selecting previously unselected package squeezeplay.

    (Reading database ... 205233 files and directories currently installed.)

    Preparing to unpack squeezeplay-pulse_7.8.0~996_amd64.deb ..
    .
    Unpacking squeezeplay (7.8.0~996) ...

    Setting up squeezeplay (7.8.0~996) ...

    casper@ghost ~/Downloads/PulseAudio $ /opt/squeezeplay/bin/squeezeplay.sh

    jive: src/common/pa_front.c:235: InitializeHostApis: Assertion `hostApi->info.defaultInputDevice < hostApi->info.deviceCount' failed.

    /opt/squeezeplay/bin/squeezeplay.sh: line 58: 3240 Aborted ./jive

    casper@ghost ~/Downloads/PulseAudio $

  7. #7
    Junior Member
    Join Date
    Mar 2016
    Location
    UK
    Posts
    27

    Update - problem resolved

    I hope I will be forgiven for following up my own post, but I thought (in case anyone searching every comes across this thread) advise that the problem with Squeezeplayer crashing on my Mint 18.2 install has been resolved.

    Following issues with the sound configuration on my installation (mentioned in my previous post) I decided to install a fresh copy of Mint

    Having installed the Pulse Audio version provided by Ralphy (squeezeplay-pulse_7.8.0~996_amd64.deb ) it is now working flawlessly and I am one happy bunny.

    Cheers

    Alan
    Last edited by farrina; 2017-08-08 at 06:42.

Posting Permissions

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