Skip to contentSkip to conversation

libGL error messages

DISCUSSION Dan Jacobson 2 participants 7 messages Jun 11, 2018 – Jun 13, 2018 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

glxgears, chromium etc. run fine.
The problems is these error messages,

$ glxinfo > /dev/null
libGL error: failed to create dri screen
libGL error: failed to load driver: nouveau

How can I make them go away?
I tried everything.

P.S., also /var/log/Xorg.0.log

[    37.195] (EE) AIGLX error: Calling driver entry point failed

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Are you on mesa 18.1.0 and using a nv3x/nv4x gpu? If so, update to 18.1.1. If not, provide more information.

The error is that nouveau_dri.so can't be loaded, which means you're not getting acceleration. You can also make the error go away by sticking LIBGL_ALWAYS_SOFTWARE=1 into your environment or removing nouveau_dri.so.

Cheers,

-ilia

Quoted 10 lines · Dan Jacobson

glxgears, chromium etc. run fine.
The problems is these error messages,

$ glxinfo > /dev/null
libGL error: failed to create dri screen
libGL error: failed to load driver: nouveau

How can I make them go away?
I tried everything.

Quoted 7 lines

P.S., also /var/log/Xorg.0.log

[    37.195] (EE) AIGLX error: Calling driver entry point failed

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw
# lspci | grep ' VGA ' | cut -d" " -f 1 | xargs -i lspci -v -s {}
00:05.0 VGA compatible controller: NVIDIA Corporation C51G [GeForce 6100] (rev a2) (prog-if 00 [VGA controller])
        Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 16, NUMA node 0
        Memory at fc000000 (32-bit, non-prefetchable) [size=16M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Memory at fb000000 (64-bit, non-prefetchable) [size=16M]
        [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: [48] Power Management version 2
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Kernel driver in use: nouveau
        Kernel modules: nouveau
$ dpkg -l
ii  glx-alternative-mesa  0.8.3
ii  libegl-mesa0:amd64    18.1.0-1
un  libegl1-mesa          <none>
ii  libgl1-mesa-dri:amd64 18.1.0-1
ii  libgl1-mesa-glx:amd64 18.1.0-1
un  libgl1-mesa-swx11     <none>
ii  libglapi-mesa:amd64   18.1.0-1
un  libgles2-mesa         <none>
ii  libglu1-mesa:amd64    9.0.0-2.1
ii  libglx-mesa0:amd64    18.1.0-1
un  libwayland-egl1-mesa  <none>
ii  mesa-utils            8.4.0-1
un  mesag3                <none>
un  xlibmesa3             <none>
$ apt-cache policy libgl1-mesa-glx
libgl1-mesa-glx:
  Installed: 18.1.0-1
  Candidate: 18.1.0-1
  Version table:
 *** 18.1.0-1 990
        990 http://free.nchc.org.tw/debian experimental/main amd64 Packages
        100 /var/lib/dpkg/status
     18.0.5-1 500
        500 http://free.nchc.org.tw/debian unstable/main amd64 Packages

I.e., no 18.1.1 yet on Debian.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 2 lines · 積丹尼 Dan Jacobson
# lspci | grep ' VGA ' | cut -d" " -f 1 | xargs -i lspci -v -s {}
00:05.0 VGA compatible controller: NVIDIA Corporation C51G [GeForce 6100] (rev a2) (prog-if 00 [VGA controller])

That's a NV4C or NV4E (i.e. nv4x).

Quoted 1 line

I.e., no 18.1.1 yet on Debian.

OK, well 18.1.0 is completely busted for those GPU's. Either upgrade or downgrade. But don't use that release. This is the fix:

https://cgit.freedesktop.org/mesa/mesa/commit/?h=18.1&id=b6167e9640664b22d025813fb4061c91aae2af8c

-ilia
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"IM" == Ilia Mirkin <[email protected]> writes:

IM> OK, well 18.1.0 is completely busted for those GPU's. Either upgrade IM> or downgrade. But don't use that release.

I did
[DOWNGRADE] libglapi-mesa:amd64 18.1.0-1 -> 18.0.5-1 [DOWNGRADE] libglx-mesa0:amd64 18.1.0-1 -> 18.0.5-1 and rebooted. Problem remains:

$ glxinfo > /dev/null
libGL error: failed to create dri screen
libGL error: failed to load driver: nouveau
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw
Quoted 5 lines · 積丹尼 Dan Jacobson
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"IM" == Ilia Mirkin <[email protected]> writes:

IM> OK, well 18.1.0 is completely busted for those GPU's. Either upgrade IM> or downgrade. But don't use that release.

Quoted 7 lines

I did
[DOWNGRADE] libglapi-mesa:amd64 18.1.0-1 -> 18.0.5-1 [DOWNGRADE] libglx-mesa0:amd64 18.1.0-1 -> 18.0.5-1 and rebooted. Problem remains:

$ glxinfo > /dev/null
libGL error: failed to create dri screen
libGL error: failed to load driver: nouveau

Interesting. This will probably require a bunch of back-and-forth to debug.

You can use gdb to work out why the load is failing. If it's in dri_fill_in_modes, then something went wrong in your downgrade.

Feel free to join #nouveau on irc.freenode.net to discuss.

-ilia
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau

#9 lore raw

By the way, why does it try to access /etc/ld.so.nohwcap 49 times when failing once should be enough? One getpid() would seem enough too.

$ strace glxinfo -B 2>&1|sort|uniq -c|sort -n|tail -n 3
     54 access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
     62 recvmsg(3, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
    116 getpid()                                = 1422
I'll send you the full strace.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau