KeithR
Posts: 7
Joined: Tue Oct 09, 2012 10:32 am

cheese shows "libGL error: failed to load driver: swrast"

Sun May 19, 2013 10:03 am

Tried to research this but can't find a fix or put a finger on what I'm doing wrong.

When I run cheese on a completely up to date Arch Linux ARM (alarmpi), I get the following errors in the terminal:

Code: Select all

[user1@alarmpi ~]$ cheese

libGL error: failed to load driver: swrast
libGL error: Try again with LIBGL_DEBUG=verbose for more details.

(cheese:19594): GStreamer-CRITICAL **: gst_preset_load_preset: assertion `GST_IS_PRESET (preset)' failed

(cheese:19594): cheese-WARNING **: Can't find vp8enc preset: "Profile Realtime", using alternate preset: "Cheese Realtime". If you see this, make a bug report!

(cheese:19594): GStreamer-CRITICAL **: gst_preset_load_preset: assertion `GST_IS_PRESET (preset)' failed

(cheese:19594): cheese-WARNING **: Can't find vp8enc preset: "Cheese Realtime", creating new userspace preset.

(cheese:19594): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(cheese:19594): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(cheese:19594): GStreamer-CRITICAL **: gst_preset_save_preset: assertion `GST_IS_PRESET (preset)' failed

(cheese:19594): GStreamer-CRITICAL **: gst_object_unref: assertion `object != NULL' failed

(cheese:19594): cheese-WARNING **: Your GStreamer installation is missing a plug-in.
as suggested by error message, I tried

Code: Select all

LIBGL_DEBUG=verbose cheese
with the following results:

Code: Select all

[user1@alarmpi ~]$ LIBGL_DEBUG=verbose cheese
libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/xorg/modules/dri/swrast_dri.so
libGL error: failed to load driver: swrast

(cheese:19668): GStreamer-CRITICAL **: gst_preset_load_preset: assertion `GST_IS_PRESET (preset)' failed

(cheese:19668): cheese-WARNING **: Can't find vp8enc preset: "Profile Realtime", using alternate preset: "Cheese Realtime". If you see this, make a bug report!

(cheese:19668): GStreamer-CRITICAL **: gst_preset_load_preset: assertion `GST_IS_PRESET (preset)' failed

(cheese:19668): cheese-WARNING **: Can't find vp8enc preset: "Cheese Realtime", creating new userspace preset.

(cheese:19668): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(cheese:19668): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(cheese:19668): GStreamer-CRITICAL **: gst_preset_save_preset: assertion `GST_IS_PRESET (preset)' failed

(cheese:19668): GStreamer-CRITICAL **: gst_object_unref: assertion `object != NULL' failed

(cheese:19668): cheese-WARNING **: Your GStreamer installation is missing a plug-in.

Due presumably to the above missing plugin/package the cheese window does appear but is black (not accessing the camera). Same webcam is compatible with cheese as it works brilliantly under ubuntu - same cam works with cheese on the same pi board running Raspbian (though very slowly). Prefer to work with Arch here so would like to get to the bottom of it.

Anyone else having same error (or not) on Arch Linux ARM?

I'm willing to debug further if someone can assist with commands.

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: cheese shows "libGL error: failed to load driver: swrast

Sun May 19, 2013 3:58 pm

I am not working with a camera at all, but when I put swrast_dri.so into a google search, the first page that comes up shows am archlinux thread with folks having trouble with mesa involved.

I have been unable to sync my system because of library incompatibilies and dependencies involving x and mesa, could this be a factor in what you are experiencing? I wonder if an earlier arch image might work for you? I do not know if the mesa issue has been fixed in all packages accessing it and it's library, that could be a factor. Maybe run pactree on your application to see if mesa shows up in it.
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

KeithR
Posts: 7
Joined: Tue Oct 09, 2012 10:32 am

Re: cheese shows "libGL error: failed to load driver: swrast

Mon May 20, 2013 9:09 am

Saw that post: Those folks were having problems with mesa conflicts and intel-dri. This is a different issue.

Also I have no problem taking updates with pacman -Syyu.

KeithR
Posts: 7
Joined: Tue Oct 09, 2012 10:32 am

Re: cheese shows "libGL error: failed to load driver: swrast

Sat May 25, 2013 12:52 pm

Can anyone report having cheese working recently on an up-to-date alarmpi (Arch Linux ARM) system?

drupol
Posts: 11
Joined: Sun Mar 20, 2016 10:45 am

Re: cheese shows "libGL error: failed to load driver: swrast

Sun Mar 20, 2016 10:47 am

I've found the fix here: http://ha5kfu.sch.bme.hu/node/193

Problem solved by running: sudo apt-get install libgl1-mesa-swx11

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: cheese shows "libGL error: failed to load driver: swrast

Sun Mar 20, 2016 9:56 pm

drupol wrote:I've found the fix here: http://ha5kfu.sch.bme.hu/node/193

Problem solved by running: sudo apt-get install libgl1-mesa-swx11
Not for ArchLinuxArm, we use pacman, not apt-get. But maybe knowing what packages worked for another OS will help someone using Alarm.
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

Return to “Arch”