MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    UNSOLVED MagicMirror stays black after adding Face-Reco-MMM

    Troubleshooting
    3
    11
    110
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Crimel last edited by

      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-DNN

      Somebody any input for me? 🙂

      Cheers
      Chris

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @Crimel last edited by

        @crimel its

        pm2 logs name --lines=???

        name is MagicMirror
        ??? is a number, 15 is the default if not specified

        Sam

        Create a working config
        How to add modules

        C 1 Reply Last reply Reply Quote 0
        • C
          Crimel @sdetweil last edited by

          @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

          S 1 Reply Last reply Reply Quote 0
          • S
            sdetweil @Crimel last edited by

            @crimel ok

            pm2 logs --lines=50

            Sam

            Create a working config
            How to add modules

            C 1 Reply Last reply Reply Quote 0
            • C
              Crimel @sdetweil last edited by

              @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.

              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @Crimel last edited by sdetweil

                @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

                Sam

                Create a working config
                How to add modules

                C 1 Reply Last reply Reply Quote 0
                • C
                  Crimel @sdetweil last edited by

                  @sdetweil Thank you!
                  Do you mean package.json ? I dont find a file called pancake.json 😕

                  mumblebaj S 2 Replies Last reply Reply Quote 0
                  • mumblebaj
                    mumblebaj Project Sponsor @Crimel last edited by

                    @crimel Yes, should be package.json. Must have been an autocorrect. 🙂

                    1 Reply Last reply Reply Quote 0
                    • S
                      sdetweil @Crimel last edited by

                      @crimel yes, typo, fixed

                      Sam

                      Create a working config
                      How to add modules

                      C 1 Reply Last reply Reply Quote 0
                      • C
                        Crimel @sdetweil last edited by

                        @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.

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy