Read the statement by Michael Teeuw here.
MagicMirror stays black after adding Face-Reco-MMM
-
@sdetweil said in MagicMirror stays black after adding Face-Reco-MMM:
pm2 logs --lines=50
With it I get an output :)
PM2 | App [mm:0] starting in -fork mode-
PM2 | App [mm:0] online
0|mm | > magicmirror@2.18.0 start
0|mm | > DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
0|mm | [14.01.2022 14:26.53.892] [LOG]
0|mm | Starting MagicMirror: v2.18.0
0|mm | [14.01.2022 14:26.53.919] [LOG]
0|mm | Loading config …
0|mm | [14.01.2022 14:26.53.943] [LOG]
0|mm | Loading module helpers …
0|mm | [14.01.2022 14:26.54.977] [LOG]
0|mm | Initializing new module helper …
0|mm | [14.01.2022 14:26.54.981] [LOG] Check MagicMirror version for node helper ‘MMM-CoinMarketCap’ - Minimum version: 2.2.1 - Current version: 2.18.0
0|mm | [14.01.2022 14:26.54.988] [LOG] Version is ok!
0|mm | [14.01.2022 14:26.54.992] [LOG]
0|mm | Module helper loaded: MMM-CoinMarketCap
0|mm | [14.01.2022 14:26.54.999] [LOG] No helper found for module: MMM-SwissStationboard.
0|mm | [14.01.2022 14:26.55.004] [LOG]
0|mm | No helper found for module: clock.
0|mm | [14.01.2022 14:26.55.451] [LOG]
0|mm | Initializing new module helper …
0|mm | [14.01.2022 14:26.55.454] [LOG]
0|mm | Module helper loaded: calendar
0|mm | [14.01.2022 14:26.55.457] [LOG]
0|mm | No helper found for module: compliments.
0|mm | [14.01.2022 14:26.55.460] [LOG] No helper found for module: weather.
0|mm | [14.01.2022 14:26.55.534] [LOG]
0|mm | Initializing new module helper …
0|mm | [14.01.2022 14:26.55.535] [LOG] Module helper loaded: newsfeed
0|mm | [14.01.2022 14:26.55.595] [LOG]
0|mm | Initializing new module helper …
0|mm | [14.01.2022 14:26.55.596] [LOG] Module helper loaded: MMM-Face-Reco-DNN
0|mm | [14.01.2022 14:26.55.598] [LOG] All module helpers loaded.
0|mm | [14.01.2022 14:26.55.863] [LOG]
0|mm | Starting server on port 8080 …
0|mm | [14.01.2022 14:26.55.900] [LOG]
0|mm | Server started …
0|mm | [14.01.2022 14:26.55.903] [LOG] Connecting socket for: MMM-CoinMarketCap
0|mm | [14.01.2022 14:26.55.905] [LOG]
0|mm | MMM-CoinMarketCap: module loaded! Path: /home/pi/MagicMirror/modules/MMM-CoinMarketCap
0|mm | [14.01.2022 14:26.55.907] [LOG]
0|mm | MMM-CoinMarketCap: Path “/logos” configured successfully.
0|mm | [14.01.2022 14:26.55.909] [LOG] Connecting socket for: calendar
0|mm | [14.01.2022 14:26.55.911] [LOG] Starting node helper for: calendar
0|mm | [14.01.2022 14:26.55.913] [LOG] Connecting socket for: newsfeed
0|mm | [14.01.2022 14:26.55.915] [LOG] Starting node helper for: newsfeed
0|mm | [14.01.2022 14:26.55.917] [LOG] Connecting socket for: MMM-Face-Reco-DNN
0|mm | [14.01.2022 14:26.55.946] [LOG]
0|mm | Starting module helper: MMM-Face-Reco-DNN
0|mm | [14.01.2022 14:26.55.947] [LOG] Sockets connected & modules started …
0|mm | [14.01.2022 14:26.56.508] [LOG]
0|mm | Launching application.
0|mm | [5602:0114/142657.402179:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
0|mm | [5640:0114/142657.695321:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process. -
@crimel edit package.json and add
–disable-gpu
to the start clause
on my phone so hard to type it all
“start”:“… node_modules… --disable-gpu js/electron.js”
… means stuff that is there already keep
-
@sdetweil Thank you!
Do you mean package.json ? I dont find a file called pancake.json :/ -
@crimel Yes, should be package.json. Must have been an autocorrect. :)
-
@crimel yes, typo, fixed
-
@sdetweil @mumblebaj
Awesome support!I just added it to the package.json
“scripts”: {
“start”: “DISPLAY=”${DISPLAY:=:0}" ./node_modules/.bin/electron --disable-gpu js/electron.js",
“start:dev”: “DISPLAY=”${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js dev",and have one error left
0|mm | [11202:0114/154643.064204:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
Funny thing is that i have the same error on another config.json without Face-Reco and the mirror is working there.
-
@crimel run the fixsandbox script from here
https://github.com/sdetweil/MagicMirror_scripts