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.

    Pi 4 B 4GB

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    8 Posts 2 Posters 1.0k Views 2 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.
    • ankonaskiff17A Offline
      ankonaskiff17
      last edited by

      This is a sort of generic question. I have a Pi 4B w/ 4GB ram attached to large screen TV
      When I am actively changing things via config.js, custom.css, terminal open, the Pi really bogs down to point of locking up. I can generally twiddle my fingers for a while and it will come back and I can do some work which will bog it down again.

      If I finish what I am doing, close open windows, reboot, reload MM it runs just fine,
      I don’t see this on PC sized monitors at all.
      Is this due to trying to drive big screen and edit scripts at same time and could I resolve by changing out Pi for 8GB model?

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

        @ankonaskiff17 I don’t see this on my 4gb pi4. are u starting mm w pm2?

        my setup tries to register a watcher for config.js changing to restart mm… are u seeing mm stop and start?

        I almost never edit ON pi, I use ssh

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        ankonaskiff17A 1 Reply Last reply Reply Quote 0
        • ankonaskiff17A Offline
          ankonaskiff17 @sdetweil
          last edited by

          @sdetweil Using your setup routine. Answer yes to both questions in your setup.
          Primary culprit is when I’m using Developer Tools. Right now with nothing running but mm, MMM-SystemStatsshows about 30% free RAM.
          When I would have VS Code, terminal, Developer Tools running it would get down around 5% free RAM.
          Not sure how MMM-WeatherChart,MMM-SmartWebDisplayand MMM-Jastimpact things since WeatherChart is using Chart.js , Jast has the scrolling ticker and SystemStats has a pretty quick update rate.

          big MM.jpg

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

            @ankonaskiff17 check for swap space

            free -m

            make the swap space bigger

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            ankonaskiff17A 1 Reply Last reply Reply Quote 0
            • ankonaskiff17A Offline
              ankonaskiff17 @sdetweil
              last edited by

              @sdetweil That was way easier than sorting out CSS.

              ankonaskiff17A 1 Reply Last reply Reply Quote 1
              • ankonaskiff17A Offline
                ankonaskiff17 @ankonaskiff17
                last edited by ankonaskiff17

                @sdetweil I may have accidentally stumbled on what is causing the Pi to slog down.
                Increasing the swap helped but definitely didn’t cure.
                In process of troubleshooting a module by using Dev Tools Console, I noticed a different module, and IMO the module CONTENT is generating something called a Vuex Mutatation. I don’t have a clue what that is about other than it appears tied to the National Weather Service link I am using in MMM-SmartWebDesign.
                I saw the line 304 on index.htmlso I pulled up MM’s index.html and it doesn’t even go that high.
                I’ve heard of Chart.js and Moment.js but Vue.js is a new one for me. See attatched image. Any thoughts, suggestions…
                VUEX MUTATION.jpg

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

                  @ankonaskiff17 Vue is a new programming model. and Vuex is a data persistence library

                  all the Vue stuff runs in the browser, so inside the web display… eats cpu cycles where it runs

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  ankonaskiff17A 1 Reply Last reply Reply Quote 0
                  • ankonaskiff17A Offline
                    ankonaskiff17 @sdetweil
                    last edited by ankonaskiff17

                    @sdetweil Anything to be done for it? When I have just MM running all is well .
                    Just seems to be a problem when editing.
                    So that is coming from the origin point of link?
                    It is national radar from NWS and I don’t update it locally in config.js
                    I’ll swag this and guess it generates that Vuex stuff locally when the NWS updates the radar image remotely?

                    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