Getting libGL error when I "git push"

Hi,

I get an error message after I do a ‘git push’:

libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau

The window to enter the passphrase opens and the ‘git push’ is done correctly. Bit I still ask myself what goes wrong here.

Here is my garuda-inxi

System:
Kernel: 6.6.4-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc available: acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=05fecfb8-789d-4629-95f8-6324a5fdb33b rw rootflags=subvol=@
quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
ibt=off
Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.11 wm: kwin_x11 vt: 2
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: SchenkerGmbH product: XMG NEO 17(E20, RTX 20xx)
v: Standard serial: <superuser required>
Mobo: SchenkerGmbH model: GM7MxxS E20 v: Standard
serial: <superuser required> UEFI: American Megatrends v: N.1.03
date: 06/30/2020
Battery:
ID-1: BAT0 charge: 59.2 Wh (95.0%) condition: 62.3/62.3 Wh (100.0%)
volts: 15.9 min: 15.2 model: standard type: Li-ion serial: <filter>
status: not charging
CPU:
Info: model: Intel Core i7-10875H bits: 64 type: MT MCP arch: Comet Lake
gen: core 10 level: v3 note: check built: 2020 process: Intel 14nm family: 6
model-id: 0xA5 (165) stepping: 2 microcode: 0xF8
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 2 MiB desc: 8x256 KiB
L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 2017 high: 4700 min/max: 800/5100 scaling:
driver: intel_pstate governor: powersave cores: 1: 4695 2: 800 3: 800 4: 800
5: 800 6: 4700 7: 4700 8: 800 9: 800 10: 800 11: 800 12: 800 13: 4700
14: 800 15: 800 16: 4692 bogomips: 73598
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: Intel CometLake-H GT2 [UHD Graphics] vendor: Tongfang Hongkong
driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
ports: active: eDP-1 empty: none bus-ID: 00:02.0 chip-ID: 8086:9bc4
class-ID: 0300
Device-2: NVIDIA TU104M [GeForce RTX 2070 SUPER Mobile / Max-Q]
vendor: Tongfang Hongkong driver: nvidia v: 545.29.06
alternate: nouveau,nvidia_drm non-free: 545.xx+ status: current (as of
2023-10; EOL~2026-12-xx) arch: Turing code: TUxxx process: TSMC 12nm FF
built: 2018-2022 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 3
speed: 8 GT/s ports: active: none empty: DP-1, DP-2, HDMI-A-1, eDP-2
bus-ID: 01:00.0 chip-ID: 10de:1e91 class-ID: 0300
Device-3: Chicony HD Webcam driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-13:4 chip-ID: 04f2:b68b
class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org v: 21.1.9 with: Xwayland v: 23.2.2
compositor: kwin_x11 driver: X: loaded: intel,nvidia
unloaded: modesetting,nouveau alternate: fbdev,nv,vesa dri: i965 gpu: i915
display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
s-diag: 582mm (22.93")
Monitor-1: eDP-1 mapped: eDP1 model: BOE Display 0x0884 built: 2019
res: 1920x1080 hz: 240 dpi: 128 gamma: 1.2 size: 380x210mm (14.96x8.27")
diag: 438mm (17.3") ratio: 16:9 modes: 1920x1080
API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
drv: nvidia device: 2 drv: iris device: 3 drv: swrast gbm: drv: nvidia
surfaceless: drv: nvidia x11: drv: iris inactive: wayland,device-1
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 23.2.1-arch1.2
glx-v: 1.4 direct-render: yes renderer: Mesa Intel UHD Graphics (CML GT2)
device-ID: 8086:9bc4 memory: 61.16 GiB unified: yes
API: Vulkan v: 1.3.269 layers: 14 device: 0 type: discrete-gpu name: NVIDIA
GeForce RTX 2070 Super driver: nvidia v: 545.29.06 device-ID: 10de:1e91
surfaces: xcb,xlib device: 1 type: integrated-gpu name: Intel UHD
Graphics (CML GT2) driver: mesa intel v: 23.2.1-arch1.2
device-ID: 8086:9bc4 surfaces: xcb,xlib device: 2 type: cpu name: llvmpipe
(LLVM 16.0.6 256 bits) driver: mesa llvmpipe v: 23.2.1-arch1.2 (LLVM
16.0.6) device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
Device-1: Intel Comet Lake PCH cAVS vendor: Tongfang Hongkong
driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl
bus-ID: 00:1f.3 chip-ID: 8086:06c8 class-ID: 0403
Device-2: NVIDIA TU104 HD Audio vendor: Tongfang Hongkong
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 01:00.1 chip-ID: 10de:10f8 class-ID: 0403
API: ALSA v: k6.6.4-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Intel Comet Lake PCH CNVi WiFi vendor: Rivet Networks
driver: iwlwifi v: kernel bus-ID: 00:14.3 chip-ID: 8086:06f0 class-ID: 0280
IF: wlo1 state: up mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Tongfang Hongkong driver: r8169 v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 3d:00.0 chip-ID: 10ec:8168
class-ID: 0200
IF: enp61s0 state: down mac: <filter>
IF-ID-1: virbr0 state: down mac: <filter>
Bluetooth:
Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-14:5 chip-ID: 8087:0026
class-ID: e001
Report: btmgmt ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 5.2
lmp-v: 11 status: discoverable: no pairing: no class-ID: 7c010c
Drives:
Local Storage: total: 2.73 TiB used: 166.49 GiB (6.0%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:1 vendor: Seagate model: FireCuda 510 SSD
ZP1000GM30001 size: 931.51 GiB block-size: physical: 512 B logical: 512 B
speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter> fw-rev: STES1024
temp: 39.9 C scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Seagate model: FireCuda 510 SSD
ZP2000GM30001 size: 1.82 TiB block-size: physical: 512 B logical: 512 B
speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter> fw-rev: STES1024
temp: 40.9 C scheme: GPT
Partition:
ID-1: / raw-size: 1.82 TiB size: 2.73 TiB (150.01%) used: 166.49 GiB (6.0%)
fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:3
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 576 KiB (0.2%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:2
ID-3: /home raw-size: 1.82 TiB size: 2.73 TiB (150.01%)
used: 166.49 GiB (6.0%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:3
ID-4: /var/log raw-size: 1.82 TiB size: 2.73 TiB (150.01%)
used: 166.49 GiB (6.0%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:3
ID-5: /var/tmp raw-size: 1.82 TiB size: 2.73 TiB (150.01%)
used: 166.49 GiB (6.0%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:3
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 62.63 GiB used: 0 KiB (0.0%) priority: 100
comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 16 dev: /dev/zram0
Sensors:
Src: /sys System Temperatures: cpu: 60.0 C pch: 61.0 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Processes: 370 Uptime: 7h 17m wakeups: 1 Memory: total: 64 GiB note: est.
available: 62.63 GiB used: 6.06 GiB (9.7%) Init: systemd v: 255
default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages:
pm: pacman pkgs: 2239 libs: 579 tools: gnome-software,octopi,pamac,paru
pm: appimage pkgs: 0 Shell: fish v: 3.6.2 default: Bash v: 5.2.21
running-in: konsole inxi: 3.3.31
Garuda (2.6.19-2):
System install date:     2023-10-29
Last full system update: 2023-12-09 ↻
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut nvidia-dkms
Windows dual boot:       No/Undetected
Failed units:

Thank you for helping out.

Welcome.

System install date:     2023-10-29
Last full system update: 2023-12-09 ↻ <==

I’d first reboot just in case.


Then I don’t know anything about nvidia but this (lengthy) post has something about a similar situation: arch linux - OpenGL fails to load due to nvidia driver - Unix & Linux Stack Exchange - I did not understand much, anyways setting LIBGL_DEBUG=verbose before the operation (git push in this case) that causes the errors should provide more context. It also looks like some more information may be useful for troubleshooting (by someone who knows this stuff, not me):
lsmod | grep -iE '(iris|965|915|nouveau|nvidia)' (edit: fixed missing names)
pacman -Q | grep -iE '(nvidia|mesa|intel|cuda|vulkan|vdpau)'
ls -l /usr/lib/dri/


See also Switching between integrated and dedicated graphics | Garuda Linux wiki

4 Likes

This is the output of ‘LIBGL_DEBUG=verbose git pull’:

libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: using driver nvidia-drm for 11
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: pci id for fd 11: 10de:1e91, driver nouveau
libGL: MESA-LOADER: dlopen(/usr/lib/dri/nouveau_dri.so)
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau
libGL: using driver i915 for 11
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: using driver i915 for 11
libGL: pci id for fd 11: 8086:9bc4, driver iris
libGL: MESA-LOADER: dlopen(/usr/lib/dri/iris_dri.so)
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: Using DRI2 for screen 0
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: using driver nvidia-drm for 11
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: pci id for fd 11: 10de:1e91, driver nouveau
libGL: MESA-LOADER: dlopen(/usr/lib/dri/nouveau_dri.so)
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau
libGL: using driver i915 for 11
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: using driver i915 for 11
libGL: pci id for fd 11: 8086:9bc4, driver iris
libGL: MESA-LOADER: dlopen(/usr/lib/dri/iris_dri.so)
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: Using DRI2 for screen 0

Prepending ‘prime-run’ helps. But there has to be a better way, no?

1 Like

There has to.
It seems to me that you are using the dGPU only, I’m not sure so I don’t know if this applies.
The Wiki advises to run on the iGPU by default and only prime-run games and other GPU intensive tasks.
Anyways, see if setting DRI_PRIME=1 works too. That is an environment variable, it can be set permanently.

2 Likes

Using DRI_PRIME=1 prepending works. How can I make this permanent?

BTW: Appreciate your help. Thank you very much.

1 Like

Many options Environment variables - ArchWiki

Output of LIBGL_DEBUG=verbose DRI_PRIME=1 git pull:

libGL: using driver i915 for 12
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: using driver i915 for 12
libGL: pci id for fd 12: 8086:9bc4, driver iris
libGL: MESA-LOADER: dlopen(/usr/lib/dri/iris_dri.so)
libGL: using driver nvidia-drm for 11
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: pci id for fd 11: 10de:1e91, driver nouveau
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: Using DRI3 for screen 0
libGL: using driver i915 for 12
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: using driver i915 for 12
libGL: pci id for fd 12: 8086:9bc4, driver iris
libGL: MESA-LOADER: dlopen(/usr/lib/dri/iris_dri.so)
libGL: using driver nvidia-drm for 11
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: pci id for fd 11: 10de:1e91, driver nouveau
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/frankblack/.drirc: No such file or directory.
libGL: Using DRI3 for screen 0

Output of glxinfo | grep “render”:

libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau
direct rendering: Yes
GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, GLX_MESA_swap_control,
GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, GLX_MESA_swap_control,
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: Mesa Intel(R) UHD Graphics (CML GT2)
GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted,
GL_IBM_multimode_draw_arrays, GL_INTEL_blackhole_render,
GL_NV_compute_shader_derivatives, GL_NV_conditional_render,
GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted,
GL_INGR_blend_func_separate, GL_INTEL_blackhole_render,
GL_NV_conditional_render, GL_NV_copy_depth_to_color, GL_NV_copy_image,
GL_EXT_render_snorm, GL_EXT_robustness, GL_EXT_sRGB_write_control,
GL_EXT_unpack_subimage, GL_INTEL_blackhole_render,
GL_NV_conditional_render, GL_NV_draw_buffers, GL_NV_fbo_color_attachments,
GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.