Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libGL error
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
oliver2104
Apprentice
Apprentice


Joined: 27 Jul 2004
Posts: 214
Location: Wien

PostPosted: Sat Jun 16, 2018 11:04 am    Post subject: libGL error Reply with quote

Hallo,
ich hab schon längere Zeit ein libGL Problem und möchte das einmal ansprechen.
z.b: das Astronomie-Prog -> celestia will nicht laufen sondern zeigt
Code:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
*** Cannot find the double-buffered visual.
*** Trying single-buffered visual.
*** No appropriate OpenGL-capable visual found.

kann dazu noch folgende Infos zu meiner Installation liefern:
Code:
# eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11

Code:
 # find /usr -iname "*libGL.so*" -exec ls -l -- {} +
lrwxrwxrwx 1 root root     14  3. Mai 13:40 /usr/lib32/libGL.so -> libGL.so.1.2.0
lrwxrwxrwx 1 root root     14  3. Mai 13:40 /usr/lib32/libGL.so.1 -> libGL.so.1.2.0
-rwxr-xr-x 1 root root 457092  3. Mai 13:40 /usr/lib32/libGL.so.1.2.0
lrwxrwxrwx 1 root root     14 23. Mai 12:01 /usr/lib32/opengl/nvidia/lib/libGL.so -> libGL.so.1.7.0
lrwxrwxrwx 1 root root     14 23. Mai 12:01 /usr/lib32/opengl/nvidia/lib/libGL.so.1 -> libGL.so.1.7.0
-rwxr-xr-x 1 root root 523944 23. Mai 12:01 /usr/lib32/opengl/nvidia/lib/libGL.so.1.7.0
lrwxrwxrwx 1 root root     14  3. Mai 13:40 /usr/lib64/libGL.so -> libGL.so.1.2.0
lrwxrwxrwx 1 root root     14  3. Mai 13:40 /usr/lib64/libGL.so.1 -> libGL.so.1.2.0
-rwxr-xr-x 1 root root 467400  3. Mai 13:40 /usr/lib64/libGL.so.1.2.0
lrwxrwxrwx 1 root root     14 23. Mai 12:01 /usr/lib64/opengl/nvidia/lib/libGL.so -> libGL.so.1.7.0
lrwxrwxrwx 1 root root     14 23. Mai 12:01 /usr/lib64/opengl/nvidia/lib/libGL.so.1 -> libGL.so.1.7.0
-rwxr-xr-x 1 root root 665720 23. Mai 12:01 /usr/lib64/opengl/nvidia/lib/libGL.so.1.7.0

Da gibt es anscheindend Links auf zwei unterschiedliche libGL versionen.
Könnte das die Ursache sein ?
Back to top
View user's profile Send private message
demiurg
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jul 2005
Posts: 108

PostPosted: Mon Jun 18, 2018 7:03 pm    Post subject: libGL Error Reply with quote

Ich bin jetzt mit NVIDIA nicht so fit, da ich AMD und da nur die Opensourcetreiber verwende.

Die Fehlermeldung von libGL sagt erstmal, dass mit der Konstellation überhaupt nichts mit/ von GL gefunden wird. Nicht mal der Softwarerasterizer swrast, der als Rückfalllösung dient.

Ich gehe mal davon aus, dass der proprietäre nvida Treiber installiert ist?

Was liefert
Code:
#glxinfo
an output und läuft die 3d Beschleunigung überhaupt in Hardware?

https://wiki.gentoo.org/wiki/NVidia/nvidia-drivers/de sind Dir sicher bekannt?

Gruß Demiurg
_________________
Kernel 6.xx-gentoo
GCC 12.xx
Profile amd64/17.1/desktop/plasma/systemd/merged-usr
Ryzen 5950X
GA X570 PRO BIOS F35
ATI RX6800
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4509
Location: Germany

PostPosted: Tue Jun 19, 2018 12:03 am    Post subject: libGL Error Reply with quote

