MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

Black screen after some hours



  • Hy

    my mirror works fine for some hours.

    suddenly a black screen with the mous appears.
    the way to solve is, to restart the mm (pm2 restart mm)

    as workaround i tried chromium, which is also working fine for some hours, but then it will lose the conneciton and i have to reload the page.

    is there a solution for my issues?

    i prefer to use the electron to view the mirror not chromium



  • I have been experiencing this for a week. I just made a reddit post about this too.

    • redid my config.js
    • reinstalled magicmirror
    • reimaged my pi and started from scratch
    • no errors that I can find

    This does not seem to be screensaver related, as I can still move my mouse and it shows.

    I run a pm2 restart mm command via ssh and it restarts just fine.

    Any ideas?



  • Link to the reddit post if anyone is interested:
    https://redd.it/8lsf6b


  • Module Developer

    @fidst Try to execute pm2 log mm. This will give you the log of the MacigMirror Instance. Post the log here if the black screen occures. (You may check for any sensible information from other modules)



  • Hi all,

    I’m facing exactly the same problem on my RPi3. The screen is all black and shows only the mouse arrow. I can access the MMM-RemoteControl from a separate notebook or mobile and it is possible to remotely restart the MM software to bring everything back to normal.
    With a connect mouse you can move the mouse pointer but still there is a black screen. below please find the result after typing pm2 log mm

    /home/pi/.pm2/logs/mm-error-0.log last 15 lines:
    0|mm       |     at emitTwo (events.js:106:13)
    0|mm       |     at ChildProcess.emit (events.js:191:7)
    0|mm       |     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
    0|mm       | TypeError: Cannot read property 'hash' of null
    0|mm       |     at /home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:68:31
    0|mm       |     at Git. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1482:10)
    0|mm       |     at done (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1354:21)
    0|mm       |     at ChildProcess. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1379:16)
    0|mm       |     at emitTwo (events.js:106:13)
    0|mm       |     at ChildProcess.emit (events.js:191:7)
    0|mm       |     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
    0|mm       | fatal: unable to access 'https://github.com/jclarke0000/MMM-MyWeather.git/': Operation timed out after 300010 milliseconds with 0 out of 0 bytes received
    0|mm       | 
    0|mm       | fatal: unable to access 'https://github.com/raywo/MMM-PublicTransportHafas.git/': Operation timed out after 300039 milliseconds with 0 out of 0 bytes received
    0|mm       | 
    
    0|mm       | Whoops! There was an uncaught exception...
    0|mm       | TypeError: Cannot read property 'hash' of null
    0|mm       |     at /home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:68:31
    0|mm       |     at Git. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1482:10)
    0|mm       |     at done (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1354:21)
    0|mm       |     at ChildProcess. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1379:16)
    0|mm       |     at emitTwo (events.js:106:13)
    0|mm       |     at ChildProcess.emit (events.js:191:7)
    0|mm       |     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
    0|mm       | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    0|mm       | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    0|mm       | Whoops! There was an uncaught exception...
    0|mm       | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    0|mm       | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    0|mm       | TypeError: Cannot read property 'hash' of null
    0|mm       |     at /home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:68:31
    0|mm       |     at Git. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1482:10)
    0|mm       |     at done (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1354:21)
    0|mm       |     at ChildProcess. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1379:16)
    0|mm       |     at emitTwo (events.js:106:13)
    0|mm       |     at ChildProcess.emit (events.js:191:7)
    0|mm       |     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
    0|mm       | Whoops! There was an uncaught exception...
    0|mm       | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    0|mm       | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    0|mm       | TypeError: Cannot read property 'hash' of null
    0|mm       |     at /home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:68:31
    0|mm       |     at Git. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1482:10)
    0|mm       |     at done (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1354:21)
    0|mm       |     at ChildProcess. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1379:16)
    0|mm       |     at emitTwo (events.js:106:13)
    0|mm       |     at ChildProcess.emit (events.js:191:7)
    0|mm       |     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
    0|mm       | Whoops! There was an uncaught exception...
    0|mm       | TypeError: Cannot read property 'hash' of null
    0|mm       |     at /home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:68:31
    0|mm       |     at Git. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1482:10)
    0|mm       |     at done (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1354:21)
    0|mm       |     at ChildProcess. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1379:16)
    0|mm       |     at emitTwo (events.js:106:13)
    0|mm       |     at ChildProcess.emit (events.js:191:7)
    0|mm       |     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
    0|mm       | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    0|mm       | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    0|mm       | Whoops! There was an uncaught exception...
    0|mm       | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    0|mm       | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    0|mm       | TypeError: Cannot read property 'hash' of null
    0|mm       |     at /home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:68:31
    0|mm       |     at Git. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1482:10)
    0|mm       |     at done (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1354:21)
    0|mm       |     at ChildProcess. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1379:16)
    0|mm       |     at emitTwo (events.js:106:13)
    0|mm       |     at ChildProcess.emit (events.js:191:7)
    0|mm       |     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
    0|mm       | Whoops! There was an uncaught exception...
    0|mm       | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    0|mm       | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    0|mm       | TypeError: Cannot read property 'hash' of null
    0|mm       |     at /home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:68:31
    0|mm       |     at Git. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1482:10)
    0|mm       |     at done (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1354:21)
    0|mm       |     at ChildProcess. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1379:16)
    0|mm       |     at emitTwo (events.js:106:13)
    0|mm       |     at ChildProcess.emit (events.js:191:7)
    0|mm       |     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
    0|mm       | Whoops! There was an uncaught exception...
    0|mm       | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    0|mm       | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
    0|mm       | TypeError: Cannot read property 'hash' of null
    0|mm       |     at /home/pi/MagicMirror/modules/default/updatenotification/node_helper.js:68:31
    0|mm       |     at Git. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1482:10)
    0|mm       |     at done (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1354:21)
    0|mm       |     at ChildProcess. (/home/pi/MagicMirror/node_modules/simple-git/src/git.js:1379:16)
    0|mm       |     at emitTwo (events.js:106:13)
    0|mm       |     at ChildProcess.emit (events.js:191:7)
    0|mm       |     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
    

    in the log is written… Maybe no Internet connection? but this is definitely not true…

    Anybody an idea why this happens?



  • Same Problem here. New MagicMirror Setup with a Raspberry Pi 2 and USB-Wifi.
    The Error Message is similar. It seems to lost the Internet Connection and the screen goes blank/black.
    No Solution so far.



  • Same behavior on RPI3, black screen after few hours, I’ve tried almost all version of electron described on the linked thread, no workaround found.



  • Same here. I turned down the updatenotification module. See if this helps. Will keep you posted.



  • 3rd day. No black screen anymore. I think we identified the root cause.



  • @rak
    I’ll give it a try and remove the update module. But it will take some more days since I’m traveling over the weekend…