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.

    Disable GPU? MESA-LOADER failure on fresh manual install

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    8 Posts 4 Posters 1.4k Views 5 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.
    • C Offline
      Corvidael
      last edited by

      Fresh install on virgin image of latest Raspberry Pi "Bullseye’ desktop.
      Ran the ‘Manual Install’ method:
      manualInstall.png

      However, I keep getting the following error, which some of the forum entries here are saying that GPU needs to be disabled in the startup script.

      [27.06.2023 05:52.11.136] [LOG]   Launching application.
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      ../../buildtools/third_party/libc++/trunk/include/vector:1425: assertion __n < size() failed: vector[] index out of bounds[8967:0627/055214.116125:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=6
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      ../../buildtools/third_party/libc++/trunk/include/vector:1425: assertion __n < size() failed: vector[] index out of bounds[8967:0627/055215.773072:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=6
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      MESA-LOADER: failed to retrieve device information
      ../../buildtools/third_party/libc++/trunk/include/vector:1425: assertion __n < size() failed: vector[] index out of bounds[8967:0627/055217.407482:ERROR:gpu_process_host.cc(991)] GPU process exited unexpectedly: exit_code=6
      [9010:0627/055219.369280:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      [27.06.2023 05:52.20.355] [LOG]   Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
      
      
      

      I’m new to npm, so I’m not sure where to look for the ability to disable GPU if that’s the issue.

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

        @Corvidael how did you launch magicmirror? npm start in the MagicMirror folder
        or using pm2?

        in either case, before issuing

        npm start 
        

        manually or in the script you created. or in a terminal session

        do

        export ELECTRON_DISABLE_GPU=1
        npm start
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil
          Thank you. I’ve been using ‘npm run start’ as per the documentation off the manual installation instructions.
          Just tried ‘npm start’ as well, which also seems to work identically (again, new to npm, so not sure of the difference)

          manually exporting the GPU disable at the terminal command line has proven to fix the error for that single run, but after a reboot and not manually entering the export of the GPU disable from command line again, the problem returns.

          Seems my solution is starting to boil down to understanding the exact process of how npm launches when issuing the ‘start’ command, and finding the config script?

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

            @Corvidael yes, you have to do it EVERY time you do npm start/npm run start

            (you don’t need run for the start command, but do for any other)

            so. however your autostart gets done, edit that to add the disable before the npm start

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • butchkemperB Offline
              butchkemper
              last edited by

              In the file MagicMirror/package.json, in the first liine of the “scripts” section, update the “start” line to be “start”: “DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron --disable-gpu js/electron.js”.

              Butch

              Resistance is not Futile!
              It is voltage divided by current.

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

                @butchkemper the ENV variable does it so u don’t have to edit package.json

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                BKeyportB 1 Reply Last reply Reply Quote 0
                • BKeyportB Offline
                  BKeyport Module Developer @sdetweil
                  last edited by

                  @sdetweil … so, are you gonna add this to the script? 😉

                  The "E" in "Javascript" stands for "Easy"

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

                    @BKeyport no… it’s not fatal, just annoying.
                    maybe someone will figure out how to configure the video drivers in config.txt

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • 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