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 :
the coverview.php i put in : /var/www/
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
Best regards
Stephane
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
Best regards
Stephane