Read the statement by Michael Teeuw here.
Electron screen becomes blank after a period of time
-
@DDE12 those are warnings we can’t suppress… nothing we can do… problem is not in MM code…
when the mm screen goes black again , open the developers window
ctrl-shift-i on the MM screen keyboard
then select the console tab, and scroll up to any errors (usually red text )cannot do this remotely has to be on the screen where the problem occurred
-
@sdetweil These are the only messages and probably not actually a problem:
Your are using the deprecated config values ‘colored’. Please switch to ‘coloredSymbol’ & ‘coloredText’!
start @ calendar.js:100[CX3] Module is not prepared yet, wait a while.
getDom @ MMM-CalendarExt3Agenda.js:193[CX3] Module is not prepared yet, wait a while.
getDom @ MMM-CalendarExt3.js:228If electron stops with Dev window closed, I cannot open it. If electron stops with Dev window open, there is a message “DevTools was disconnected from the page…”
If this is not a clue to aid in the troubleshooting, please let me know what to try next to get you some more info. Thanks! -
@DDE12 yes, if the right code crashes, then dev window will die
sometime npm start dev will allow you to see the error before it dies…
-
Check whether some modules make unhandled exception error when it create DOM.
[CX3] Module is not prepared yet, wait a while. getDom @ MMM-CalendarExt3Agenda.js:193 [CX3] Module is not prepared yet, wait a while. getDom @ MMM-CalendarExt3.js:228
This message might imply some other module fails to create DOM at its start. (I’ll fix the CX3* modules not so strict to other module’s failure soon.)
By the way, It would be better;
- Remove all modules from config
- Then add one by one unless you meet the problem.
-
@MMRIZE I updated MMCalendarExt3* and am not getting those messages. Thank you! I have done the troubleshooting you recommended and have discovered that it is MMM-Wallpaper when set to display NASA’s Astronomy Picture of the Day. The black screen does not occur when I set the wallpaper to Met Museum or Firetv. Should I start a new post on troubleshooting MMM-Wallpaper?
-
@DDE12 yes, start a new topic, but it’s probably a picture format or size problem
I don’t know if wallpaper has anyvdebugging/logging
-
I suspect it’s a problem of the pi, not enough memory …
-
Hi, I have the same issue of electron screen becoming blank. I have tried some solutions but none worked. I have added a line of code in my main.js file that reloads the window every 10 minutes. This prevents the screen from going blank. Here is the code snippet:
// Create a new BrowserWindow instance let win = new BrowserWindow(options); // Load the index.html file win.loadFile('index.html'); // Reload the window every 10 minutes setInterval(() => { win.reload(); }, 600000);
I hope this helps you keep your magic mirror running.
Regards, Mia from CodeIT
-
@miabaker so, you should find the module that’s failing and fix that.
-
@karsten13 You might have something there. I changed the source in MMM-Wallpaper from the HD NASA to regular NASA and it took several hours or more for it to go blank. I have had the same problem with other modules as well that seem to resolve when I make the update interval longer. I’ve stopped using the MMM-Wallpaper at this point but I’m hoping there is some further troubleshooting to identify if the Pi is the problem and explore for a solution.