Hm ja, seltsam :-/
Wurden eventuell mal nvidia drivers am Paketmanager (portage/emerge) vorbei manuell installiert? (Falls ja, dann sind wahrscheinlich xorg-server und eselect opengl im Eimer)

Poste doch bitte auch mal das /var/log/Xorg.0.log (am besten via NoPaste Service) mit.
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2280
Location: Adendorf, Germany

PostPosted: Tue Jun 19, 2018 6:52 am    Post subject: Reply with quote

Ein paar Ideen:
  • Hast du LD_LIBRARY_PATH gesetzt?
  • Gibt es eine Ausgabe, wenn du
    Code:
    LIBGL_DEBUG=verbose glxinfo >/dev/null
    aufrufst?
  • /usr/lib64/dri/swrast_dri.so gehört zu media-libs/mesa : Welche Version und USE flags hast du?
  • Hast du schon versucht mit eselect opengl auf xorg-x11 und wieder zurück zu stellen?
  • Verwendest du Celestia mit gnome/gtk USE-flag?

Wegen der zwei unterschiedlichen libGL-Versionen brauchst du dir keine Gedanken zu machen. 1.2.0 ist von mesa, 1.7.0 von nvidia.
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
oliver2104
Apprentice
Apprentice


Joined: 27 Jul 2004
Posts: 214
Location: Wien

PostPosted: Tue Jun 19, 2018 10:41 am    Post subject: Reply with quote

Danke für die Reaktionen!

die nvidia Treiber wurden immer mit -> emerge nvidia-drivers installiert.
Code:
# glxinfo | grep rendering
direct rendering: Yes

in /var/log/Xorg.0.log sehe ich jetzt mal keine relevanten Fehler
kann die Datei aber, wenn wirklich notwendig, als Ganzes posten.

LD_LIBRARY_PATH ist keiner gesetzt.
LIBGL_DEBUG=verbose glxinfo >/dev/null ergibt auch nichts

Auffällig ist aber folgendes:
Code:
# ls -l /usr/lib64/dri/*
lrwxrwxrwx 1 root root 25  3. Mai 13:40 /usr/lib64/dri/kms_swrast_dri.so -> ../mesa/kms_swrast_dri.so
lrwxrwxrwx 1 root root 22  7. Feb 2016  /usr/lib64/dri/swrast_dri.so -> ../mesa/swrastg_dri.so
lrwxrwxrwx 1 root root 22  3. Mai 13:40 /usr/lib64/dri/swrastg_dri.so -> ../mesa/swrastg_dri.so

da verweist sowohl /swrast_dri.so als auch /swrastg_dri.so auf -> ../mesa/swrastg_dri.so
obwohl
Code:
# ls -l /usr/lib64/mesa
-rwxr-xr-x 2 root root 6657816  3. Mai 13:40 kms_swrast_dri.so
-rwxr-xr-x 1 root root 4175928  3. Mai 13:40 swrast_dri.so
-rwxr-xr-x 2 root root 6657816  3. Mai 13:40 swrastg_dri.so

sieht irgendwie so aus als zeige der Link /usr/lib64/dri/swrast_dri.so
auf die falsche Datei und wäre auch schon lang nicht upgedatet worden.

Die USE-flags für celestia sind:
USE="cairo gtk nls threads -debug -gnome -pch -theora"

auf xorg-x11 und wieder zurück zu stellen, hab ich verzichtet.
Weil celestia läuft wieder einwandfrei.
Hab nach wirklich intensiver Suche eine Lösung gefunden.
Quote:
remove the library-link libGL.so.1 provided by mesa.
At first I thought that it would be better to remove the package (libgl1-mesa-glx) that libGL.so.1 belongs to, but as it happens, this is a requirement of the Steam package. So just remove libGL.so.1 (which should be a symbolic link anyway)

bei mir also:
Code:
# rm /usr/lib32/libGL.so.1
# rm /usr/lib64/libGL.so.1

Ich vermute das ist eher ein Workaround als eine Lösung, aber es funktioniert.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum