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.

    Application not starting when OpenGL is enabled

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    33 Posts 7 Posters 18.4k Views 6 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.
    • K Offline
      Klinge
      last edited by Klinge

      Re: [RasPi2] Application not starting when OpenGL is enabled

      I have the same problem as described above. The MM does not start.

      > sh run-start.sh
      
      libGL error: MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      Starting MagicMirror: v2.5.0
      Loading config ...
      Loading module helpers ...
      No helper found for module: alert.
      Initializing new module helper ...
      Module helper loaded: updatenotification
      No helper found for module: clock.
      Initializing new module helper ...
      Module helper loaded: calendar
      No helper found for module: compliments.
      No helper found for module: currentweather.
      No helper found for module: weatherforecast.
      Initializing new module helper ...
      Module helper loaded: newsfeed
      All module helpers loaded.
      Starting server on port 8080 ... 
      Server started ...
      Connecting socket for: updatenotification
      Connecting socket for: calendar
      Starting node helper for: calendar
      Connecting socket for: newsfeed
      Starting module: newsfeed
      Sockets connected & modules started ...
      Launching application.
      
      

      And I have not a PIR Module installed too. The MM is absolute new installed and still nothing configured.

      Does anyone have an idea why it does not start?

      Thank you in advance

      richland007R 1 Reply Last reply Reply Quote 0
      • richland007R Offline
        richland007 @Klinge
        last edited by

        @klinge I think the appilcationstarts but on server mode only at least thats what it was doing on my case…go on a different computers webbrowser and type your mirrors RaspberryPi IP address and :8080 as the port number http://raspberrypiIP:8080 and see what you get.

        I did not find a solution to it i just took OpenGL out of the equation and it works fine

        Denis

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by A Former User

          Try this
          npm start — —disable-gpu
          — is - -(dash twice.) I’m not sure disable or disabled. Try both.

          1 Reply Last reply Reply Quote 0
          • K Offline
            Klinge
            last edited by

            Thank you for your advice. I will try it on Monday

            1 Reply Last reply Reply Quote 0
            • K Offline
              Klinge
              last edited by

              I tried both. …disable-gpu unfortunately does not not bring any improvement. So I took OpenGL out of the equation and it works.

              1 Reply Last reply Reply Quote 0
              • A Offline
                Anthony Project Sponsor
                last edited by

                I have the same problem. When OpenGL is enabled the application freezes at launching and I must unplug my pi from power and plug it back. I even tried to update electron to a newer version but I got another error there so I end up disabling OpenGL again.

                1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User
                  last edited by

                  Just use serveronly (node serveronly) instead npm start.

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    Anthony Project Sponsor @Guest
                    last edited by

                    @sean Thank you for your fast reply. I’ll give it a try as soon as I get home and see how it goes.

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      rts58
                      last edited by

                      Are you using pm2? I was having same issue, and was able to resolve by following pm2 setup process.

                      A 1 Reply Last reply Reply Quote 0
                      • D Offline
                        dazza120
                        last edited by

                        OpenGL causes nothing but problems on the Pi I had to go back to legacy, full GL caused locked up the Pi causing black screen from the start of the MM, Fake GL caused MMM-voice not to work, so had to go back to legacy and all problems above gone

                        A 1 Reply Last reply Reply Quote 0
                        • A Offline
                          Anthony Project Sponsor @rts58
                          last edited by

                          @rts58 No I am using npm to start the mirror. Also I am completely noob about coding and I am trying through googling and the forum for answers. So if I install pm2 will work when OpenGL is enabled?

                          R bheplerB 2 Replies Last reply Reply Quote 0
                          • A Offline
                            Anthony Project Sponsor @dazza120
                            last edited by

                            @dazza120 Same thing here but I’ve read that the latest versions of electron use an extreme amount of CPU power when no Open GL driver is loaded. This will result in an overheating Raspberry Pi. That’s why I am trying to enable it.

                            D 1 Reply Last reply Reply Quote 0
                            • D Offline
                              dazza120 @Anthony
                              last edited by

                              @anthony no it’s not that bad it depends what modules you have on it to how much it’s working in the background mine is between.90 and 1.5 cpu usage once everything has loaded, ram is a different story and goes down over time now until it crashes the Pi that’s why I’ve got a Cron Job to reboot the Magic Mirror software every 12hours for me, which has seen it go for days without issues.

                              A 1 Reply Last reply Reply Quote 1
                              • A Offline
                                Anthony Project Sponsor @dazza120
                                last edited by

                                @dazza120 OK then. I’ll give it a try when I get home and see hoe it goes. Thank you for your reply.

                                D 1 Reply Last reply Reply Quote 0
                                • D Offline
                                  dazza120 @Anthony
                                  last edited by

                                  @anthony you will need a heat sink on the Pi my temps with Pi with screen Off is about 47c bare in mind it’s the UK and about 20c in my house at the mo so summertime I expect to see about 60c still well within spec, but now I’ve got a fan on it that only turns on when the monitor is in use which saw temps go to 33c so not bad, hope this helps

                                  A 1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    Anthony Project Sponsor @dazza120
                                    last edited by

                                    @dazza120 I already have heat sinks on all 3 chips of my rpi and a fan as well. I bought it like this in a case. I don’t know about temperatures because I haven’t monitor them yet but I hope you are right and not have any overheating problem. Thank you again.

                                    D 1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      dazza120 @Anthony
                                      last edited by dazza120

                                      @anthony mines been running for 5days because I was trying to get GL running to see what it was like but so many problems with that on the Pi, anyway yep that’s the readings I just took them today, I have MMM-SystemStats you may want to look at it for the Pi

                                      A 1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        Anthony Project Sponsor @dazza120
                                        last edited by

                                        @dazza120 I will install it as soon as I get home and solve another problem with black screen I have right now (too many reasons for black screen). Thank you so much for your help.

                                        D 1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          dazza120 @Anthony
                                          last edited by

                                          @anthony yeah found GL caused black screen and running out of ram that’s why I have a Cron Job running every 12hours as after 24hours it would go dark, hence Cron job every 12hours

                                          1 Reply Last reply Reply Quote 0
                                          • R Offline
                                            rts58 @Anthony
                                            last edited by

                                            @anthony I am also noob. But, I installed pm2 and it allowed me to run OpenGL. I think it keeps electron and other running processes from using up all memory and will help.

                                            D 1 Reply Last reply Reply Quote 0

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