Quantcast
Channel: Squeezebox : Community : Forums - Linux / Unix
Viewing all 1521 articles
Browse latest View live

Memory Leak in Perl Engine on piCorePlayer?

$
0
0
For a few days, now, I have been running a piCorePlayer 6.1.0 with LMS on a Pi 4 B with 2G of memory. I mainly use the Pi to transcode AAC streams from Tidal. There are no additional plug-ins installed.

I observe the following behaviour: After the LMS is started, it will run without complaints for about a day, and then the connected players will suddenly start to re-buffer all the time and eventually stop playing altogether.

I have been looking at CPU and memory consumption on the Pi (I don't quite understand how the in-memory file system fits into it) and noticed that the main Perl process seems to be hogging memory. When a certain limit is exceeded, the transcoding processes suddenly will not have as much memory as they used to, and the re-buffering will start. I have monitored the system with top for a day and copied the output.

file system:
Code:

Filesystem                Size      Used Available Use% Mounted on
tmpfs                    1.7G    17.8M      1.7G  1% /
tmpfs                  954.3M        0    954.3M  0% /dev/shm
/dev/mmcblk0p2          29.1G    175.0M    28.3G  1% /mnt/mmcblk0p2

LMS restarted:
Code:

Mem: 388012K used, 1566340K free, 14432K shrd, 31648K buff, 163864K cached
CPU:  0.2% usr  0.1% sys  0.0% nic 99.5% idle  0.0% io  0.0% irq  0.0% sirq
Load average: 0.14 0.08 0.08 2/139 12551
  PID  PPID USER    STAT  VSZ %VSZ CPU %CPU COMMAND
12463    1 tc      S    100m  5.2  0  0.3 {slimserver.pl} /usr/bin/perl /usr/local/slimserver/slimserver.pl --daemon --user tc --group staff

playing and scanning:
Code:

Mem: 453652K used, 1500700K free, 14652K shrd, 31648K buff, 178824K cached
CPU: 25.2% usr  0.5% sys  0.0% nic 74.1% idle  0.0% io  0.0% irq  0.0% sirq
Load average: 0.37 0.12 0.09 2/144 12573
  PID  PPID USER    STAT  VSZ %VSZ CPU %CPU COMMAND
12463    1 tc      S    103m  5.4  1  0.8 {slimserver.pl} /usr/bin/perl /usr/local/slimserver/slimserver.pl --daemon --user tc --group staff
12572 12463 tc      R    62140  3.1  1 24.5 /usr/local/bin/perl /usr/local/slimserver/scanner.pl --logconfig=/usr/local/slimserver/prefs/log.conf --novideo --onlinelibrary --prefsdir=/usr/local
12571 12569 tc      S    5404  0.2  1  0.1 /usr/local/slimserver/Bin/armhf-linux/flac -cs --totally-silent --compression-level-0 --ignore-chunk-sizes -
12569 12463 tc      S    3200  0.1  2  0.0 sh -c "/usr/local/slimserver/Bin/armhf-linux/faad" -q -w -f 1 - | "/usr/local/slimserver/Bin/armhf-linux/flac" -cs --totally-silent --compression-lev
12570 12569 tc      S    2780  0.1  0  0.2 /usr/local/slimserver/Bin/armhf-linux/faad -q -w -f 1 -

playing ...:
Code:

Mem: 478556K used, 1475796K free, 18952K shrd, 31652K buff, 207356K cached
CPU:  1.3% usr  0.1% sys  0.0% nic 98.4% idle  0.0% io  0.0% irq  0.0% sirq
Load average: 0.25 0.11 0.03 3/140 13831
  PID  PPID USER    STAT  VSZ %VSZ CPU %CPU COMMAND
12463    1 tc      S    140m  7.3  2  0.4 {slimserver.pl} /usr/bin/perl /usr/local/slimserver/slimserver.pl --daemon --user tc --group staff
13782 13780 tc      S    5404  0.2  2  0.3 /usr/local/slimserver/Bin/armhf-linux/flac -cs --totally-silent --compression-level-0 --ignore-chunk-sizes -
13780 12463 tc      S    3200  0.1  2  0.0 sh -c "/usr/local/slimserver/Bin/armhf-linux/faad" -q -w -f 1 - | "/usr/local/slimserver/Bin/armhf-linux/flac" -cs --totally-silent --compression-lev
13781 13780 tc      S    2780  0.1  2  0.7 /usr/local/slimserver/Bin/armhf-linux/faad -q -w -f 1 -

out of memory:
Code:

Mem: 536364K used, 1417988K free, 21760K shrd, 31656K buff, 210196K cached
CPU:  0.9% usr  0.4% sys  0.0% nic 98.4% idle  0.0% io  0.0% irq  0.0% sirq
Load average: 0.07 0.08 0.03 1/140 15290
  PID  PPID USER    STAT  VSZ %VSZ CPU %CPU COMMAND
12463    1 tc      S    198m 10.3  0  1.0 {slimserver.pl} /usr/bin/perl /usr/local/slimserver/slimserver.pl --daemon --user tc --group staff
15290 15288 tc      S    5272  0.2  2  0.0 /usr/local/slimserver/Bin/armhf-linux/flac -cs --totally-silent --compression-level-0 --ignore-chunk-sizes -
15288 12463 tc      S    3200  0.1  0  0.0 sh -c "/usr/local/slimserver/Bin/armhf-linux/faad" -q -w -f 1 - | "/usr/local/slimserver/Bin/armhf-linux/flac" -cs --totally-silent --compression-lev
15289 15288 tc      S    2748  0.1  1  0.0 /usr/local/slimserver/Bin/armhf-linux/faad -q -w -f 1 -

The Perl process is constantly growing from 100m to about 200m. The faad and flac processes run with 5404 and 2780 k of memory consistently all day until the re-buffering starts. I can't make anything of it since the O/S still seems to have plenty of memory to spend on caching, but maybe somebody else can.

Settings for USB audio to Klipsch R-51PM

$
0
0
Hello. I'm trying to get a new picoreplayer/LMS installation working with Klipsch powered speakers. Everything seems to be working except I don't get any sound.

Squeezelite apparently sees the speakers since clicking More by Output Setting shows me a list of possible strings specific to the R-51PM's. Depending on which I select I either get an error restarting message or it seems to work, but either way I'm not getting any sound. Whether it accepts the particular string or not varies so it may restart OK on hw:CARD=R51PM,DEV=0 one time and then error another. If it doesn't error out and I try to play something the player will look like it's playing a track sometimes, and sometimes it doesn't do anything. Regardless, silence.

I have not touched any of the rest of the squeezelite settings and don't know if I'm supposed to. I'm using mp3 and flac files, but it's the same thing with radio stations.

Appreciate any help.

How to copy LMS data when upgrading to 6.0?

$
0
0
Hi all,

I use LMS 7.9.3 on pCP 3.21. I don't have Squeezelite running and my music files are stored on a attached Qnap NAS (I don't know if this information is relevant for my question). Because I had problems with upgrading to LMS 8.0, I first created a fresh image of pCP 6.0 on a new SD-card (thanks to help on the LMS-forum). On that new card I can work with LMS 8.0 but all my prefs, plugins, favourites of my old LMS are gone. Luckily I can put my old SD-card in pi so I can use my old LMS 7.9.3.

