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

I'm getting error -MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied

Scheduled Pinned Locked Moved Transport
10 Posts 3 Posters 2.8k 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.
  • V Offline
    vpanse
    last edited by Jul 10, 2023, 1:54 AM

    Re: MMM-FlightsAbove - Display all flights in the sky above you

    S 1 Reply Last reply Jul 10, 2023, 11:01 AM Reply Quote 0
    • S Away
      sdetweil @vpanse
      last edited by Jul 10, 2023, 11:01 AM

      @vpanse yes, it’s a display driver config issue on the base is. no good fix

      but you can suppress the messages

      where you do npm start

      add

      export ELECTRON_DISABLE_GPU=1

      before the npm start line

      if you use my install scripts, the file to modify is
      ~/MagicMirror/installers/mm.sh

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • V Offline
        vpanse
        last edited by Jul 15, 2023, 2:53 AM

        I’m trying to run https://github.com/E3V3A/MMM-FlightsAbove
        but getting following errors

        GMESA-LOADER: failed to retrieve device information
        MESA-LOADER: failed to retrieve device information
        MESA-LOADER: failed to retrieve device information
        MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib>failed to load driver: kms_swrast
        MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-lin>failed to load swrast driver
        /home/vinayak/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
        [10.07.2023 02:06.43.861] [ERROR] (node:7189) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘pinkie-promise’
        Require stack:

        • /home/vinayak/MagicMirror/modules/MMM-FlightsAbove/lib/radar.js
        • /home/vinayak/MagicMirror/modules/MMM-FlightsAbove/node_helper.js
        • /home/vinayak/MagicMirror/js/app.js
        • /home/vinayak/MagicMirror/js/electron.js
        • /home/vinayak/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
        • at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
          at n._resolveFilename (node:electron/js2c/browser_init:2:117457)
          at Module._resolveFilename (/home/vinayak/MagicMirror/node_modules/module-alias/index.js:49:29)
          at Module._load (node:internal/modules/cjs/loader:927:27)
          at f._load (node:electron/js2c/asar_bundle:2:13330)
          at Module.require (node:internal/modules/cjs/loader:1148:19)
          at require (node:internal/modules/cjs/helpers:110:18)
          at Object. (/home/vinayak/MagicMirror/modules/MMM-FlightsAbove/lib/radar.js:36:53)
          at Module._compile (node:internal/modules/cjs/loader:1269:14)
          at Module._extensions…js (node:internal/modules/cjs/loader:1324:10)
          at Module.load (node:internal/modules/cjs/loader:1124:32)
          at Module._load (node:internal/modules/cjs/loader:965:12)
          at f._load (node:electron/js2c/asar_bundle:2:13330)
          at Module.require (node:internal/modules/cjs/loader:1148:19)
          at require (node:internal/modules/cjs/helpers:110:18)
          at Object. (/home/vinayak/MagicMirror/modules/MMM-FlightsAbove/node_helper.js:43:15)
          (Use electron --trace-warnings ... to show where the warning was created)
          [10.07.2023 02:06.43.861] [ERROR] (node:7189) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by thr>MESA-LOADER: failed to retrieve device information
          MESA-LOADER: failed to retrieve device information
          MESA-LOADER: failed to retrieve device information
          MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib>
          =================================================================
        S 1 Reply Last reply Jul 15, 2023, 11:16 AM Reply Quote 0
        • S Away
          sdetweil @vpanse
          last edited by Jul 15, 2023, 11:16 AM

          @vpanse see the post directly above your

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • V Offline
            vpanse
            last edited by Jul 16, 2023, 5:45 PM

            I already did try that , it does not work for modules
            https://github.com/mykle1/MMM-BMW-CC and
            https://github.com/E3V3A/MMM-FlightsAbove.
            Still getting error as below.
            require stack:

            • /home/vinayak/MagicMirror/modules/MMM-BMW-CC/node_helper.js
            • /home/vinayak/MagicMirror/js/app.js
            • /home/vinayak/MagicMirror/js/electron.js
            • /home/vinayak/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
            • at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
              at n._resolveFilename (node:electron/js2c/browser_init:2:117469)
              at Module._resolveFilename (/home/vinayak/MagicMirror/node_modules/module-alias/index.js:49:29)
              at Module._load (node:internal/modules/cjs/loader:927:27)
              at f._load (node:electron/js2c/asar_bundle:2:13330)
              at Module.require (node:internal/modules/cjs/loader:1148:19)
              at require (node:internal/modules/cjs/helpers:110:18)
              at Object. (/home/vinayak/MagicMirror/modules/MMM-BMW-CC/node_helper.js:8:17)
              at Module._compile (node:internal/modules/cjs/loader:1269:14)
              at Module._extensions…js (node:internal/modules/cjs/loader:1324:10)
              at Module.load (node:internal/modules/cjs/loader:1124:32)
              at Module._load (node:internal/modules/cjs/loader:965:12)
              at f._load (node:electron/js2c/asar_bundle:2:13330)
              at Module.require (node:internal/modules/cjs/loader:1148:19)
              at require (node:internal/modules/cjs/helpers:110:18)
              at loadModule (/home/vinayak/MagicMirror/js/app.js:180:19)
              (Use electron --trace-warnings ... to show where the warning was created)
              [16.07.2023 18:40.43.267] [ERROR] (node:989) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejectin>MESA-LOADER: failed to retrieve device information
              MESA-LOADER: failed to retrieve device information
              MESA-LOADER: failed to retrieve device information
              MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
              failed to load driver: kms_swrast
              MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
              failed to load swrast driver
            S 1 Reply Last reply Jul 16, 2023, 6:40 PM Reply Quote 0
            • S Away
              sdetweil @vpanse
              last edited by Jul 16, 2023, 6:40 PM

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

              Cannot find module ‘pinkie-promise’
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              K 1 Reply Last reply Jul 16, 2023, 9:37 PM Reply Quote 0
              • K Offline
                karsten13 @sdetweil
                last edited by Jul 16, 2023, 9:37 PM

                @sdetweil

                or forgot to run npm install in the module folder of MMM-FlightsAbove

                1 Reply Last reply Reply Quote 1
                • V Offline
                  vpanse
                  last edited by Jul 17, 2023, 4:24 AM

                  I did many changes suggested in Form but still little different issue

                  [17.07.2023 05:21.57.786] [ERROR] (node:932) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘fetch-ponyfill’
                  Require stack:

                  • /home/vinayak/MagicMirror/modules/MMM-FlightsAbove/lib/radar.js
                  • /home/vinayak/MagicMirror/modules/MMM-FlightsAbove/node_helper.js
                  • /home/vinayak/MagicMirror/js/app.js
                  • /home/vinayak/MagicMirror/js/electron.js
                  • /home/vinayak/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                  • at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
                    at n._resolveFilename (node:electron/js2c/browser_init:2:117469)
                    at Module._resolveFilename (/home/vinayak/MagicMirror/node_modules/module-alias/index.js:49:29)
                    at Module._load (node:internal/modules/cjs/loader:927:27)
                    at f._load (node:electron/js2c/asar_bundle:2:13330)
                    at Module.require (node:internal/modules/cjs/loader:1148:19)
                    at require (node:internal/modules/cjs/helpers:110:18)
                    at Object. (/home/vinayak/MagicMirror/modules/MMM-FlightsAbove/lib/radar.js:36:17)
                    at Module._compile (node:internal/modules/cjs/loader:1269:14)
                    at Module._extensions…js (node:internal/modules/cjs/loader:1324:10)
                    at Module.load (node:internal/modules/cjs/loader:1124:32)
                    at Module._load (node:internal/modules/cjs/loader:965:12)
                    at f._load (node:electron/js2c/asar_bundle:2:13330)
                    at Module.require (node:internal/modules/cjs/loader:1148:19)
                    at require (node:internal/modules/cjs/helpers:110:18)
                    at Object. (/home/vinayak/MagicMirror/modules/MMM-FlightsAbove/node_helper.js:43:15)
                    (Use electron --trace-warnings ... to show where the warning was created)
                    [17.07.2023 05:21.57.787] [ERROR] (node:932) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a c>
                  S 1 Reply Last reply Jul 17, 2023, 11:34 AM Reply Quote 0
                  • S Away
                    sdetweil @vpanse
                    last edited by sdetweil Jul 17, 2023, 11:35 AM Jul 17, 2023, 11:34 AM

                    @vpanse said in I'm getting error -MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied:

                    Cannot find module ‘fetch-ponyfill’

                    yes, unfortunately this module does not document in it’s package.json all the library dependencies it requires.

                    so, for each one you have to do
                    npm install xxxxx
                    where xxxxx is the missing library from the message above (in single quotes)

                    the module hasn’t been updated since 2018, so no idea if it still works after all that

                    your other post was marked as spam, which I cannot override

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • V Offline
                      vpanse
                      last edited by Jul 17, 2023, 11:46 AM

                      Excellent, It works now . thanks a lot ,

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      1 / 1
                      • First post
                        1/10
                        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