I have a few problems (refer to messages below) with launching third party scientific softwares (e.g. coot, pymol or chimera).
I use the coot binary (0.9.5). Chimera is 1.14 build 42018. Ubuntu 20.04.2 LTS Gnome. I use the pymol-open-source from Github
Graphic card: VGA compatible controller: Intel Corporation UHD Graphics 620 (Whiskey Lake)
Model: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
It seems that there are some problems with iris and swrast (please refer the message below).
I always get this message for chimera:
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 890
Current serial number in output stream: 891
I got this message for pymol:
Qt not available, using GLUT/Tk interface
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
freeglut Unable to create OpenGL 1.0 context (flags 0, profile 0)
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 50
Current serial number in output stream: 51
PyMOL: abrupt program termination.
Thanks for the help.
lsmod | grep
drm rm_kms_helper 184320 1 i915
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
drm 491520 9 drm_kms_helper,i915
$ glxinfo | grep Vendor
Vendor: Intel Open Source Technology Center (0x8086)
$ lshw -C video
WARNING: you should run this program as super-user.
*-display
description: VGA compatible controller
product: UHD Graphics 620 (Whiskey Lake)
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:150 memory:9b000000-9bffffff memory:50000000-5fffffff ioport:3000(size=64)
memory:c0000-dffff
$ vainfo
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.6.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
when executing a python script, I get this after generating a figure:
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: iris libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: iris libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri) libGL error: failed to load driver: swrast
I dont know how to fix it, i have searched for information but have found nothing to help me
asked May 4, 2022 at 9:02
2
Here are two possible solutions. Try them both and see what works.
Solution 1
Follow the instructions in this answer.
Solution 2
If you are using Anaconda to run this Python script, Anaconda may be the reason. This solution was taken from here (update 3), which in turn was taken from here.
From the latter link:
According to online information, there is a problem with the libstdc++.so file in Anaconda (I use this commercial python distribution). It cannot be associated with the driver of the system, so we removed it and used the libstdc++ that comes with Linux. so creates a soft link there.
To solve this problem, run this in bash:
$ cd /home/$USER/miniconda/lib
$ mkdir backup # Create a new folder to keep the original libstdc++
$ mv libstd* backup # Put all libstdc++ files into the folder, including soft links
$ cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./ # Copy the c++ dynamic link library of the system here
$ ln -s libstdc++.so.6 libstdc++.so
$ ln -s libstdc++.so.6 libstdc++.so.6.0.19
where $USER should be your own username.
answered May 29, 2022 at 22:27
mhdadkmhdadk
3852 silver badges10 bronze badges
3
This worked for me:
mv ~/anaconda3/lib/libstdc++.so.6 ~/libstdc++.so.6
answered Aug 23, 2022 at 15:05
ZeatherZeather
512 silver badges4 bronze badges
1
|
# (отредактировано 1 год, 6 месяцев назад) |
|
|
Темы: 132 Сообщения: 978 Участник с: 11 октября 2013 |
Есть немного аппимаджей, которые я использую. В качестве резерва-эталона (реализации) в случае необходимости (и пр., пр., пр.) среди немногих https://github.com/FreeCAD/FreeCAD/releases и (или ) https://github.com/realthunder/FreeCAD_assembly3/releases/tag/0.11 апимадж freecad. Но вот внезапно возникла необходимость воспользоваться и облом-с. Да, скачивается, да, запускается. Но при попытке отркыть файл взлетает процессор и навсегда. Но не виснет. И ошибок не выдает. Или при попытке создания внутри программы новый файл (меню-файл-создать) — аналогичный взлет и навсегда. Очевидно, что какой-то из наших пакетов обновился и мешает жить.
Кто подскажет причину и решение? |
|
vs220 |
# |
|
Темы: 22 Сообщения: 8090 Участник с: 16 августа 2009 |
Надо запускать из консоли смотреть вывод, и когда жрет проц смотреть htop какой процесс жрет. Может из питона что то. Стандартный фрикад из реп вас не устраивает? |
|
wau |
# |
|
Темы: 132 Сообщения: 978 Участник с: 11 октября 2013 |
Стандартный — нет (линкстэйбл = да). Собранный из исходников линкстэйбл работает, но иногда бывает нужно (при выявлении косяков) запустить эталонную версию для описания проблемы разработчикам. Разумеется, htop и показывал кто жрет — процесс freecad. |
|
vs220 |
# |
|
Темы: 22 Сообщения: 8090 Участник с: 16 августа 2009 |
Попробовал запустить по вашим ссылкам , оба appimage нормально работают. Либы системные частично используются.
Пакеты с этими либами Попробуйте распаковать appimage , проверить либы и потрейсить бинарник — может что то и будет видно.
По анализу процессов у vasek есть тема в блогах https://archlinux.org.ru/forum/topic/19282/ |
|
wau |
# (отредактировано 1 год, 6 месяцев назад) |
|
Темы: 132 Сообщения: 978 Участник с: 11 октября 2013 |
Спасибо за наводку. Распаковывать я уже раньше научился.
При запуске в консоли пишет —
после чего на экране окно программы, в котором все работает до попытки открыть файл или создать файл, после чего = взлет и тишина в консоли. Видеокарта у меня встроенная, ноутбучная, интел. Никогда ничего нвидовского не ставил. Стоят glibc 2.33-5, libstdc++5 3.3.6-7. Из системных либ использует —
|
|
vs220 |
# (отредактировано 1 год, 6 месяцев назад) |
|
Темы: 22 Сообщения: 8090 Участник с: 16 августа 2009 |
Это не то, у вас на 6 жалуется а это gcc-libs , пакет gcc-libs |
|
vs220 |
# |
|
Темы: 22 Сообщения: 8090 Участник с: 16 августа 2009 |
И вывод гляньте
И если встроенная либа используется то и для нее
|
|
wau |
# |
|
Темы: 132 Сообщения: 978 Участник с: 11 октября 2013 |
gcc-libs 11.1.0-1
и по strings /usr/lib/libstdc++.so.6 | grep GLIBCXX находится GLIBCXX_3.4.29 |
|
vs220 |
# (отредактировано 1 год, 6 месяцев назад) |
|
Темы: 22 Сообщения: 8090 Участник с: 16 августа 2009 |
А какая либа используется системная или встроенная ? Вывод
И на всякий случай проверить сам опенгл
|
|
wau |
# |
|
Темы: 132 Сообщения: 978 Участник с: 11 октября 2013 |
Все «не встроенные» поименовал выше —
|
Today, I upgraded my linux ubuntu OS and the open GL has started to misbehave. When I run matlab from the terminal, the following error messages shows up in the terminal:
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
Gtk-Message: 19:01:01.023: Failed to load module «canberra-gtk-module»
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
In addition, when matlab opens, i get the following error messages in MATLAB prompt:
com.jogamp.opengl.GLException: X11GLXDrawableFactory — Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x21f25922, isOwner false, <7e533fff, 73c0ad7a>[count 0, qsz 0, owner <NULL>]]]
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:326)
at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:297)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.jogamp.opengl.GLException: AWT-EventQueue-0-SharedResourceRunner: Unable to create temp OpenGL context(1)
at jogamp.opengl.x11.glx.X11GLXContext.createImpl(X11GLXContext.java:368)
at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:759)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:642)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:297)
…
For this reason, the figures are poorly rendered.
Any help please?
Advocate