In my old pCP 3.21 I can see a button to move my LMS Data but when I click that nothing happens. Or do I need to change the mount to Network?

Name:  afbeelding_2020-11-28_095255.png
Views: 101
Size:  22.8 KB
Attached Images
 

Dual Wifi adapters

$
0
0
I have searched the threads and have not found an answer to this.

System - RPi4b with DAC Hat embedded into a Sony Boombox. Headless

Simply I want to use the on board Wifi (wlan0) to connect to an internet connected AP but want to use a second USB wifi adapter (wlan1) as a RPi WAP (or the reverse) so I can access the web interface when on the road to change the SSID without having to SSH or remove the SD card.

I have read through the wpa_supplicant.conf docs but did not see a solution. I know I can set up several SSID configurations however I want to be able configure when the SSID is not known.

I apologize in advance if this has been answered. If it has I would appreciate a link to the thread.

Hifiberry Dac+ Pro and RPI4 combo not working

$
0
0
Hi,

Just purchased an RPI4 with the Hifiberry Dac+ Pro hat. I've downloaded, burned and installed piCoreplayer on two different SD cards. With both cards, the system comes up just fine and is, initially, visible in LMS as "piCore player". Per instructions, I then select the "Hifiberry Dac+ (and Pro Amp) as the audio output device, pressed Save, and rebooted. Upon reboot, the output setting under Squeezelite Settings shows:

