Read the statement by Michael Teeuw here.
Failed to export buffer to dma_buf: No such file or directory
-
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 -
@Roncham can you do
uname -a
and
file /bin/bashif you start over , reinstall the OS image on your SD card
and then run the script from the testit branchit should work on bookworm. I just fixed the script for the 32 bit version on pi4.
-
@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
-
@Roncham send me the ~/install.log
same userid at gmail
-
I started over from scratch. Sorry to waste your time. Your script worked great.
Thanks! -
@Roncham thanks for the feedback. which is image did you choose? 32 or 64 bit
-
@sdetweil 64 bit desktop
-
@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 startif you used my install script, that is
~/MagicMirror/installers/mm.sh -