Joined: 25 Jan 2004
Posts: 2895
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
| |
||
|
|
||
| Hi
I do once a week a world update, so my system is up-to-date. I realized that some when I start some programs from the terminal, I get this error/warning message:
This error message is new, I don’t know since when it appears. But it seems that everything is working fine anyway. Which package provides the file /usr/lib64/dri/iris_dri.so and why might I me missing it?
Last edited by pablo_supertux on Thu May 12, 2022 7:31 am; edited 1 time in total |
Advocate

Joined: 25 Jan 2004
Posts: 2895
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
| |
||||||
|
|
||||||
Something is strange.
In /etc/portage/make.conf I have: VIDEO_CARDS=»nouveau vesa fbdev i915 i965″
The first line of eix that shows the available versions shows i915 and iris in the list of video cards. But when I do emerge media-libs/mesa -pv these do not appear:
what am I missing? |
Advocate
Joined: 23 Mar 2019
Posts: 3304
Advocate

Joined: 25 Jan 2004
Posts: 2895
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
| |
||||
|
|
||||
| @alamahant: thanks for the suggestion.
I was also inspecting the ebuilds and I think the ebuild dropped the i915 and iris drivers: /usr/portage/media-libs/mesa/mesa-21.3.8.ebuild on line 29
/usr/portage/media-libs/mesa/mesa-22.0.3.ebuild on line 30
and I have currently installed media-libs/mesa-22.0.3 that would explain why there is no i915 option. The question is whether this is intentional or a mistake in the ebuild. |
Advocate
Joined: 23 Mar 2019
Posts: 3304
Advocate

Joined: 25 Jan 2004
Posts: 2895
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
| |
|
|
|
|
| So, a question about the names of the drivers.
The kernel module for intel integrated cards is called i915 (lspci says this module is being used), I have a i7-10700K CPU (10gen?), so based on https://wiki.gentoo.org/wiki/Intel I should set (as you suggested) intel i965 iris. The name of the drivers for x11 is not i915 but i965 or iris (in my case), right? Why the different names? |
Advocate

Joined: 25 Jan 2004
Posts: 2895
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
| |
||||
|
|
||||
That seems to be the case. I set my VIDEO_CARDS as you suggested, recompiled media-libs/mesa and now I have the iris_dri.so file, libgl is not complaining anymore and my web browser renders maps way more smoother. Thanks for the suggestion. |
Display posts from previous:
I’m trying to run an app on Fedora 33, but when I run the executable, I get this error:
error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib64/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib64/dri)
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 52
Current serial number in output stream: 51
I tried following the thread here: https://www.reddit.com/r/Fedora/comments/hhytvl/libgl_error_mesaloader_failed_to_open_iris/ but haven’t gotten anything to work
Note that the driver iris_dri.so is present in both /usr/lib/dri and /usr/lib64/dri
Any help is appreciated, thanks in advance!
asked Nov 23, 2020 at 15:53
I ran into the same warning (but the iris part only) on my Gentoo Linux system. In my case, the solution was to reinstall the mesa package with support for iris video cards. Apparently, the «Intel iRISx graphics» sticker on my laptop would have suggested that, had I been sufficiently knowledgeable to recognise it.
I don’t know what the equivalent is for fedora systems, but something along the same lines (an iris option for the mesa package?; a separate iris package?) should fix your case as well.
answered Jan 30, 2022 at 10:20