hw:Card=sndrpihiberry

The problem is that, upon reboot, it also shows the "Squeezelite is not running" message and, of course, it is not visible to LMS any more.

The alsa setting shows: 80, 4, (blank box), 1, (blank box)

Additional info: I also downloaded, and burned to an SD card, the Hifiberry OS. This worked as expected and allowed me to verify that it is not a hardware issue. With the Hifberry OS installed, and Squeezelite selected as the player, the RPI/Dac combo appeared in LMS and I was able to play music with no problems.

In piCoreplayer dmesg, this may be relevant....not sure since I'm not at all versed in Linux (or any other software---basically a tech ignoramus).

[ 4.214518] clk-hifiberry-dacpro clocks:dacpro_osc: Fail to register clock driver
[ 4.214536] clk-hifiberry-dacpro: probe of clocks:dacpro_osc failed with error -17
[ 4.288673] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.292358] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[ 4.306648] bcm2835_audio soc:audio: card created with 8 channels
[ 4.306847] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[ 4.320018] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[ 4.322140] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[ 4.324100] pcm512x 1-004d: Linked as a consumer to regulator.1
[ 4.525989] bcmgenet: Skipping UMAC reset
[ 4.602568] bcmgenet fd580000.genet: configuring instance for external RGMII (no delay)
[ 4.606570] Starting piCorePlayer v6.1.0 startup.
[ 5.634334] bcmgenet fd580000.genet eth0: Link is Down
[ 9.730366] bcmgenet fd580000.genet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 25.450708] random: sshd: uninitialized urandom read (32 bytes read)
[ 25.485543] random: squeezelite: uninitialized urandom read (32 bytes read)
[ 25.544115] Finished piCorePlayer v6.1.0 startup.
[ 141.846518] random: squeezelite: uninitialized urandom read (32 bytes read)
[ 190.974283] random: crng init done

If someone could assist me in getting this running, I'd appreciate it. A couple weeks ago, got another RPI4 without a dac hat (connected to a USB dac) and it was a snap to set up and is running perfectly. But this RPI/hifiberry combination has given me fits. I googled all over and it seems very few people have had an issue with this combo and I did not see any obvious solutions.

Thanks!

Stuck loading extensions on boot

$
0
0
Hi, i'm working on a personal rework based on Slimmer (https://github.com/terba/slimmer), a display controller for LMS by Terba.
I compiled my code directly on PI with success. So I created the tcz extension with the tool mksquashfs and copyed tcz in /tce/optional.
After that i tce-load -i myextension to check if dependency are loaded and if my extension works. All was OK and works as expected.
So i edit bootlocal.sh, onboot.lst and filetool.sh -b to save config.
But, when i reboot, PI stuck on boot step "loading extensions..", with cursor rotating forever.
The only solution is to change bootcode adding "base" and manually remove my extension from /optional.
I checked permission and owner and can't find any strange.

Maybe someone could help me with some ideas?

Thanks!
Emanuele

PiCorePlayer connect smartphone via USB

PiCorePlayer along side Raspbian?

