• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Having trouble with launch- perhaps display value?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
11 Posts 3 Posters 3.9k Views 3 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.
  • S Away
    sdetweil @jayd272
    last edited by Sep 15, 2022, 9:27 PM

    @jayd272 is your system running in console mode?

    must be full desktop mode

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • R Offline
      Remco
      last edited by Oct 12, 2022, 10:08 AM

      Hi,
      I got the same issue after updating .

      ==> MagicMirror-error.log <==
      [24318:1012/112446.727714:ERROR:env.cc(226)] The platform failed to initialize. Exiting.
      /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
      [24496:1012/112454.856543:ERROR:ozone_platform_x11.cc(247)] Missing X server or $DISPLAY
      [24496:1012/112454.856766:ERROR:env.cc(226)] The platform failed to initialize. Exiting.
      /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
      [24565:1012/112510.603377:ERROR:ozone_platform_x11.cc(247)] Missing X server or $DISPLAY
      [24565:1012/112510.603597:ERROR:env.cc(226)] The platform failed to initialize. Exiting.
      /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
      [24624:1012/112526.200613:ERROR:ozone_platform_x11.cc(247)] Missing X server or $DISPLAY
      [24624:1012/112526.200835:ERROR:env.cc(226)] The platform failed to initialize. Exiting.

      Did you find a solution?

      S 1 Reply Last reply Oct 12, 2022, 11:33 AM Reply Quote 0
      • S Away
        sdetweil @Remco
        last edited by Oct 12, 2022, 11:33 AM

        @Remco can u show the beginning output of npm start…

        first 5 or 6 lines

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • R Offline
          Remco
          last edited by Oct 12, 2022, 11:36 AM

          $ npm start

          magicmirror@2.21.0 start
          DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

          [12.10.2022 13:36.16.036] [LOG] Starting MagicMirror: v2.21.0
          [12.10.2022 13:36.16.052] [LOG] Loading config …
          [12.10.2022 13:36.16.068] [LOG] Loading module helpers …
          [12.10.2022 13:36.16.074] [LOG] No helper found for module: alert.
          [12.10.2022 13:36.16.114] [LOG] Initializing new module helper …
          [12.10.2022 13:36.16.116] [LOG] Module helper loaded: updatenotification
          [12.10.2022 13:36.16.119] [LOG] No helper found for module: clock.
          [12.10.2022 13:36.16.660] [LOG] Initializing new module helper …
          [12.10.2022 13:36.16.665] [LOG] Module helper loaded: calendar
          [12.10.2022 13:36.16.669] [LOG] No helper found for module: compliments.
          [12.10.2022 13:36.16.671] [LOG] No helper found for module: weather.
          [12.10.2022 13:36.16.720] [LOG] Initializing new module helper …
          [12.10.2022 13:36.16.721] [LOG] Module helper loaded: newsfeed
          [12.10.2022 13:36.16.723] [LOG] All module helpers loaded.
          [12.10.2022 13:36.16.973] [LOG] Starting server on port 8080 …
          [12.10.2022 13:36.17.004] [LOG] Server started …
          [12.10.2022 13:36.17.006] [LOG] Connecting socket for: updatenotification
          [12.10.2022 13:36.17.008] [LOG] Starting module helper: updatenotification
          [12.10.2022 13:36.17.010] [LOG] Connecting socket for: calendar
          [12.10.2022 13:36.17.012] [LOG] Starting node helper for: calendar
          [12.10.2022 13:36.17.014] [LOG] Connecting socket for: newsfeed
          [12.10.2022 13:36.17.018] [LOG] Starting node helper for: newsfeed
          [12.10.2022 13:36.17.019] [LOG] Sockets connected & modules started …
          [24680:1012/133617.027945:ERROR:ozone_platform_x11.cc(247)] Missing X server or $DISPLAY
          [24680:1012/133617.028297:ERROR:env.cc(226)] The platform failed to initialize. Exiting.
          /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV

          S 1 Reply Last reply Oct 12, 2022, 12:47 PM Reply Quote 0
          • S Away
            sdetweil @Remco
            last edited by sdetweil Oct 12, 2022, 4:10 PM Oct 12, 2022, 12:47 PM

            @Remco ok, some more diagnostics commands

            node -v
            npm -v
            lsb_release -a
            uname -a
            ps -ef | grep -i x11

            how did u upgrade? manual or my script?
            if my script can u send me the installers/upgrade.log

            use my userid at gmail. ( file is too big to post here)

            note that you must be running the graphical desktop for MM full mode to execute …

            server only mode without desktop is ok
            npm run server

            then u would access from some other system

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • R Offline
              Remco
              last edited by Oct 12, 2022, 8:21 PM

              Hi,

              I have done a manual update of MM and pi when the problems started.
              I have also tried to run your installation script but the problem is still there. I have also tried to update node.js and npm to the latest versions.

              These are requested outputs:

              $ node -v
              v18.10.0

              $ npm -v
              8.19.2

              $ lsb_release -a
              No LSB modules are available.
              Distributor ID: Raspbian
              Description: Raspbian GNU/Linux 10 (buster)
              Release: 10
              Codename: buster

              $ uname -a
              Linux raspberrypi 5.15.56-v7+ #1575 SMP Fri Jul 22 20:28:11 BST 2022 armv7l GNU/Linux

              $ ps -ef | grep -i x11
              pi 27931 5155 0 22:18 pts/0 00:00:00 grep --color=auto -i x11

              1 Reply Last reply Reply Quote 0
              • S Away
                sdetweil
                last edited by Oct 12, 2022, 8:35 PM

                @Remco said in Having trouble with launch- perhaps display value?:

                pi 27931 5155 0 22:18 pts/0 00:00:00 grep --color=auto -i x11

                ok, try this

                ps -ef  | grep Xorg 
                

                is this a server machine?, or does it have a display? where MM is shown?

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • R Offline
                  Remco
                  last edited by Oct 13, 2022, 9:00 AM

                  Hi,

                  MM is running on a Pi with it’s own screen.
                  But in the meantime I got it working again. I found this threat with had similar errors as I had when running ‘startx’.

                  After I removed this driver MM started again:
                  sudo mv /usr/share/X11/xorg.conf.d/99-fbturbo.conf ~
                  startx

                  But I do still have the following errors in the error-log:

                  [16183:1013/103255.149031:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
                  [16220:1013/103256.721936:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
                  [16188:1013/103256.801401:ERROR:command_buffer_proxy_impl.cc(126)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

                  S 2 Replies Last reply Oct 13, 2022, 11:57 AM Reply Quote 0
                  • S Away
                    sdetweil @Remco
                    last edited by Oct 13, 2022, 11:57 AM

                    @Remco for the gpu errors do

                    add

                    export ELECTRON_DISABLE_GPU=1

                    in the script that starts mm
                    just before the npm start line

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • S Away
                      sdetweil @Remco
                      last edited by Oct 13, 2022, 5:27 PM

                      @Remco also, if u ran my upgrade script, can u send me the ~/MagicMirror/installers/upgrade.log file

                      use my userid at gmail

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • C chris_d referenced this topic on Jan 19, 2023, 7:53 PM
                      • 1
                      • 2
                      • 1 / 2
                      • 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