Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Thread Closed 
Problem: System freezes after a while
#30
Hi,

i had the same behaviour with PI3.

Moode web app has some memory leaks, especially when using large music library.
When using local UI, with low memory capacity (on pi3 for example) chromium takes all available memory.
After a while, even with no local UI interaction, the system freeze with lack of memory (system fail swaping memory efficiently).

In my case i just want a local UI with few infos : cover and current info (Artist / Album / Title) and no interaction (i use my laptop or smartphone to control music).

So i create a custom default page for local UI and place it in :
/home/pi/.xinitrc

last line :

Code:
chromium-browser --app=http://localhost/coverview.php --window-size=$SCREENSIZE$


the coverview.php i put in : /var/www/


PHP Code:
<?php
$txt_file 
'/var/local/www/currentsong.txt';
?>
<html>
 <head>
   <META HTTP-EQUIV="refresh" CONTENT="30">
   <style>
     body {
       background-color: #000000;
     }
   </style>
 </head>
 <style>
    p {
      font-family: "Verdana", "Georgia", "Didot", "Times New Roman", Times, serif;
      text-align: center;
      color: white;
      font-size: 20px;
    }
 </style>
<body>
<?php
$lines 
file($txt_file);
foreach (
$lines as $num=>$line)
{
$numval explode'=' $line);
switch (
$numval[0]){
 case 'artist':
  $artist=$numval[1];
  break;
 case 'album':
  $album=$numval[1];
  break;
 case 'title':
  $title=$numval[1];
  break;
 case 'coverurl':
  $img="<center><img height=90% src=\"".$numval[1]."\"></center>";
  break;
 default:
  break;
}
//echo 'Line '.$num.': '.$line.'<br/>';
}
echo 
'<p>';
echo 
$artist ' | ';
echo 
$album ' | ';
echo 
$title '<BR>';
echo 
'</p>';
echo 
$img ' | ';
?>
</body>
</html>
  

it work like a charm.
Before : chromium use 75% of memory and keeps trying to get more -> freeze, even SSH fail
   

After : memory usage stable, chromium ~25%
   

Capture of new superlite local ui for me :
   

I think it can be a good improvment to propose in a future release such a superlight local ui for system with low memory capacity

Smile



Best regards
Stephane


Messages In This Thread
System freezes after a while - by rph-r - 04-23-2021, 09:58 AM
RE: System freezes after a while - by aknaggbaugh - 04-23-2021, 10:11 AM
RE: System freezes after a while - by rph-r - 04-23-2021, 07:23 PM
RE: System freezes after a while - by rph-r - 04-23-2021, 07:33 PM
RE: System freezes after a while - by Tim Curtis - 04-23-2021, 08:27 PM
RE: System freezes after a while - by rph-r - 04-23-2021, 09:20 PM
RE: System freezes after a while - by Tim Curtis - 04-23-2021, 09:43 PM
RE: System freezes after a while - by rph-r - 04-24-2021, 12:59 AM
RE: System freezes after a while - by Tim Curtis - 04-24-2021, 01:19 AM
RE: System freezes after a while - by rph-r - 04-24-2021, 09:53 AM
RE: System freezes after a while - by Tim Curtis - 04-24-2021, 12:04 PM
RE: System freezes after a while - by rph-r - 04-25-2021, 01:03 PM
RE: System freezes after a while - by rph-r - 04-26-2021, 07:02 AM
RE: System freezes after a while - by rph-r - 06-17-2021, 09:37 PM
RE: System freezes after a while - by the_bertrum - 12-02-2021, 04:31 PM
RE: System freezes after a while - by rph-r - 06-17-2021, 09:39 PM
RE: System freezes after a while - by rph-r - 12-01-2021, 12:32 PM
RE: System freezes after a while - by Alaini93 - 12-01-2021, 07:49 PM
RE: System freezes after a while - by rph-r - 12-02-2021, 10:05 AM
RE: System freezes after a while - by rph-r - 12-02-2021, 10:11 AM
RE: System freezes after a while - by rph-r - 12-02-2021, 05:12 PM
RE: System freezes after a while - by rph-r - 12-03-2021, 09:41 AM
RE: System freezes after a while - by CallMeMike - 12-03-2021, 01:23 PM
RE: System freezes after a while - by stefil - 03-03-2022, 09:59 AM
RE: System freezes after a while - by Tim Curtis - 03-03-2022, 12:16 PM
RE: System freezes after a while - by stefil - 03-03-2022, 12:44 PM
RE: System freezes after a while - by andib - 03-28-2022, 07:10 PM
RE: System freezes after a while - by rph-r - 08-18-2022, 08:13 AM
RE: System freezes after a while - by rph-r - 09-01-2022, 08:10 PM
RE: System freezes after a while - by rph-r - 09-07-2022, 08:44 PM
RE: System freezes after a while - by Tim Curtis - 09-07-2022, 10:51 PM
RE: System freezes after a while - by rph-r - 09-08-2022, 07:56 AM
RE: System freezes after a while - by rph-r - 11-17-2022, 07:54 AM
RE: System freezes after a while - by Nutul - 11-17-2022, 08:59 AM
RE: System freezes after a while - by Tim Curtis - 11-17-2022, 12:12 PM

Forum Jump: