You are not logged in.

#1 2023-10-26 15:25:23

rwd
Member
Registered: 2009-02-08
Posts: 671

[SOLVED] xreader crashes and can't find my nouveau_dri.so

I was not sure whether to post this as a bug report or as a forum topic. But in case it is caused by my system configuration I will try it here first.

I have an up to date arch system with XFCE on an 2012-ish 13'' macbook pro with integrated NVIDIA graphics, using the nouveau graphics driver. The PDF viewer that i have been using for a year,, xreader, won't run since a month or two, giving this error:

libEGL warning: MESA-LOADER: failed to open nouveau: /opt/lib32/usr/lib/xorg/modules/dri//nouveau_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/xorg/modules/dri/:/opt/lib32/usr/lib/xorg/modules/dri/, suffix _dri)
 
libEGL warning: MESA-LOADER: failed to open swrast: /opt/lib32/usr/lib/xorg/modules/dri//swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/xorg/modules/dri/:/opt/lib32/usr/lib/xorg/modules/dri/, suffix _dri)
 
EGLDisplay Initialization failed: EGL_NOT_INITIALIZED
MESA-LOADER: failed to open nouveau: /opt/lib32/usr/lib/xorg/modules/dri//nouveau_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/xorg/modules/dri/:/opt/lib32/usr/lib/xorg/modules/dri/, suffix _dri)
MESA-LOADER: failed to open zink: /opt/lib32/usr/lib/xorg/modules/dri//zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/xorg/modules/dri/:/opt/lib32/usr/lib/xorg/modules/dri/, suffix _dri)
MESA-LOADER: failed to open kms_swrast: /opt/lib32/usr/lib/xorg/modules/dri//kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/xorg/modules/dri/:/opt/lib32/usr/lib/xorg/modules/dri/, suffix _dri)
MESA-LOADER: failed to open swrast: /opt/lib32/usr/lib/xorg/modules/dri//swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/xorg/modules/dri/:/opt/lib32/usr/lib/xorg/modules/dri/, suffix _dri)
Failed to create GBM device for render device: /dev/dri/renderD128: No such file or directory
libEGL warning: MESA-LOADER: failed to open nouveau: /opt/lib32/usr/lib/xorg/modules/dri//nouveau_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/xorg/modules/dri/:/opt/lib32/usr/lib/xorg/modules/dri/, suffix _dri)
 
libEGL warning: MESA-LOADER: failed to open swrast: /opt/lib32/usr/lib/xorg/modules/dri//swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/xorg/modules/dri/:/opt/lib32/usr/lib/xorg/modules/dri/, suffix _dri)

I do have /usr/lib/dri/nouveau_dri.so. And when i create /opt/lib32/usr/lib/xorg/modules/dri/  and create a softlink to /usr/lib/dri/nouveau_dri.so there, xreader will run. But it seems to me this shouldn't be necessary.  Judging from the error, xreader does not have directory /usr/lib/dri/ in it's path. Is this a bug in xreader?

edit : replaced 'qpdf' with 'xreader' in my post.

Last edited by rwd (2023-10-27 08:41:59)

Offline

#2 2023-10-26 16:43:49

xerxes_
Member
Registered: 2018-04-29
Posts: 1,065

Re: [SOLVED] xreader crashes and can't find my nouveau_dri.so

qpdf is console tool. Did you mean qpdfview? Or maybe something else installed outside of main repo, like from AUR or else?

Here qpdf (console tool) and qpdfview work great; both are from main repo.

Offline

#3 2023-10-26 18:26:13

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,285

Re: [SOLVED] xreader crashes and can't find my nouveau_dri.so

You have a broken LD_LIBRARY_PATH or similar.

Post

printenv
grep -R LD_LIBRARY /etc/profile* 

also check .bashrc and similar

Last edited by V1del (2023-10-26 18:29:03)

Offline

#4 2023-10-27 07:21:50

rwd
Member
Registered: 2009-02-08
Posts: 671

Re: [SOLVED] xreader crashes and can't find my nouveau_dri.so