$
0
0
Is it possible to install PiCorePlayer inside something like Raspbian? I want to run the PiCorePlayer (Pi + USB DAC + speakers) in a few locations, but I also want to do other audio things at those locations (i.e. send text to speech to certain locations for notifications, use the VOIP for whole-house intercom, etc.). These functions aren't supported by PiCore itself, so I'd need to install other applications along side it.

But it seems like PiCorePlayer is only distributed as a complete Tiny Core Linux image. Is there an option to run a LMS client on a Raspbian install as a container or something like that?

USB - Ethernet adapter not recognised

$
0
0
Hello,
I would like to use a usb - ethernet adapter on a Pizero W to connect it into my network.
So far on WiFi , everthing works fine. It looks like the adapter is seen if judging from the diagnostics. They report
Code:

[    2.416898] usb 1-1: New USB device found, idVendor=0b95, idProduct=7720, bcdDevice= 0.01
[    2.416915] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.416923] usb 1-1: Product: AX88x72A
[    2.416931] usb 1-1: Manufacturer: ASIX Elec. Corp.
[    2.416938] usb 1-1: SerialNumber: 0005D6
.
[  22.959621] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[  25.382352] Starting piCorePlayer v6.1.0 startup.
[  28.175154] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
.
[  22.640009] usbcore: registered new interface driver brcmfmac
.
[  22.370878] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[  22.459904] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
.

The adater apears as a AX88x72A adapter from ASIX Elec. Corp.

However there is not eth0 network being created.

I did try adding the extension net-usb-4.19.102, but that did not change anything.
Is this adapter supported by PiCorePlayer? and is there anthing elese I need to do to use it?

Bluettooth auto disconnect reconnect

$
0
0
Hi,
Maybe this has been asked before, but I could not find it.
I’m running PicorePlayer on a Raspberry Zero with a Pimoroni Pirate Audio headphone amp.
What Iwant with my bluetooth headphone. PcP connect bluetooth automatically when the player is powered on and disconnect automatically when I PowerOff so I can use the headphone with another device without disconnecting through the webinterface.
Is there some way to automate this? I tried this with Max2play but could not get the disconnect working.
Thanks!

Success piCorePlayer 7.0 0b6, Pi Zero WH, HifiBerry DAC2 Pro

$
0
0
Again - BIG THANKS to the entire piCorePlayer team. I gave them some $$ after my last success, I guess I need to dig deeper!

It seems now my goal is to buy 1 of every DAC that I can put on a Pi Zero. My original goal was to replace several Dell DAR players, looking for good (not fanatic) quality, with an integrated amp in most cases. I have a LMS running on a server in the basement. I didn't care much about the display or remote, but I can see how those features can easily be supported.

The HifiBerry hat is larger than the Pi Zero, but that was not a problem for this build. I first tried with piCore 6.1, but it would not work (I think it was clock init problems). I confirmed the card worked with a clean Buster Lite image, and yes, it plays. So before digging in and debugging I decided to try the piCore 7 beta and that worked!

I have only 1 thing that I noticed, but have not fully tested yet. When I aplay the Front_Left, or Right wav files I hear the sound out of both channels. Seems to be mixing mono to both outputs? Any thoughts.

--
BHA

Raspberry Pi/Linux Getting started

$
0
0
Hi,

I need a little advice/direction...

I am a retired electrical engineer with embedded hardware and "retro" software development experience (Retro - unix, qnx, C (before "++", assembly). So I know how to code, but am not familiar with anything relatively current. I actually remember using Fortran :)

This winter I want to start playing with learning linux and a development language on a Pi, but I don't know where to start. I have raspian loaded on a Pi running, but want to make the right decision on what development language to use/learn first. Python? Others?

I have an idea for a project, which would be to develop a little bit of automation to get started, but it would also be nice to be able to run squeezelite concurrently. Sort of a player while coordinating some digital I/O. I would also like to understand what people are doing with regard to plugin development, but that's another project direction.

I know that this might be better posted on the Pi Forum, but I wanted to address squeezelite integration.

