libGL error: MESA-LOADER: failed to retrieve device information
I found a bug with Mesa.
It works fine as root but fails as normal user.
I have 2 reproduction cases.
You must have mesa-demos installed.
Case 1
glxinfo | head
name of display: :0
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: Version 4 or later of flush extension not found
libGL error: failed to load driver: i915
libGL error: MESA-LOADER: failed to retrieve device information
display: :0 screen: 0
direct rendering: Yes
But sudo glxinfo works correctly without any errors.
Case 2
glxgears
It gives the same errors as above and the gears don’t load.
After a while my desktop freezes.
OTOH sudo glxgears works.
(from redmine: issue id 7265, created on 2017-05-04, closed on 2017-06-01)