Page : index.php?v=d&p=dashboard
Jeedom_version : 3.3.33
Uname : Linux jeedom 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
Message :
Hello,
The process
/usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py
never end…
If I do a loop that broadcast a message on my google home, my raspebrry pi crash after few minutes because the RAM is full
Le processus
/usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py
ne s’arrête jamais
En faisaint une boucle qui broadcast un message sur mon google home, je fini par saturer la RAM de faire crasher ma raspeberry pi …
.
Bonjour,
Il faudrait la log en débug du plugin gcast pour comprendre d’où vient le soucis
Bonjour,
Les logs vous aideront probablement pas beaucoup, c’est la même ligne qui se répète.
Je joins également l’arborescence des process qui s’accumule.
( stream2chromecast.py semble responsable )
[...]
[2019-10-22 21:25:14][DEBUG] : /usr/bin/python /var/www/html/plugins/gcast/core/class/../../resources/action.py parle 192.168.0.4 "Texte" "https://192.168.0.2:443" fr-FR picotts >> /var/www/html/core/class/../../log/gcast 2>&1 &
[2019-10-22 21:25:56][DEBUG] : /usr/bin/python /var/www/html/plugins/gcast/core/class/../../resources/action.py parle 192.168.0.4 "Texte" "https://192.168.0.2:443" fr-FR picotts >> /var/www/html/core/class/../../log/gcast 2>&1 &
[2019-10-22 21:29:19][DEBUG] : /usr/bin/python /var/www/html/plugins/gcast/core/class/../../resources/action.py parle 192.168.0.4 "Texte" "https://192.168.0.2:443" fr-FR picotts >> /var/www/html/core/class/../../log/gcast 2>&1 &
[...]
27116 www-data 20 0 1888 388 332 S 0.0 0.0 0:00.00 │ ├─ /usr/bin/python /var/www/html/plugins/gcast/core/class/../../resources/action.py parle 192.168.0.4 Texte https://192.168.0.2:443 fr-FR picott
27161 www-data 20 0 1888 396 340 S 0.0 0.0 0:00.00 │ └─ /bin/sh -c sudo /usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py -devicename 192.168.0.4 /var/www/html/plugins/gcast/tmp/cache/56d3babc
27162 root 20 0 5572 3024 2668 S 0.0 0.3 0:00.01 │ └─ sudo /usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py -devicename 192.168.0.4 /var/www/html/plugins/gcast/tmp/cache/56d3babc032eeb8e
27166 root 20 0 22072 10384 6148 S 0.7 1.0 0:08.13 │ └─ /usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py -devicename 192.168.0.4 /var/www/html/plugins/gcast/tmp/cache/56d3babc032eeb8e96
27110 www-data 20 0 21988 19160 6932 S 0.0 1.9 0:01.31 ├─ /usr/bin/python /var/www/html/plugins/gcast/core/class/../../resources/action.py parle 192.168.0.4 Texte
27116 www-data 20 0 1888 388 332 S 0.0 0.0 0:00.00 │ └─ /bin/sh -c sudo /usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py -devicename 192.168.0.4 /var/www/html/plugins/gcast/tmp/cache/a524ebdb
27117 root 20 0 5572 2944 2588 S 0.0 0.3 0:00.00 │ └─ sudo /usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py -devicename 192.168.0.4 /var/www/html/plugins/gcast/tmp/cache/a524ebdb5d4708d1
27121 root 20 0 22072 10392 6148 S 1.3 1.0 0:08.65 │ └─ /usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py -devicename 192.168.0.4 /var/www/html/plugins/gcast/tmp/cache/a524ebdb5d4708d1d8
27056 www-data 20 0 25156 19528 7028 S 0.0 2.0 0:01.50 ├─ /usr/bin/python /var/www/html/plugins/gcast/core/class/../../resources/action.py parle 192.168.0.4 Texte
27096 www-data 20 0 1888 400 344 S 0.0 0.0 0:00.00 │ └─ /bin/sh -c sudo /usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py -devicename 192.168.0.4 /var/www/html/plugins/gcast/tmp/cache/a524ebdb
27097 root 20 0 8840 3252 2904 S 0.0 0.3 0:00.01 │ └─ sudo /usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py -devicename 192.168.0.4 /var/www/html/plugins/gcast/tmp/cache/a524ebdb5d4708d1
27101 root 20 0 25340 10888 6644 S 0.7 1.1 0:08.73 │ └─ /usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py -devicename 192.168.0.4 /var/www/html/plugins/gcast/tmp/cache/a524ebdb5d4708d1d8
23714 www-data 20 0 21988 19132 6904 S 0.0 1.9 0:01.65 ├─ /usr/bin/python /var/www/html/plugins/gcast/core/class/../../resources/action.py parle 192.168.0.4 Texte https://192.168.0.2:443 fr-FR picotts
23729 www-data 20 0 1888 408 352 S 0.0 0.0 0:00.00 │ └─ /bin/sh -c sudo /usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py -devicename 192.168.0.4 /var/www/html/plugins/gcast/tmp/cache/1674dc15
23730 root 20 0 5572 2928 2572 S 0.0 0.3 0:00.00 │ └─ sudo /usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py -devicename 192.168.0.4 /var/www/html/plugins/gcast/tmp/cache/1674dc1579549115
23734 root 20 0 22072 10376 6144 S 0.0 1.0 0:00.30 │ └─ /usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py -devicename 192.168.0.4 /var/www/html/plugins/gcast/tmp/cache/1674dc1579549115da
Pourtant ya un systeme qui toute les heures vient nettoyer les process qui tournent… La je vois vraiment pas et je reproduis pas sur mes 3 google homes donc doit avoir un soucis sur ta configuration mais je suis pas assez bon pour trouver la.
J’essai de vous donner plus d’information.
J’ai lancé la commande suivante :
sudo /usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py -devicename 192.168.0.4 /var/www/html/plugins/gcast/tmp/cache/c97e1b1b267085dac3476d9389767d19.mp3
Le fichier mp3 contient une phrase généré par PicoTTS.
pi@jeedom:~ $ sudo /usr/bin/python /var/www/html/plugins/gcast/resources/caster/stream2chromecast.py -devicename 192.168.0.4 /var/www/html/plugins/gcast/tmp/cache/c97e1b1b267085dac3476d9389767d19.mp3
-----------------------------------------
Stream2Chromecast version:0.6.3
Copyright (C) 2014-2016 Pat Carter
GNU General Public License v3.0
https://www.gnu.org/licenses/gpl-3.0.html
-----------------------------------------
ip_addr: 192.168.0.4 device name:
source is file: /var/www/html/plugins/gcast/tmp/cache/c97e1b1b267085dac3476d9389767d19.mp3
local ip address: 192.168.0.2
OS identifies the mimetype as : audio/mpeg
URL & content-type: http://192.168.0.2:42355?/var/www/html/plugins/gcast/tmp/cache/c97e1b1b267085dac3476d9389767d19.mp3 audio/mpeg
loading media...
192.168.0.4 - - [25/Oct/2019 23:06:53] "GET /?/var/www/html/plugins/gcast/tmp/cache/c97e1b1b267085dac3476d9389767d19.mp3 HTTP/1.1" 200 -
sending data
# The script hang here, however the mp3 have been played on the google home
Le problème semble être dans le self.write_response, une des instructions semble attendre quelque choses.
Ca se passe dans pychromecast la c’est pas nous qui avons fait la lib, au mieux je peux essayer de la mettre a jour mais il semble maintenant qu’il faille du python 3 donc ca va prendre pas mal de temps…
J’ai rien dit on utilise stream2chromecast et ya pas de mise à jour depuis 2ans… De toute facon je doute que ca aurait corrigé si bug yavait ca sera le cas chez tout le monde et pas que chez toi, c’est donc un truc chez toi mais je doute de trouver malheureusement