So, any thoughts to get me started would be appreciated. I would hate to decide on my own to turn left when I should have turned right...

Jim

Help with Issue " SQL that returns multiple rows is DEPRECATED"?

$
0
0
Anyone knows why the Linux machine at my GF's place would be getting the error below? The Win10 setup at my place doesn't get this error?

It doesn't seem to happen with the local library, more of an issue with Spotify... long pauses between song... hickups etc

[20-12-18 13:30:27.0359] Slim::Utils::Misc::msg (1255) Warning: [13:30:27.0356] DBIx::Class::ResultSet::update_or_create(): Query returned more than one row. SQL that returns multiple rows is DEPRECATED for ->find and ->single at /usr/share/perl5/Slim/Schema.pm line 1871
[20-12-18 13:30:27.6323] Slim::Utils::Scanner::Local::__ANON__ (453) Rescanning changed audio files (0)
[20-12-18 13:31:18.0359] Slim::Utils::Scanner::Local::rescan (180) Discovering audio files in /home/caryn/Dropbox/Paul File Share/Chet Baker/Silent Nights
[20-12-18 13:31:18.0389] Slim::Utils::Scanner::Local::__ANON__ (192) Start processing found tracks
[20-12-18 13:31:18.0391] Slim::Utils::Scanner::Local::__ANON__ (200) Connect do DB
[20-12-18 13:31:18.0392] Slim::Utils::Scanner::Local::__ANON__ (203) Get latest ID
[20-12-18 13:31:18.0395] Slim::Utils::Scanner::Local::__ANON__ (225) Delete temporary table if exists
[20-12-18 13:31:18.0398] Slim::Utils::Scanner::Local::__ANON__ (228) Re-build temporary table
[20-12-18 13:31:18.0537] Slim::Utils::Scanner::Local::__ANON__ (277) Get deleted tracks count
[20-12-18 13:31:18.0539] Slim::Utils::Scanner::Local::__ANON__ (284) Get new tracks count
[20-12-18 13:31:18.0541] Slim::Utils::Scanner::Local::__ANON__ (289) Get changed tracks count
[20-12-18 13:31:18.0584] Slim::Utils::Scanner::Local::__ANON__ (295) Removing deleted audio files (0)
[20-12-18 13:31:18.0585] Slim::Utils::Scanner::Local::__ANON__ (373) Scanning new audio files (2)
[20-12-18 13:31:18.0621] Slim::Utils::Misc::msg (1255) Warning: [13:31:18.0618] DBIx::Class::ResultSet::update_or_create(): Query returned more than one row. SQL that returns multiple rows is DEPRECATED for ->find and ->single at /usr/share/perl5/Slim/Schema.pm line 1871
[20-12-18 13:31:18.1741] Slim::Utils::Scanner::Local::__ANON__ (453) Rescanning changed audio files (0)
[20-12-18 13:54:11.7071] Slim::Utils::Misc::msg (1255) Warning: [13:54:11.7067] DBIx::Class::ResultSet::update_or_create(): Query returned more than one row. SQL that returns multiple rows is DEPRECATED for ->find and ->single at /usr/share/perl5/Slim/Schema.pm line 1871
[20-12-19 12:41:09.8775] Slim::Utils::Misc::msg (1255) Warning: [12:41:09.8771] DBIx::Class::ResultSet::update_or_create(): Query returned more than one row. SQL that returns multiple rows is DEPRECATED for ->find and ->single at /usr/share/perl5/Slim/Schema.pm line 1871


Version info:

Logitech Media Server Status
Logitech Media Server Version: 7.9.2 - 1578996832 @ Tue Jan 14 12:17:56 CET 2020
Hostname: xxx
Server IP Address: xxx
Server HTTP Port Number: 9000
Operating system: Debian - EN - utf8
Platform Architecture: x86_64-linux
Perl Version: 5.26.1 - x86_64-linux-gnu-thread-multi
Audio::Scan: 0.95
IO::Socket::SSL: 2.060
Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)
Total Players Recognized: 2




