Read the statement by Michael Teeuw here.
MagicMirror stays black after adding Face-Reco-MMM
-
Hi All
I’m trying to build my first Mirror with Face-Reco Module from Nischi.
I followed the Guideline 1:1 but after adding the Module to config.js, the Mirror stays only black. Even when I mapped all Modules to “show always”When i use the Tools which are provided, my PiCam recognizes our faces without any problem.
I’m working with a Raspberry 3, Model B+, OS is Buster.
When i run npm run config:check I get 0 errors which doesn’t help me for troubleshooting.When I remove the Module, the Mirror is working again without any issues.
I have tried to get logs thru pm2 log MagicMirror but this also don’t work.This is the Module which I use
https://github.com/nischi/MMM-Face-Reco-DNNSomebody any input for me? :)
Cheers
Chris -
@crimel its
pm2 logs name --lines=???
name is MagicMirror
??? is a number, 15 is the default if not specified -
@sdetweil Thank you for your rapid response!
Unfortunately I get the same output:
[TAILING] Tailing last 15 lines for [MagicMirror–lines=15] process (change the value with --lines option)I have this since 1 hour displayed in my terminal
-
@crimel ok
pm2 logs --lines=50
-
@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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login