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

High CPU load of electron and MM freezes

Scheduled Pinned Locked Moved Unsolved Troubleshooting
7 Posts 5 Posters 2.3k Views 6 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.
  • P Offline
    Patrick @a94marbo
    last edited by Oct 9, 2018, 8:14 PM

    @a94marbo OpenGL driver is activated?

    1 Reply Last reply Reply Quote 0
    • A Offline
      a94marbo
      last edited by a94marbo Oct 9, 2018, 8:39 PM Oct 9, 2018, 8:37 PM

      Did it again to be sure, but no change.
      Thanks for the suggestion.
      Any other ideas?
      0_1539117533815_47dd327b-73ef-4ff9-a07c-313f29cf9d26-image.png

      1 Reply Last reply Reply Quote 0
      • Y Offline
        yep_DD
        last edited by Oct 10, 2018, 12:52 AM

        running your magic mirror in vertical mode? try horizontal and check again.

        1 Reply Last reply Reply Quote 0
        • J Offline
          justjim1220 Module Developer @a94marbo
          last edited by Oct 10, 2018, 4:44 AM

          @a94marbo

          to install stylelint…

          npm install stylelint@latest -g

          that will get rid of the warning, but it shouldn’t have any bearing on the CPU usage.

          depending on the amount of modules you have, or the size of the modules, it will hesitate or freeze during the modules ‘refresh’ moments, especially if you have several modules trying to refresh or reload at the same time.

          I don’t really know how to fix the problem except for making your modules refresh or reload at different intervals.

          "Life's Too Short To Dance With Ugly People"
          Jim Hallock - 1995

          1 Reply Last reply Reply Quote 0
          • A Offline
            a94marbo
            last edited by Oct 15, 2018, 5:34 PM

            Thanks all for the input,

            I have done some more testing, and while trying out some settings for MMM-PIR-Sensor module, I saw that the CPU load is close to zero when MagicMirror i minimized, and buck up on 60-70 when maximized or full screen.
            So it should not be any module doing this, rather something to do with the window, refresh rate other other graphic related issue?

            1 Reply Last reply Reply Quote 0
            • W Offline
              WalterWampe
              last edited by Oct 28, 2018, 8:29 AM

              @a94marbo said in High CPU load of electron and MM freezes:

              Hi
              I have noticed that MM freezes some times and electron is consuming 70-80% of the CPU.
              I think these are releted somehow.
              I tried to reinstall dependancies with “git pull && npm install”

              everything goes fine until the end when I get
              “npm WARN grunt-stylelint@0.10.1 requires a peer of stylelint@^9.0.0 but none is installed. You must install peer dependencies yourself.”

              error message. Dont know if that is related to electron high CPU load.

              Anyone recognize these errors?

              Absolutely - I have 2 raspberry pis, freshly installed MMM on both and have these issues.
              I am struggling around with an earlier electron version, activating the Open GL fkms driver, increasing GPU Mem size, increasing swap memory size but the problem prevails. This issues has been heavily discussed from what it seems about a year ago (this is where the “earlier version of electron” solution comes from), but nothing ever happened I guess.
              e.g. see:
              https://github.com/MichMich/MagicMirror/issues/1059
              https://forum.magicmirror.builders/topic/2717/electron-performance/7

              1 Reply Last reply Reply Quote 0
              • 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