I mistakenly thought qpdf was my pdf viewer, but it was actually xreader (v 3.8.2). I always open files with exo-open from the commandline, so I had no idea which application actually started. have edited my post.

output of printenv:

SHELL=/bin/bash
SESSION_MANAGER=local/arch-macbookpro:@/tmp/.ICE-unix/629,unix/arch-macbookpro:/tmp/.ICE-unix/629
WINDOWID=35651587
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg
HISTCONTROL=ignoredups
XDG_MENU_PREFIX=xfce-
HISTSIZE=1000
CREDENTIALS_DIRECTORY=/run/credentials/getty@tty1.service
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
DESKTOP_SESSION=xfce
EDITOR=/usr/bin/nano
GTK_MODULES=canberra-gtk-module:canberra-gtk-module
XDG_SEAT=seat0
PWD=/home/user1/documents/downloads/open universiteit
LOGNAME=user1
XDG_SESSION_TYPE=tty
SYSTEMD_EXEC_PID=515
XAUTHORITY=/home/user1/.Xauthority
WINDOWPATH=1
MOTD_SHOWN=pam
HOME=/home/user1
AUTOJUMP_ERROR_PATH=/home/user1/.local/share/autojump/errors.log
LANG=en_US.UTF-8
XDG_CURRENT_DESKTOP=XFCE
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/system.slice/system-getty.slice/getty@tty1.service/memory.pressure
VTE_VERSION=7401
INVOCATION_ID=1fbaf63b88424c70a03439926233027f
XDG_SESSION_CLASS=user
TERM=xterm-256color
USER=user1
MYSQL_HISTFILE=/dev/null
AUTOJUMP_SOURCED=1
DISPLAY=:0.0
SHLVL=3
XDG_VTNR=1
LIBGL_DRIVERS_PATH=/usr/lib/xorg/modules/dri/:/opt/lib32/usr/lib/xorg/modules/dri/
XDG_SESSION_ID=1
XDG_RUNTIME_DIR=/run/user/1000
PS2=> 
PS1=\[\e[0;34m\][\u@\h \W]\$\[\e[0m\] 
PS4=+ 
QUOTING_STYLE=literal
DEBUGINFOD_URLS=https://debuginfod.archlinux.org 
LC_TIME=en_GB.UTF-8
LC_COLLATE=C
GTK3_MODULES=xapp-gtk3-module:xapp-gtk3-module
XDG_DATA_DIRS=/usr/local/share:/usr/share
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
HISTFILESIZE=1000
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
MAIL=/var/spool/mail/user1
OLDPWD=/home/user1
_=/usr/bin/printenv

grep -R LD_LIBRARY /etc/profile* gives nothing. I tried it as root as well.

I did notice that I have a file /etc/profile.d/lib32-dri.sh that contained export LIBGL_DRIVERS_PATH=/usr/lib/xorg/modules/dri/:/opt/lib32/usr/lib/xorg/modules/dri/. Adding /usr/lib/dri/ fixes the problem.

Last edited by rwd (2023-10-27 08:01:55)

Offline

#5 2023-10-27 08:53:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,285

Re: [SOLVED] xreader crashes and can't find my nouveau_dri.so

That file and generally that export should not exist and have no reason to add opt/lib32 as a path where do you have it from?

Last edited by V1del (2023-10-27 08:54:40)

Offline

#6 2023-10-27 09:31:06

rwd
Member
Registered: 2009-02-08
Posts: 671

Re: [SOLVED] xreader crashes and can't find my nouveau_dri.so

I have no idea where the file came from. I made a different topic about how to configure LIBGL_DRIVERS_PATH.

Last edited by rwd (2023-10-27 09:31:23)

Offline

#7 2023-10-27 13:58:17

rwd
Member
Registered: 2009-02-08
Posts: 671

Re: [SOLVED] xreader crashes and can't find my nouveau_dri.so

I removed /etc/profile.d/lib32-dri.sh and after a reboot xreader will start. So LIBGL_DRIVERS_PATH does not seem to be set. Thanks.

Offline

Board footer

Powered by FluxBB