MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Black screen when starting MM...

    Scheduled Pinned Locked Moved Solved Troubleshooting
    6 Posts 2 Posters 1.0k Views 2 Watching
    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.
    • T Offline
      Turtle
      last edited by

      Hello all,

      So, it’s been a while since I’ve worked on MM. So, I just recently upgraded my PI3 and updated MM as well to the latest version. I’m getting a black screen whenever I’m starting MM. This is what I’m getting after running /npm start…(any help is appreciated)

      >magicmirror@2.21.0 start /home/pi/MagicMirror
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [17.10.2022 05:48.57.151] [LOG]   Starting MagicMirror: v2.21.0
      [17.10.2022 05:48.57.182] [LOG]   Loading config ...
      [17.10.2022 05:48.57.218] [LOG]   Loading module helpers ...
      [17.10.2022 05:48.57.231] [LOG]   No helper found for module: alert.
      [17.10.2022 05:48.57.307] [LOG]   Initializing new module helper ...
      [17.10.2022 05:48.57.312] [LOG]   Module helper loaded: updatenotification
      [17.10.2022 05:48.57.319] [LOG]   No helper found for module: clock.
      [17.10.2022 05:48.57.350] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'valid-url'
      Require stack:
      - /home/pi/MagicMirror/modules/MMM-CalendarExt2/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
      - 
      [17.10.2022 05:48.57.356] [LOG]   Loading module helpers ...
      [17.10.2022 05:48.57.362] [LOG]   No helper found for module: alert.
      [17.10.2022 05:48.57.367] [LOG]   Initializing new module helper ...
      [17.10.2022 05:48.57.370] [LOG]   Module helper loaded: updatenotification
      [17.10.2022 05:48.57.374] [LOG]   No helper found for module: clock.
      [17.10.2022 05:48.57.398] [ERROR] App threw an error during load
      [17.10.2022 05:48.57.406] [ERROR] Error: Cannot find module 'valid-url'
      Require stack:
      - /home/pi/MagicMirror/modules/MMM-CalendarExt2/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:940:15)
          at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
          at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
          at Module._load (node:internal/modules/cjs/loader:785:27)
          at c._load (node:electron/js2c/asar_bundle:5:13343)
          at Module.require (node:internal/modules/cjs/loader:1012:19)
          at require (node:internal/modules/cjs/helpers:102:18)
          at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-CalendarExt2/node_helper.js:3:18)
          at Module._compile (node:internal/modules/cjs/loader:1118:14)
          at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
      [17.10.2022 05:48.57.413] [ERROR] Whoops! There was an uncaught exception...
      [17.10.2022 05:48.57.445] [ERROR] Error: Cannot find module 'valid-url'
      Require stack:
      - /home/pi/MagicMirror/modules/MMM-CalendarExt2/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:940:15)
          at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
          at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
          at Module._load (node:internal/modules/cjs/loader:785:27)
          at c._load (node:electron/js2c/asar_bundle:5:13343)
          at Module.require (node:internal/modules/cjs/loader:1012:19)
          at require (node:internal/modules/cjs/helpers:102:18)
          at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-CalendarExt2/node_helper.js:3:18)
          at Module._compile (node:internal/modules/cjs/loader:1118:14)
          at Module._extensions..js (node:internal/modules/cjs/loader:1173:10) {
        code: 'MODULE_NOT_FOUND',
        requireStack: [
          '/home/pi/MagicMirror/modules/MMM-CalendarExt2/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',
          undefined
        ]
      }
      [17.10.2022 05:48.57.458] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      [17.10.2022 05:48.57.460] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      [17.10.2022 05:48.58.962] [LOG]   Launching application.
      [1049:1017/054900.709871:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      [1076:1017/054901.244060:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
      
      

      Turtle

      S 1 Reply Last reply Reply Quote 1
      • S Offline
        sdetweil @Turtle
        last edited by

        @Turtle see
        https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          Turtle @sdetweil
          last edited by

          @sdetweil - thank you for the help. It’s finally working with your help. My calendar is up and running. But another quick question, I’m using npm start to start the calendar. How would I stop the calendar? Again, Thank you!

          Turtle

          S 1 Reply Last reply Reply Quote 1
          • S Offline
            sdetweil @Turtle
            last edited by

            @Turtle ctrl-c will stop the MM instance

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              Turtle @sdetweil
              last edited by

              @sdetweil - well, that explains it…I was using ctrl-r and wondering why it wasn’t working. Eventually, I was just “x” out of the terminal window. Again, thank you for the help.

              Turtle

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

                @Turtle while looking at the MM screen

                ctrl-r will reload
                ctrl-q will quit
                ctrl-m will minimize

                all same as on Windows for full screen apps

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy