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.

    Failed to export buffer to dma_buf: No such file or directory

    Scheduled Pinned Locked Moved Solved Troubleshooting
    8 Posts 2 Posters 4.3k Views 3 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.
    • R Offline
      Roncham
      last edited by

      Pi 4 4gb - Bookworm
      New version of MM installed manually, but I can’t run it.

      I tried via the script (update and new), but I got the ‘primordials’ error every time I ran npm.

      xxxx@raspberrypi:~/MagicMirror $ node -v
      v20.8.0
      xxxx@raspberrypi:~/MagicMirror $ npm -v
      10.1.0
      
      
      Use `electron --trace-warnings ...` to show where the warning was created)
      [12.10.2023 00:59.31.012] [ERROR] (node:1471) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
      [1499:1012/005932.242398:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
      [1499:1012/005932.242919:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
      [1499:1012/005932.243488:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
      [1499:1012/005932.243878:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
      [1499:1012/005932.244276:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
      [1499:1012/005932.244665:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
      [1499:1012/005932.245064:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
      [1499:1012/005932.247179:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
      [1499:1012/005932.247513:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
      [1499:1012/005932.247978:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
      [1499:1012/005932.248374:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
      [1499:1012/005932.248791:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
      [1499:1012/005932.249180:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
      [1499:1012/005932.249578:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
      
      

      Thanks in advance,
      Ron

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

        @Roncham can you do

        uname -a
        and
        file /bin/bash

        if you start over , reinstall the OS image on your SD card
        and then run the script from the testit branch

        it should work on bookworm. I just fixed the script for the 32 bit version on pi4.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil said in Failed to export buffer to dma_buf: No such file or directory:

          uname -a

          When I tried your script it said I had Node 18…, but node -v shows 20 before I started. Then it dies after installing npm with the ‘primordials’ error.
          Can I purge the node cache without removing node? If so how?

          @raspberrypi:~ $ uname -a
          Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
          
          @raspberrypi:~ $ file /bin/bash
          /bin/bash: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=12abba9f431c0bef9f0a2a47f29cc9175159347f, for GNU/Linux 3.2.0, stripped
          
          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @Roncham
            last edited by

            @Roncham send me the ~/install.log

            same userid at gmail

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @sdetweil

              I started over from scratch. Sorry to waste your time. Your script worked great.
              Thanks!

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

                @Roncham thanks for the feedback. which is image did you choose? 32 or 64 bit

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @sdetweil 64 bit desktop

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

                    @Roncham weird. try this

                    pm2 stop all
                    cd ~/MagicMirror
                    export ELECTRON_DISABLE_GPU=1
                    npm start 
                    

                    wait and see if the errors occurs

                    if not

                    add the export line to the script that starts mm
                    in front of the npm start

                    if you used my install script, that is
                    ~/MagicMirror/installers/mm.sh

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • M MMRIZE referenced this topic on
                    • 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