Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
mherger wrote: > > No, AFAIK, 500 is the number of cached tracks. After that, they > should > > be closed but I'm not sure that works as expected. I've reduced > that to > > 10 and traced DESTROY it's very unclear to me when it happens, > except > > when you terminate the slimserver process. The code is in > > /usr/share/perl5/Slim (from memory) > > We discussed some concerns about this back on August 27 on Gitter. I'd > have loved to send you a link, but I didn't find a way to do so :-) I do remember very well the discussion. I have made a few additional tests and in fact the DESTROY happens as expected when the cache is set to 10 but it need to be created with 10, not modified later at runtime as I was doing before. Still, that does not solve the issue of open handles. I guess we can tolerate a large number of files in temp, but we cant have them opened. According to what I have read, File:.Temp unlinks the file when it is closed, so I would need to do something different like having a temp file that I only unlink in DESTROY but is closed unless the header is needed ... crap, that means I cannot rely on File:Temp for the random path/name generation and I need to memorize the name and reopen/close it all the time. I was hoping that the cache of $tracks would be decorrelated from playlist length and that LMS would re-read the ones that went out of LRU cache. Un LMS 8.1.x on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3 philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
No, AFAIK, 500 is the number of cached tracks. After that, they should be closed but I'm not sure that works as expected. I've reduced that to 10 and traced DESTROY it's very unclear to me when it happens, except when you terminate the slimserver process. The code is in /usr/share/perl5/Slim (from memory) We discussed some concerns about this back on August 27 on Gitter. I'd have loved to send you a link, but I didn't find a way to do so :-) ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Jivelite for piCorePlayer
https://github.com/ralph-irving/jivelite/tree/master/share/jive/applets Sorry to ask: is there a description of these applets and how to install There's not much to install: they already are. Or did you find one which isn't? Best description you'd probably find in the strings.txt you'd find in each applet's folder. ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
mvordeme wrote: > That is a fact which makes investigating the problem difficult. When > there are 500 open file handles, it is difficult to keep track of what > is happening. > > I understand from the code that with a memory configuration of high, the > process should not use up more than 500 MB of memory. Is that correct? No, AFAIK, 500 is the number of cached tracks. After that, they should be closed but I'm not sure that works as expected. I've reduced that to 10 and traced DESTROY it's very unclear to me when it happens, except when you terminate the slimserver process. The code is in /usr/share/perl5/Slim (from memory) LMS 8.1.x on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3 philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Jivelite for piCorePlayer
mherger wrote: > > Not sure if this has been discussed or requested... Is there a way or > a > > community project to update Jivelite skin? > > Not only can you update it, but you can even add more of them. You could > > work on your own skin without touching the existing ones. Skins are > implemented as "applets". See > https://github.com/ralph-irving/jivelite/tree/master/share/jive/applets Sorry to ask: is there a description of these applets and how to install them? I couldn't find anything on the forum nor on GitHub Thanks very much for the help! Transporter, Touch, SB3, SB2, Duet, Booms, Radios, piCorePlayer --- iPeng & Material --- LMS 8.0.1 - 1606928904 on Pi4 4GB - Max2Play --- Qobuz didjean's Profile: http://forums.slimdevices.com/member.php?userid=2900 View this thread: http://forums.slimdevices.com/showthread.php?t=103330 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] ANNOUNCE: LMS Monitor 2020
thejeko wrote: > Hello everybody, > after a couple of days of full immersion in this project and after > having read all the messages and tried practically everything I have > read, I have to annoy you because some things just do not get there. > > 1. How do I increase the fluidity and sensitivity of the vu meter, when > I listen to a song, the needle barely moves even when Metallica is > playing. > 2. I try to start picoreplayer with this in the tweaks: > /mnt/mmcblk0p2/tce/gomonitor -a2 -dw --latlon "45.464203, 9.189982" the > oled remains off, but if I use the same commands from the console, it > works but no whether. Also if I add -b with --nosplash the brightness is > lowered and the oled "wobbles" > 3. I tried in every way to understand how to eliminate the percentage of > the volume on the screen because I use it fixed. > > Also often when I use the -a or -a1s commands, the all info function > works only for the textual part and not the graphics one but when the > latter works, after restarting pcp, the graphics have no animation. > > I use a 2.42 "128x64 oled diymore, modified I2C and the latest release > of both lmsmonitor and PCP > > Thank you all I just found this recently myself. I'm working on getting the 256x64 grayscale solution working, it been far too long and I want it closed out. Working on the full scale 2 up VU I noticed the meter was none too responsive - I see the wobble you described :mad: I have a test bench that I used to record the data stream and the resultant math pushing those data through the test bench and the numbers from the current algo don't match the recorded If I feed the recorded calcs in the meters look good as expected Code: 61,68,66,66,113,100 SA L: 61 R: 68 dB L: 66 R: 66 XY x: 113 y: 100 XYd x: 30 y: 18 Retrieved line of length 22: 114,115,66,66,103,168 SA L: 114 R: 115 dB L: 66 R: 66 XY x: 103 y: 168 XYd x: 31 y: 17 Retrieved line of length 21: 369,370,66,66,85,180 SA L: 369 R: 370 dB L: 66 R: 66 XY x: 85 y: 180 XYd x: 35 y: 15 Retrieved line ... XYd are the numbers from the current algo. I don't remember changing this but something is definitely amiss. Last time I touched the code was to add damping on the needle - improved "pseudo" mechanical physics I'm digging through source control to see when this was modified and I'll flip it back or reverse engineer the math. Either way I'll drop a new version as soon as that's been done. AIO I'll be visiting shortly - bar style where introduced late 2020 and may be the issue Again as soon as I have something I'll post back As of *10-Mar-2021* my digitized collection is (25661 hours 04 minutes) + (00 seconds) or 2.929[/B] YEARS IN DURATION RANDOM CONTINUOUS PLAY WOULD REALLY ANNOY THE NEIGHBORS... DIGITIZED THUS FAR: [B]TOTAL TRACKS: 166,204 TOTAL ALBUMS: 15,221 TOTAL ARTISTS: 21,795 TOTAL GENRES: 768 TOTAL PLAYING TIME: 25661:04:00 With another ~2400 yet to be ripped... a moving target such that it is ... shunte88's Profile: http://forums.slimdevices.com/member.php?userid=40185 View this thread: http://forums.slimdevices.com/showthread.php?t=111790 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] WPA-EAP enterprise wifi on picore player
Last I checked, wpa_supplicant is built with the same compile options as debian. But I have no way to test enterprise stuff. I would run wpa_cli, and try to execute commands and see what it says.. it should give you more debugging info. Obviously you will need a keyboard/monitor or ethernet connection to the device while you test wifi. piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=114204 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Problem install driver Elecrow-LCD 101 IPS Screen with touchscreen
pCP does not use X11 So someone has to work out what their scripts do to see if it is essential ... and if not then document how to get it working. If you are lucky someone has already done it and documented it. So first thing to do is search around. Something like this might help (towards the end of the long page_ http://www.pughx2.com/picore3.html Paul Webster http://dabdig.blogspot.com author of \"now playing\" plugins covering radio france (fip etc), kcrw, supla finland, abc australia, cbc/radio-canada and rte ireland Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105 View this thread: http://forums.slimdevices.com/showthread.php?t=114205 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
That is a fact which makes investigating the problem difficult. When there are 500 open file handles, it is difficult to keep track of what is happening. I understand from the code that with a memory configuration of high, the process should not use up more than 500 MB of memory. Is that correct? scaleo home server 2105 & picoreplayer 6.1.0 | logitech media server 8.2.0 | server power control 20120716.103808 | transporter & duet & touch & boom & radio | rotel rc-995 & rmb-100 | nubert nuvero 140 mvordeme's Profile: http://forums.slimdevices.com/member.php?userid=22892 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] Memory Leak in Perl Engine on piCorePlayer?
mvordeme wrote: > I am not sure about all the debugging stuff, but it appears to me that > it is not a matter of configuring things but of changing the code. I > have tried to increase the amount of logging for a few items but didn't > learn much. Where is all the code? The directory containing the > slimserver.pl only contains 9 pl files in total, and only gdresize.pl > uses File::Temp.> Code: > > tc@piCoreServer:/tmp/tcloop/slimserver/usr/local/slimserver$ find . -name "*.pl" -print > ./CPAN/AnyEvent/Util/idna.pl > ./CPAN/AnyEvent/Util/uts46data.pl > ./CPAN/AnyEvent/constants.pl > ./CPAN/XML/SAX/placeholder.pl > ./cleanup.pl > ./gdresize.pl > ./gdresized.pl > ./scanner.pl > ./slimserver.pl > > But I used the opportunity to update the LMS and watch a fresh system > playing an album from Tidal. I now understood why just counting the > number of open file handles does not help with understanding what is > happening. Every track creates and destroys two sockets and two pipes, > and there are other activities adding to the noise, like the caching > of album art. But when it comes to temporary files, the behaviour is > rather straightforward. > > Every single track played leaves a temporary file behind with an open > file handle in slimserver.pl. The files are rather uniform. They seem > to contain mp4 metadata. I downloaded one of the mp4 tracks, too, and > it looks nothing like those temporary files, although with binary > data, this is hard to say. All temporary files start with binary data > and end like this:> Code: > > udta�meta-hdlrmdirilst handlerilstr(meanorg.hydrogenaudio.replaygain&namereplaygain_originator_codedata01101100i(meanorg.hydrogenaudio.replaygain!namereplaygain_track_gaindata-7.87 dBi(meanorg.hydrogenauIuuidDLBY-METADATA-00�meta3hdlrdlbtdolby tags handler�xml > > > > > LS1pbnB1dC1maWxlIDxhcmc+IC0tb3V0cHV0LWZpbGUgPGFyZz4gLS1hdWRpby1lbmNvZGVyIGFhYyAtLWF1ZGlvLWNici1yYXRlIDMyMCAtLWFhYy1tb2RlIGFhYyAtLWlucHV0LXNwZWVjaCBmYWxzZSAtLWF1ZGlvLW9ubHkgLS1yZXBsYXlnYWluIG9uIC0tYXVkaW8tcHJvcC1tZXRhIGxvdWRuZXNzIA== > > > > a8d5be608e4aca0266c159418d806a4e > > �meta;hdlrdlbfdolby file metrics handlerqxml > > > > Dolby Media Generator 3.8.3 > 2016-08-12T17:57:06 > 115124 > > Dolby Pulse Encoder 1.1.4 sbr: 4.0 / Aug 18 2011 > AAC > VBR > 32 > 9765888 > 1c5f05da944468156c140c483176ed9d > > 44100 > 2 > None > 1600 > > > > > 0f2340c558a9c8d72d0ce1fadcd2ff28 > > mmeta;hdlrdlbkdolby audio kernel handler&xml > > > > > > > > > > > > 3c207014a46f955c7c617a330a9d1029 > > 3meta7hdlrdlbmdolby metadata handler�xml > > > > > > > > > > > > > > > 36bbff96c50793db343f56cc653f0adb > > �)emdat > > The only time I saw one of the files being removed was when my > playlist contained only one track and I skipped forward, playing the > same song again. Skipping backward leaves the existing file in place, > and so does skipping forward to another track or the song ending on > its own. These temp files are the download of the header for remote files. They should be closed/erased after 500 files (tbc) on large memory server. I will revisit the code in the coming days. LMS 8.1.x on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch, 1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW, 2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3 philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261 View this thread: http://forums.slimdevices.com/showthread.php?t=113321 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix