Read the statement by Michael Teeuw here.
Mirror turning black after a while
-
Same problem here.
After some hours the creen goes black.
Pi Zero and “node serveronly” -
@cyberdie @schlachtkreuzer6 It seems to be related to a certain module. Most likely it is a memory leak you have too. Try to find out by disabling modules until it works.
It would be good to find the root cause to this though as many have problems. But that is a bit out of my expertise.
-
me too,… still while after while,… guess have that problem since version 2.0.0 but not sure,. cause update everything regularly,…
-
@retroflex probably we need some code to clear the ram periodically. I think my problem module is the MMM-Globe. But I will have to test it. (about 10 modules… So one module per day… Uff that’s a looooong way.
-
make two or three per day ;)
than it goes faster
-
Maybe this can be the cause?
-
@cruunnerr
I’m working 🙄 didn’t test anything yet 😅 -
@retroflex I also got the same issue. MMM-resrobot or something it depends on looks to be causing this. Has anyone found a workaround? Resrobot is one of the main reasons I have the mirror so not really happy about disableing it.
-
@Alvinger Do you know what could be the problem with ResRobot here?
-
@retroflex I can’t think of anythong off hand.
I am running an older version of MM myself so haven’t researched the electron issues.
Can anyone confirm that the issue started with the new MM version?As I am running my magic mirror on an original Pi 1 with 256MB RAM with no issues whatsoever I am a bit surprised that the module should cause this.
Edit: MMM-ResRobot has but one dependency and that is the unirest module.
Which version of ResRobot are you running? I did a rewrite to reduce the number of updates w while ago.
-
@alvinger In my case, the problem started after last MM update.
-
@cyberdie said in Mirror turning black after a while:
@alvinger In my case, the problem started after last MM update.
Same here. Running the latest ResRobot.
But I think others have reported the same problem but with a different module.
-
@binog @FredJ @cyberdie @schlachtkreuzer6
Looking through the unirest dependencies it looks like it relies on express which may or may not make it sus eptible to the issues with electron.
To resolve this I replaced unirest with node-fetch and pushed the new version of MMM-ResRobot to github.
To upgrade cd to your MagicMirror directory and run the following commands:
git pull npm remove unirest npm installPlease post results in this thread!
Hope this resolves the issue. -
@Alvinger Thanks for the quick fix! :)
My first test…
- “top” without ResRobot shows about 1% CPU when idle.
- Added ResRobot (old version): “top” shows 100% CPU all the time.
- Updated ResRobot, removed unirest, npm install: “top” now shows 1% CPU when idle. Yay!
Looks good so far. Too early to tell anything about memory leaks, but I will keep my mirror running and check tonight. Currently electron shows 18% mem used (for the 2 electron processes).
-
Short lived happiness it seemed… After a few minutes CPU is now back at 100% and memory use increasing. :(
Also tested after reboot of my Pi3 with the same results.
This is my config:
{ module: "MMM-ResRobot", position: "top_right", header: "", config: { routes: [ {from: "740015970", to: "740015568"}, ], updateInterval: 2 * 60 * 1000, // Update every second minute. maximumEntries: 6, // Number of departures to show on screen truncateAfter: 5, // A value > 0 will truncate direction name at first space after characters. 0 = no truncation apiKey: "*******" // Your ResRobot apiKey } }, -
But still, I am not using ResRobot,. and do have the same problem, from time to time,…
-
@retroflex
I will dig up another respberry pi and try it out. My test environment is a dietpi vm which runs on a pc so I wouldn’t expect the cpu load to be representative of the load on the pi. -
I also dont think the issue is with ResRobot itself. But it is great that you are looking into it @Alvinger
-
no ResRobot running on my setup. Think the problem is electron itself.
-
I agree with others that the problem is most likely related to Electron and not module-specific but rather related to which module dependencies it has.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login