Read the statement by Michael Teeuw here.
Error 'failed to load kms_swarst' - can I ignore is screen is loading?
-
Hi there,
I’m new to raspberry pi but not MagicMirror. Due to the pi shortage I had installed MM on my mac to test things out with no problems but now I have the pi i’m struggling more than I thought I would!I’ve tried reinstalling and running out of the box (ie no extra modules installed, no changes to any files) and I keep getting a ‘failed to open kms_swrast’ error and no solutions I’ve googled have worked. Here is the entire output after I run npm start
> magicmirror@2.23.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [21.06.2023 17:22.46.111] [LOG] Starting MagicMirror: v2.23.0 [21.06.2023 17:22.46.118] [LOG] Loading config ... [21.06.2023 17:22.46.124] [DEBUG] config template file not exists, no envsubst [21.06.2023 17:22.46.132] [LOG] Loading module helpers ... [21.06.2023 17:22.46.134] [LOG] No helper found for module: alert. [21.06.2023 17:22.46.168] [LOG] Initializing new module helper ... [21.06.2023 17:22.46.169] [LOG] Module helper loaded: updatenotification [21.06.2023 17:22.46.169] [LOG] No helper found for module: clock. [21.06.2023 17:22.46.522] [LOG] Initializing new module helper ... [21.06.2023 17:22.46.522] [LOG] Module helper loaded: calendar [21.06.2023 17:22.46.523] [LOG] No helper found for module: compliments. [21.06.2023 17:22.46.524] [LOG] No helper found for module: weather. [21.06.2023 17:22.46.562] [LOG] Initializing new module helper ... [21.06.2023 17:22.46.565] [LOG] Module helper loaded: newsfeed [21.06.2023 17:22.46.565] [LOG] All module helpers loaded. [21.06.2023 17:22.46.588] [LOG] Starting server on port 8080 ... [21.06.2023 17:22.46.895] [LOG] Server started ... [21.06.2023 17:22.46.896] [LOG] Connecting socket for: updatenotification [21.06.2023 17:22.46.896] [LOG] Starting module helper: updatenotification [21.06.2023 17:22.46.897] [LOG] Connecting socket for: calendar [21.06.2023 17:22.46.897] [LOG] Starting node helper for: calendar [21.06.2023 17:22.46.898] [LOG] Connecting socket for: newsfeed [21.06.2023 17:22.46.898] [LOG] Starting node helper for: newsfeed [21.06.2023 17:22.46.898] [LOG] Sockets connected & modules started ... [21.06.2023 17:22.46.981] [LOG] Launching application. 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 [21.06.2023 17:22.50.109] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000 [21.06.2023 17:22.50.130] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 [21.06.2023 17:22.50.166] [INFO] Checking git for module: MagicMirror [21.06.2023 17:22.50.537] [INFO] Newsfeed-Fetcher: Broadcasting 18 items. [21.06.2023 17:22.52.804] [INFO] Calendar-Fetcher: Broadcasting 7 events.If the screen is loading, can I just ignore the error? Any help would be greatly appreciated!
Thank-you -
@lillyhb yes. ignore this is electron trying to use the gpu. but it’s not configured like electron expects.
you can get rid of the error message by adding
export ELECTRON_DISABLE_GPU
before doing npm start
if you use pm2, then add it to the script pm2 uses to launch mm
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