• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 30.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.
  • F Offline
    FredJ @retroflex
    last edited by Feb 1, 2018, 10:39 AM

    @retroflex I also got the same issue. MMM-resrobot or something it depends on looks to be causing this. Has anyone found a workaround? Resrobot is one of the main reasons I have the mirror so not really happy about disableing it.

    1 Reply Last reply Reply Quote 0
    • R Offline
      retroflex Project Sponsor Module Developer
      last edited by Feb 1, 2018, 7:52 PM

      @Alvinger Do you know what could be the problem with ResRobot here?

      A 1 Reply Last reply Feb 2, 2018, 8:19 PM Reply Quote 0
      • A Offline
        Alvinger @retroflex
        last edited by Alvinger Feb 2, 2018, 8:37 PM Feb 2, 2018, 8:19 PM

        @retroflex I can’t think of anythong off hand.

        I am running an older version of MM myself so haven’t researched the electron issues.
        Can anyone confirm that the issue started with the new MM version?

        As I am running my magic mirror on an original Pi 1 with 256MB RAM with no issues whatsoever I am a bit surprised that the module should cause this.

        Edit: MMM-ResRobot has but one dependency and that is the unirest module.

        Which version of ResRobot are you running? I did a rewrite to reduce the number of updates w while ago.

        1 Reply Last reply Reply Quote 0
        • C Offline
          cyberdie
          last edited by cyberdie Feb 2, 2018, 8:45 PM Feb 2, 2018, 8:45 PM

          @alvinger In my case, the problem started after last MM update.

          R A 2 Replies Last reply Feb 2, 2018, 10:25 PM Reply Quote 0
          • R Offline
            retroflex Project Sponsor Module Developer @cyberdie
            last edited by Feb 2, 2018, 10:25 PM

            @cyberdie said in Mirror turning black after a while:

            @alvinger In my case, the problem started after last MM update.

            Same here. Running the latest ResRobot.

            But I think others have reported the same problem but with a different module.

            1 Reply Last reply Reply Quote 0
            • A Offline
              Alvinger @cyberdie
              last edited by Alvinger Feb 2, 2018, 10:30 PM Feb 2, 2018, 10:30 PM

              @binog @FredJ @cyberdie @schlachtkreuzer6

              Looking through the unirest dependencies it looks like it relies on express which may or may not make it sus eptible to the issues with electron.

              To resolve this I replaced unirest with node-fetch and pushed the new version of MMM-ResRobot to github.

              To upgrade cd to your MagicMirror directory and run the following commands:

              git pull
              npm remove unirest
              npm install
              

              Please post results in this thread!
              Hope this resolves the issue.

              R 1 Reply Last reply Feb 3, 2018, 11:12 AM Reply Quote 0
              • R Offline
                retroflex Project Sponsor Module Developer @Alvinger
                last edited by Feb 3, 2018, 11:12 AM

                @Alvinger Thanks for the quick fix! :)

                My first test…

                1. “top” without ResRobot shows about 1% CPU when idle.
                2. Added ResRobot (old version): “top” shows 100% CPU all the time.
                3. Updated ResRobot, removed unirest, npm install: “top” now shows 1% CPU when idle. Yay!

                Looks good so far. Too early to tell anything about memory leaks, but I will keep my mirror running and check tonight. Currently electron shows 18% mem used (for the 2 electron processes).

                1 Reply Last reply Reply Quote 0
                • R Offline
                  retroflex Project Sponsor Module Developer
                  last edited by retroflex Feb 3, 2018, 11:27 AM Feb 3, 2018, 11:25 AM

                  Short lived happiness it seemed… After a few minutes CPU is now back at 100% and memory use increasing. :(

                  Also tested after reboot of my Pi3 with the same results.

                  This is my config:

                  		{
                  			module: "MMM-ResRobot",
                  			position: "top_right",
                  			header: "",
                  			config: {
                  				routes: [
                  					{from: "740015970", to: "740015568"},
                  				],
                  				updateInterval: 2 * 60 * 1000,	// Update every second minute.
                  				maximumEntries: 6,  // Number of departures to show on screen
                  				truncateAfter: 5,   // A value > 0 will truncate direction name at first space after  characters. 0 = no truncation
                  				apiKey: "*******"  // Your ResRobot apiKey
                  			}
                  		},
                  
                  A 1 Reply Last reply Feb 3, 2018, 10:49 PM Reply Quote 0
                  • B Offline
                    Binog
                    last edited by Feb 3, 2018, 11:53 AM

                    But still, I am not using ResRobot,. and do have the same problem, from time to time,…

                    1 Reply Last reply Reply Quote 1
                    • A Offline
                      Alvinger @retroflex
                      last edited by Feb 3, 2018, 10:49 PM

                      @retroflex
                      I will dig up another respberry pi and try it out. My test environment is a dietpi vm which runs on a pc so I wouldn’t expect the cpu load to be representative of the load on the pi.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 4 / 5
                      4 / 5
                      • First post
                        32/45
                        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