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.

    odd module load behaviour after upgrading to 2.28

    Scheduled Pinned Locked Moved Solved Troubleshooting
    5 Posts 4 Posters 614 Views 4 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.
    • D Offline
      david6461
      last edited by

      Hello,

      I upgraded to the latest 2.28 a couple days ago. I’m running my magicmirror on a raspberry pi 4. I noticed that the cpu was running higher than it was in the previous version so after a quick investigation here is what I found:

      I have multiple instances of mmm-touchbutton, I noticed that in the console.log message I have in the start function showed up a bunch of times I found that the number of messages is N^2 so if there are 2 instances of the module there are 4 messages generated from the start function if there are 3 instances there are 9 messages and so on.

      I added logging to some other modules and found the same issue so this is not a module specific issue.

      Any ideas?

      karsten13K wishmaster270W 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @sdetweil
        last edited by

        @wishmaster270

        This fix is now part of next release

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • karsten13K Offline
          karsten13 @david6461
          last edited by

          @david6461

          tested this with the content of the config.js.sample, there are 2 weather instances in the config and I see 2 messages in the dev console

          1 Reply Last reply Reply Quote 0
          • wishmaster270W Offline
            wishmaster270 Module Developer @david6461
            last edited by

            @david6461
            Hi,

            I am running version 2.28 of MagicMirror with multiple instances of MMM-TouchButtons and multiple instances of a couple of other of my modules.
            I can’t confirm the problem.
            No double messages and no increased CPU usage.
            Are you sure you did not start a second instance of MagicMirror?

            S 1 Reply Last reply Reply Quote 0
            • karsten13K karsten13 referenced this topic on
            • S Offline
              sdetweil @wishmaster270
              last edited by

              @wishmaster270 lets try this fix

              in the MM/js folder do

              curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror/fixloading/js/app.js >app.js
              

              then stop and restart mm.

              this adds a hash to see if we are already loading or loaded the node_helper for this module

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @wishmaster270

                This fix is now part of next release

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S sdetweil has marked this topic as solved on

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 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