Player Information
Information on all identified devices connected to Logitech Media Server

Rqueezebox
Player Model: Squeezebox Boom
Player Type: boom
Firmware: 57
Player IP Address: ...

Squeezebox Classic
Player Model: Squeezebox Classic
Player Type: squeezebox2
Firmware: 137
Player IP Address: ...

Options for my dedicated Optiplex 9020

$
0
0
I have a faily large collection (140k+ tracks of variying quality) and am wanting to move away from Synolgy and they're soon to be dropping their support.

I purched an Optiplex 9020 w/8gb ram and stuck a 1tb SSD in the there to house my muisic collection and whatever software I choose. I tried Daphile but getting the files on the same drive as daphile has been proven to be difficult

I would love a barebones Picoreplayer/LMS install experience but dont seem to see Picoreplayer for x86-64.

Debian/ubuntu service is always a route I could take but am wanting the least headaches.

Any help would be greatly appreciate!

Picoreplayer NFS mount without suffient rights

$
0
0
Hi,

I installed the picoreplayer and LMS on a spare RPI to test it out. I added a music share from my NAS with NFS and this works fine. (web interface of PCP itself)

however when i try to add that mount as a folder with music in LMS itself it can't access it. When loggin in with ssh i can't access it eiter as the tc user. Only as root. Did i miss some configuration or how to work this problem?

Squeezelite Slider Volume Control Doesn't Work with Meridian Explorer2

$
0
0
I just installed the latest versions of PCP/LMS/SL on an RPI-4B. All looks and seems to otherwise work great except that I can't adjust the volume - much - using the Squeezelite volume control slider. I can hear the very low volume of music playing, but sliding the slider left and right doesn't alter the volume much. The volume moves from inaudibly low at the lowest to very low at the highest. The volume slider does work with the only other software app volume controlled device I have, the Resonessence Herus DSD DXD.

I did a search here and didn't find anything on the Meridian Explorer2.

Any insights would be appreciated.

Thanks!

ANNOUNCE: piCorePlayer 7.0.0

$
0
0
> Seems Michael missed something in his process.....Its a completely new
> process.


Thanks for the heads up. Should be fixed now.

--

Michael

upgrade LMS 7.9.2 -> 8.x - procedure?

$
0
0
> I just did this today. I copy the "cache" and "prefs" folders from
> exisiting LMS setup and save on your computer somewhere. (see LMS >
> Settings > Information, lower end of page for the locations of these
> folders in your system).
>
> Then I install 8.1 from scratch. Then STOP LMS, copy the old cache and
> prefs folders to the same location on the new LMS, allowing the files to
> overwrite the old files. Then restart LMS and you should have all of
> your plugins and settings. Sometimes I may have to enter a password or
> user ID again, maybe resetup SPOTTY, etc. But very, very little.


Such a procedure should not be needed. You can really install one on top
of the other and be good.

--

Michael

Playlists empty on new LMS install

$
0
0
I have successfully set up a new RPi4 with picoreplayer and LMS and my music files and Playlists are on a USB HD. Everything is fine except my playlists are showing in LMS as "empty". The name lists appear in LMS but each one is empty.
The playlist folder is separate from the music library folder under a directory called LMSfiles. Samba is set up and I can see the .M3U files in the playlists folder. The contents appears to be intact when I open the .M3U files in Notepad.

The playlist folder and files are a duplicate of my older LMS server files which still play as expected. A comparison in FreeFileSynch shows them as identical. I have rescanned, rebooted and looked at all the settings but no luck.

Any suggestions??

Exernal HDD in pCP causing great problems

$
0
0
Hello
I never did understand mount points and am trying to mount an external HDD to pCP7.
In puppy linux my music HDD says it is /mnt/sdb1 and Music is /mnt/sdb1/Music. It is vfat so I installed the extra software in pCP.
pCP finds the ext HDD as /dev/sda1.
What do I need to do to mount it.
Thanks
diode84
Viewing all 1521 articles
Browse latest View live