Read the statement by Michael Teeuw here.
Unsolved TOTAL BEGINNER: Exit Code 512 RPi 3 A+ Black Screen and Countless Issues Downloading and Running MagicMirror
-
Hey all! Brand new to coding and the raspberry pi system. I apologize if this has been asked but my level of knowledge on this makes it difficult to follow on the forums as I have been trying to understand them for the past 2 days. Would love to learn more on how to diagnose on my own and commands/pathways to do so. But right now I need step-by-step help please.
Been enjoying learning some basic coding but getting frustrated as I run into issues either installing dependencies or running the mirror (as it only goes to black screen). I have tried multiple fresh flashes, disabled proxies, toggled OpenGL, but I still cannot run the MagicMirror. I have VNC and SSH enabled and followed all of the manual install steps including updating NPM and nodes. This morning I finally got it all downloaded with no issues except now running it does not work. On running magic mirror, it does not register as a tab “Magic Mirror” but rather just says “Electron”. I get the below error:
b083rt@raspberrypi:~/MagicMirror $ npm run start
magicmirror@2.22.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[14.01.2023 10:56.54.642] [LOG] Starting MagicMirror: v2.22.0
[14.01.2023 10:56.54.656] [LOG] Loading config …
[14.01.2023 10:56.54.679] [LOG] Loading module helpers …
[14.01.2023 10:56.54.692] [LOG] No helper found for module: alert.
[14.01.2023 10:56.54.765] [LOG] Initializing new module helper …
[14.01.2023 10:56.54.767] [LOG] Module helper loaded: updatenotification
[14.01.2023 10:56.54.772] [LOG] No helper found for module: clock.
[14.01.2023 10:56.55.779] [LOG] Initializing new module helper …
[14.01.2023 10:56.55.782] [LOG] Module helper loaded: calendar
[14.01.2023 10:56.55.788] [LOG] No helper found for module: compliments.
[14.01.2023 10:56.55.794] [LOG] No helper found for module: weather.
[14.01.2023 10:56.55.884] [LOG] Initializing new module helper …
[14.01.2023 10:56.55.886] [LOG] Module helper loaded: newsfeed
[14.01.2023 10:56.55.887] [LOG] All module helpers loaded.
[14.01.2023 10:56.56.267] [LOG] Starting server on port 8080 …
[14.01.2023 10:57.01.501] [LOG] Server started …
[14.01.2023 10:57.01.613] [LOG] Connecting socket for: updatenotification
[14.01.2023 10:57.01.626] [LOG] Starting module helper: updatenotification
[14.01.2023 10:57.01.627] [LOG] Connecting socket for: calendar
[14.01.2023 10:57.01.628] [LOG] Starting node helper for: calendar
[14.01.2023 10:57.01.629] [LOG] Connecting socket for: newsfeed
[14.01.2023 10:57.01.631] [LOG] Starting node helper for: newsfeed
[14.01.2023 10:57.01.632] [LOG] Sockets connected & modules started …
[14.01.2023 10:57.05.241] [LOG] Launching application.
[1533:0114/105728.847152:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=512
[1533:0114/105744.845855:ERROR:network_service_instance_impl.cc(521)] Network service crashed, restarting service.
[1533:0114/105752.223672:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=512
[1619:0114/105803.367801:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[1644:0114/105807.873067:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
[1593:0114/105812.122302:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.I believe this code tells you the version of software if this helps:
b083rt@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME=“Debian GNU/Linux 11 (bullseye)”
NAME=“Debian GNU/Linux”
VERSION_ID=“11”
VERSION=“11 (bullseye)”
VERSION_CODENAME=bullseye
ID=debian
HOME_URL=“https://www.debian.org/”
SUPPORT_URL=“https://www.debian.org/support”
BUG_REPORT_URL=“https://bugs.debian.org/” -
@B083Rt where u do npm start, type this in advance
export ELECTRON_DISABLE_GPU=1
then execute
npm startthis should turn off the electron use of the gpu chip.
if you use a script, u can add this before it’s npm start
also, run my install script it does all the setup.
flash again then run install
https://github.com/sdetweil/MagicMirror_scripts