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.

    Mirror turning black after a while

    Scheduled Pinned Locked Moved Troubleshooting
    45 Posts 16 Posters 38.4k Views 15 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.
    • R Offline
      retroflex Project Sponsor Module Developer @Mykle1
      last edited by

      @Mykle1
      Thanks. I’m pretty sure the monitor is on, because if I connect a keyboard I can start a terminal and it doesn’t look like it has been down in sleep mode (should take longer time to wake). I’ve also tried to turn off/on screen with MMM-RemoteControl just to make sure, but no luck. I’ll double check the status light when the error occurs again.

      ChrisC 1 Reply Last reply Reply Quote 0
      • ChrisC Offline
        Chris @retroflex
        last edited by

        @retroflex
        Hello,
        I also encounter this problem episodically. Magic mirror works normally but no module appears on the screen a simple ctrl + R (reload) is enough to refresh and make reappear modules.
        Regards,

        R ChrisC 2 Replies Last reply Reply Quote 0
        • R Offline
          retroflex Project Sponsor Module Developer @Chris
          last edited by

          @Chris
          Did you have the same error on the old version or did it appear with the latest?

          1 Reply Last reply Reply Quote 0
          • D Offline
            doubleT Module Developer
            last edited by

            Is there any kind of “sleep” mode on the system itself?
            The node log probably doesn’t detect what’s going on but maybe the console log would show (unfortunately, it’s reset when the browser window is refreshed). I’d start MM in dev mode and wait for the crash, then check the browser’s console log.

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              retroflex Project Sponsor Module Developer @doubleT
              last edited by

              @doubleT Thanks for the tip! I will try dev mode and report back.

              1 Reply Last reply Reply Quote 0
              • ChrisC Offline
                Chris @Chris
                last edited by

                @retroflex said in Mirror turning black after a while:

                @Chris
                Did you have the same error on the old version or did it appear with the latest?

                Hello,
                it is true that this is happening since the last version.
                I did not pay much attention to this because it was during an attempt to install a module that caused me a lot of trouble. I thought it was just that.
                As I told you, it’s still very episodic, it must have been more than two days since it did not happen.

                Regards,

                1 Reply Last reply Reply Quote 0
                • B Offline
                  bimalnair
                  last edited by

                  Hello All, is this issue fixed? I still have this issue and I get back the screen only by ctrl + R. I am experiencing this issue only after the recent update.

                  R 1 Reply Last reply Reply Quote 0
                  • R Offline
                    retroflex Project Sponsor Module Developer @bimalnair
                    last edited by retroflex

                    @bimalnair I haven’t done any more research. But now I have started in dev mode and will see if the console log says anything useful. But it usually takes some hours before my freezes, so I will know later today (hopefully).

                    Another test is to remove module by module to see if a certain module is causing problems. Or the opposite, start with only one module and see if it will freeze. Can you check which modules we share? Maybe we can narrow it down a bit.

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      bimalnair
                      last edited by

                      I am using the following modules
                      default/alert
                      default/clock
                      default/calendar
                      default/currentweather
                      default/weatherforecast
                      default/newsfeed
                      default/compliments
                      MMM-ShipmentTracking
                      MMM-Traffic
                      MMM-ImagesPhotos
                      MMM-dht22

                      Will try disabling each module

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

                        Hello,
                        I think it would come from one of your modules because I do not encounter the problem since I put my mirror with my usual modules. if that helps you, it happened to me when I tried to install and set up the MMM-Assistant.
                        Regards,

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

                          Hello, After upgrading MM to 2.2.0 and also upgrading my debian, I am also facing this issue of random black screen. PI is still up and I can log in and restart mm. Really annoying issue.

                          1 Reply Last reply Reply Quote 0
                          • R Offline
                            retroflex Project Sponsor Module Developer @bimalnair
                            last edited by

                            @bimalnair Have you tried to find out which module is causing problems for you yet?

                            I have finally got a dev log file from the error… As it’s not timestamped, it’s hard to draw any conclusions. But this is one of the lasts logs, which presumably is when the mirror goes black:

                            [5966:0125/191204:FATAL:memory_linux.cc(35)] Out of memory.
                            #0 0x0000012a3bb0 
                            #1 0x0000012b4406 
                            #2 0x0000012c8ae6 
                            #3 0x000000d8bb1c 
                            #4 0x000000d8ba9e operator new()
                            #5 0x0000012b9ee0 
                            #6 0x0000012b94ce 
                            #7 0x0000012ba204 
                            #8 0x0000012cb2c6 
                            #9 0x0000012b89f6 
                            #10 0x000000b58d18 
                            #11 0x000000a34c38 
                            #12 0x000000a35a80 
                            #13 0x000000a349c2 
                            #14 0x00000221e2fa main
                            #15 0x000074c0f294 __libc_start_main
                            

                            I did not check which process is eating all the memory though. That will be the next step.

                            Other than that I can see in the log that I lost internet connection a couple of times:

                            fatal: unable to access 'https://github.com/MichMich/MagicMirror.git/': Could not resolve host: github.com
                            
                            Whoops! There was an uncaught exception...
                            TypeError: Cannot read property 'feed' of undefined
                                at ClientRequest. (/home/pi/MagicMirror/modules/MMM-Skolmaten/node_helper.js:45:20)
                            

                            And a lot of these logs, which I guess is ok:

                            Reusing 14 cached departure(s) for module: MMM-ResRobot
                            

                            Any bright ideas? :)

                            1 Reply Last reply Reply Quote 1
                            • cruunnerrC Offline
                              cruunnerr
                              last edited by

                              @retroflex

                              the wifi on the RPi 3 is not the best. So i installed an automatically wifi_rebooter here. U could try that as well: http://alexba.in/blog/2015/01/14/automatically-reconnecting-wifi-on-a-raspberrypi/

                              in my case my Pi pings my router address every 3 minutes and when it cannot reach it, it reboots it’s wifi itself.

                              For your other problem u could try “nmon”.

                              sudo apt-get install nmon

                              start it by simply typing nmon

                              when it starts u can type letters to choose what u want it to show. with “t, l, m, c” it will show u “top processes”, “long therm CPU usage”, “memory usage” and “actual CPU usage”

                              Mykle1M 1 Reply Last reply Reply Quote 1
                              • Mykle1M Offline
                                Mykle1 Project Sponsor Module Developer @cruunnerr
                                last edited by

                                @cruunnerr

                                I agree. nmon is a very useful tool for diagnosing Pi cpu and memory issues.

                                https://forum.magicmirror.builders/topic/4684/electron-cpu-usage/11

                                Create a working config
                                How to add modules

                                R 1 Reply Last reply Reply Quote 0
                                • R Offline
                                  retroflex Project Sponsor Module Developer @Mykle1
                                  last edited by

                                  @Mykle1 @cruunnerr Thanks. Nmon is a great tip. I can clearly see that I have a CPU issue beside the memory leak. CPU for electron process is at 100% all the time. Currently at 30% mem, but I guess this will increase over time. Will check later.

                                  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
                                  1146 pi        20   0  700648 300408  47112 R 100.0 31.6 215:22.52 electron
                                  

                                  I’ve read the CPU usage thread and can conclude that I use electron v1.4.15 and MM v2.2.0. Mykle1, the thread said to use an older MM version, but I guess the new one should work ok too? Since electron was forced to the older version in the new release?

                                  Now all I have to do is check each module I run and check CPU and mem for each :)

                                  1 Reply Last reply Reply Quote 0
                                  • R Offline
                                    retroflex Project Sponsor Module Developer
                                    last edited by

                                    My problem was MMM-ResRobot. I deactivated it and kept all other modules and now CPU is at 2% and memory stable over time at around 10%. Not sure if the MM/electron/ResRobot update caused the problem, but it worked ok before. Strange…

                                    Mykle1M F 2 Replies Last reply Reply Quote 1
                                    • Mykle1M Offline
                                      Mykle1 Project Sponsor Module Developer @retroflex
                                      last edited by

                                      @retroflex said in Mirror turning black after a while:

                                      and now CPU is at 2% and memory stable over time at around 10%

                                      That’s great news, mate! I did that testing months ago to determine what was causing the CPU spikes. It was rather rewarding to have discovered the cause. They gave me an award. :-)

                                      Peace!

                                      Create a working config
                                      How to add modules

                                      1 Reply Last reply Reply Quote 0
                                      • schlachtkreuzer6S Offline
                                        schlachtkreuzer6
                                        last edited by

                                        I got the same problem with an TV, around 6 to 9h it went black and I had to restart MM

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

                                          Same problem here.
                                          After some hours the creen goes black.
                                          Pi Zero and “node serveronly”

                                          R 1 Reply Last reply Reply Quote 0
                                          • R Offline
                                            retroflex Project Sponsor Module Developer @cyberdie
                                            last edited by

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

                                            schlachtkreuzer6S 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
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • 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