MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    [SOLVED] random black screen

    Bug Hunt
    4
    15
    383
    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.
    • qu1que
      qu1que Project Sponsor last edited by qu1que

      Hello!

      I have a problem with my Magic Mirror since a few months ago, randomly, the screen goes black and doesn’t show any module. It doesn’t always happen at the same time, sometimes a few minutes after starting, sometimes after a few hours.

      Until recently I managed to “patch” it by restarting the lightdm service (sudo service lightdm restart) to restart the whole desktop and restart the script that launches the MM, as I have it configured to start as soon as I start the desktop environment. I even went so far as to create a cron job to run the lightdm service restart every hour, but I know that’s not a definitive solution.

      Yesterday, with patience, I managed to discover the problem, just by pressing F11 while the MM was running, I could see a kind of debugging console (I don’t know if this is the right name), where you can see the steps that the software is executing. Now that I’ve located it, I’d like to find a solution. I also managed to verify that this error occurs with the default modules “calendar” and/or “newsfeed”. But this is where I need your help, because I don’t understand the error message.

      I attach 2 screenshots where you can see the correct operation and another one where you can see the error. It is always the same, when I get this error, the screen goes black.

      Thank you in advance for all your help.

      Magic Mirror version 2.20.0
      Node version 16.6.0
      npm version 7.19.1

      Translated with www.DeepL.com/Translator (free version)

      MM_OK.png

      erro_MM.png

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @qu1que last edited by

        @qu1que this error implies u are running MagicMirror in a docker container,

        MagicMirrorOS
        or one of the docker implementations

        https://github.com/WPO-Foundation/wptagent/issues/327

        Sam

        Create a working config
        How to add modules

        qu1que 1 Reply Last reply Reply Quote 0
        • qu1que
          qu1que Project Sponsor @sdetweil last edited by

          @sdetweil

          Thanks for the reply, but no docker installed in that raspbery, I’ve installed following the standard method 3 or 4 years ago, and doing the updates when they are ready. I’ve also have 2 backups of the entire micro SD. But maybe I’ll try a clean installation someday and see what happens.

          karsten13 S 2 Replies Last reply Reply Quote 0
          • karsten13
            karsten13 @qu1que last edited by

            @qu1que

            sounds like a memory problem on your raspberry pi, may other applications are running beside mm which need much memory or some modules of mm are “eating” memory …

            1 Reply Last reply Reply Quote 0
            • S
              sdetweil @qu1que last edited by

              @qu1que maybe increase the swap space?

              Sam

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • M
                MMRIZE last edited by

                This might be not related, but why are your newsfeeds so many and frequently fetched?

                qu1que 1 Reply Last reply Reply Quote 0
                • qu1que
                  qu1que Project Sponsor @MMRIZE last edited by

                  @MMRIZE

                  I don’t know, I have now 14 url of rss feeds, But I’ve tried with less of them and the error does not disappear.

                  1 Reply Last reply Reply Quote 0
                  • M
                    MMRIZE last edited by MMRIZE

                    Usually broker_posix.cc(46) Received unexpected number of handles error might seem to happen when the memory is insufficient for various reasons. I suspect you try to open too many files(newsfeed??) at once.

                    PS
                    newsfeed itself might not be the reason. (14 feeds are not TOO MANY). But your other module/process would be eating memory.

                    qu1que 2 Replies Last reply Reply Quote 0
                    • qu1que
                      qu1que Project Sponsor @MMRIZE last edited by

                      @MMRIZE

                      Maybe, I’ll try disabling some modules. Thanks. i will tell u when I try it.

                      1 Reply Last reply Reply Quote 0
                      • qu1que
                        qu1que Project Sponsor @MMRIZE last edited by

                        @MMRIZE

                        The thing is, now that I remember, during the weekend I disabled completely newsfeed module, and the error does not disappeared. Now I’ll try disabling more modules.

                        qu1que 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy