MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Black screen after some hours

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    19 Posts 11 Posters 10.7k Views 13 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      schmo90
      last edited by

      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

      1 Reply Last reply Reply Quote 3
      • F Offline
        fidst
        last edited by

        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?

        1 Reply Last reply Reply Quote 1
        • F Offline
          fidst
          last edited by

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

          idoodlerI 1 Reply Last reply Reply Quote 0
          • idoodlerI Offline
            idoodler Module Developer @fidst
            last edited by

            @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)

            1 Reply Last reply Reply Quote 1
            • O Offline
              onkelbobby
              last edited by

              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?

              1 Reply Last reply Reply Quote 1
              • V Offline
                Voteax
                last edited by

                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.

                1 Reply Last reply Reply Quote 1
                • P Offline
                  prysme01
                  last edited by

                  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.

                  1 Reply Last reply Reply Quote 1
                  • R Offline
                    rak
                    last edited by

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

                    R 1 Reply Last reply Reply Quote 0
                    • R Offline
                      rak @rak
                      last edited by

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

                      O 1 Reply Last reply Reply Quote 0
                      • O Offline
                        onkelbobby @rak
                        last edited by

                        @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…

                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          prysme01
                          last edited by

                          I’ve already disabled the update notification module, nothing has changed.

                          1 Reply Last reply Reply Quote 0
                          • R Offline
                            rak
                            last edited by

                            For me it runs stable since removing the update module.

                            O 1 Reply Last reply Reply Quote 0
                            • O Offline
                              onkelbobby @rak
                              last edited by

                              I updated our mirror to 2.4.1 about 2 weeks ago… since the new software is running we don’t see black screen anymore…

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                CarstenD
                                last edited by

                                Running 2.4.1 and getting the black screen after some time. Pi is still accessible and PM2 restart mm makes it work again.
                                How do you disable the update notification module?

                                bheplerB 1 Reply Last reply Reply Quote 0
                                • bheplerB Offline
                                  bhepler Module Developer @CarstenD
                                  last edited by

                                  @carstend - Just remove it from your config.js. Take out everything between the {...} that surrounds the notification module and save the file. Restart the MagicMirror process and you should be good to go.

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    thejoaovitor
                                    last edited by

                                    I have exactly the same problem with my Pi 3, similar error log. After removing the notification module from my config.js and it seems to be workinkg correctly now.

                                    1 Reply Last reply Reply Quote 0
                                    • C Offline
                                      CarstenD
                                      last edited by

                                      Disabling the notification module did not change the problem. I solved it finally by going through (1) removing and (2) reinstalling screensaver and then (3) disabling screensaver again. Even though for me there is no logical explanation doing it that way, the problem has gone away.

                                      1 Reply Last reply Reply Quote 0
                                      • MarosM Offline
                                        Maros
                                        last edited by Maros

                                        how do you remove and reinstall screen saver ? can you give me commands ?

                                        i’ve tried

                                        sudo apt-get remove xscreensaver
                                        

                                        but it just gives me that no xscreensaver isn’t installed.

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          thejoaovitor
                                          last edited by

                                          A solution, (not perfect) is to use MMM-WatchDog, it keeps an eye on your UI and quits app in case the UI crashes, combined with the PM2 process manager, MM2 will automaticly restart after a UI failure.

                                          https://github.com/MichMich/MMM-WatchDog

                                          1 Reply Last reply Reply Quote 0

                                          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
                                          • 1 / 1
                                          • First post
                                            Last post
                                          Enjoying MagicMirror? Please consider a donation!
                                          MagicMirror created by Michael Teeuw.
                                          Forum managed by Sam, technical setup by Karsten.
                                          This forum is using NodeBB as its core | Contributors
                                          Contact | Privacy Policy