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.

    Version 2.33.0/node v22.21.0 - Error: write EFAULT

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    9 Posts 2 Posters 239 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.
    • Mr.SpontiM Offline
      Mr.Sponti
      last edited by

      So, after further investigations I found the issue in the module: ./MagicMirror/node_modules/systeminformation/lib/system.js:175:28

      I’m not a nodejs expert, but it seems that execSync returns a invalid or corrupted raw buffer. The encoding option solved the issue, as in my case execSync returns now an empty string.

      const stdout = execSync('dmesg 2>/dev/null | grep -iE "virtual|hypervisor" | grep -iE "vmware|qemu|kvm|xen" | grep -viE "Nested Virtualization|/virtual/"', {encoding: 'utf-8'});
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Mr.Sponti
        last edited by sdetweil

        @Mr.Sponti if you take the contents of the execSync() and run it at the command line does it work?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • Mr.SpontiM Offline
          Mr.Sponti
          last edited by

          Yes, without any error, but also without any output!

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

            @Mr.Sponti how about the 1st command

            dmesg

            In the line in the execSync it throws away any errors

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • Mr.SpontiM Offline
              Mr.Sponti
              last edited by

              Sam, the kernel buffer does not include a line with ‘virtual’ or ‘hypervisor’. So, the retuen value of the execSync is a emty string.

              pi@devpi:~ $ dmesg | grep virtual
              pi@devpi:~ $ dmesg | grep hypervisor
              pi@devpi:~ $ dmesg | grep zram0
              [    4.928549] zram_generator::config[229]: zram0: system has too much memory (905MB), limit is 0MB, ignoring.
              [    5.775275] systemd[1]: Expecting device dev-zram0.device - /dev/zram0...
              [    5.977908] zram: Added device: zram0
              [    6.771158] zram0: detected capacity change from 0 to 1853440
              [    6.998349] Adding 926716k swap on /dev/zram0.  Priority:100 extents:1 across:926716k SS
              
              
              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Mr.Sponti
                last edited by

                @Mr.Sponti yep errors, too much ram. Etc

                What is this running in?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                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