Read the statement by Michael Teeuw here.
MESA-LOADER: failed to retrieve device information
-
@sdetweil
I updated MM using your script and thank you very much for providing it! I’m having the same issue, tried the solution above but it’s still showing “MESA-LOADER: failed to retrieve device information” in the logs when loading MM and stops loading there with the above error code. Any ideas? Thanks in advance for your help![16.04.2023 01:08.02.827] [ERROR] (node:8057) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘passport’
Require stack:- /home/pi/MagicMirror/modules/Gateway/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (node:internal/modules/cjs/loader:963:15)
at n._resolveFilename (node:electron/js2c/browser_init:2:109751)
at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:811:27)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1035:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/pi/MagicMirror/modules/Gateway/node_helper.js:9:16)
at Module._compile (node:internal/modules/cjs/loader:1141:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1196:10)
at Module.load (node:internal/modules/cjs/loader:1011:32)
at Module._load (node:internal/modules/cjs/loader:846:12)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1035:19)
at require (node:internal/modules/cjs/helpers:102:18)
at loadModule (/home/pi/MagicMirror/js/app.js:184:19)
(Useelectron --trace-warnings ...
to show where the warning was created)
[16.04.2023 01:08.02.828] [ERROR] (node:8057) 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: 2)
[16.04.2023 01:08.03.341] [LOG] Launching application.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver
-
@Dresch360 said in MESA-LOADER: failed to retrieve device information:
Cannot find module ‘passport’
Require stack:/home/pi/MagicMirror/modules/Gateway/node_helper.js
this is the black screen problem, a required library is not found
where does the Gateway module come from?
-
@sdetweil Thanks. Gateway is a module used for MMM-GoogleAssistant
-
@Dresch360 ok, but it appears to be missing a library… passport
so I would redo the npm install in that module folder
-
@sdetweil Sort of the same problem here. Absolutely fresh install on a new Pi using the manual installation 2 days ago (June 24).
GettingMESA-LOADER: failed to retrieve device information ../../buildtools/third_party/libc++/trunk/include/vector:1425: assertion __n < size() failed: vector[] index out of bounds[6958:0626/084246.096948:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=6
I’m relatively new to npm, and I’m having difficulty locating that script you are referencing (“the script used to start mm”) Where does that reside exactly?
Thanks -
@Corvidael if you used my install script, and said yes to use pm2 to autostart mm. then the script is
~/MagicMirror/installers/mm.sh
-
@sdetweil Thank you, I was all excited there for a second, but it didn’t fix the issue.
As a secondary test, I commented out the actual start line in mm.sh, and the ‘npm run start’ still worked anyways. Looks like the ‘manual installation’ does not use your script.
I might start a new thread here with a more specific question regarding disabling GPU and the location of the start scripts outside of config.js, when using this Manual Installation instruction off the main page.
This is still the result of the run: