MagicMirror Forum

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

    UNSOLVED High CPU load of electron and MM freezes

    Troubleshooting
    5
    7
    1560
    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.
    • A
      a94marbo last edited by

      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?

      P justjim1220 2 Replies Last reply Reply Quote 0
      • P
        Patrick @a94marbo last edited by

        @a94marbo OpenGL driver is activated?

        1 Reply Last reply Reply Quote 0
        • A
          a94marbo last edited by a94marbo

          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
            yep_DD last edited by

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

            1 Reply Last reply Reply Quote 0
            • justjim1220
              justjim1220 Module Developer @a94marbo last edited by

              @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
                a94marbo last edited by

                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
                  WalterWampe last edited by

                  @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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy