libGL error

Asked by HARESH AJANI on 2018-07-30

libGL error: unable to load driver: nouveau_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: nouveau
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
  Major opcode of failed request: 155 (GLX)
  Minor opcode of failed request: 6 (X_GLXIsDirect)
  Serial number of failed request: 54
  Current serial number in output stream: 53
WARNING Maestro is using software rendering. Graphics performance and quality may be sub-optimal.
Use the -NOSGL option to force hardware rendering.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2018-07-31
Last reply:
2018-07-31
Manfred Hampl (m-hampl) said : #1

What did you do to receive this output?

What is the output of the commands (to be executed in a terminal window):

uname -a
lsb_release -crid
sudo lswh -C display

HARESH AJANI (ajaniharesh) said : #2

Hi Here is the detail of above commend.

ajanihar@ZEEL:~$ uname -a
Linux ZEEL 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
ajanihar@ZEEL:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
ajanihar@ZEEL:~$ sudo lshw -C display
  *-display
       description: VGA compatible controller
       product: GK106 [GeForce GTX 660]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nouveau latency=0
       resources: irq:29 memory:f6000000-f6ffffff memory:e8000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:c0000-dffff
ajanihar@ZEEL:~$

Manfred Hampl (m-hampl) said : #3

You missed the first question:

What did you do to receive this output?

HARESH AJANI (ajaniharesh) said : #4

ajanihar@ZEEL:~/Lab/NatureP/Crystal$ maestro

*****************************************************************
Maestro Molecular Modeling Interface
Maestro is a product of Schrödinger, Inc.
Legal notices can be viewed by clicking Help->About Maestro
*****************************************************************
libGL error: unable to load driver: nouveau_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: nouveau
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
  Major opcode of failed request: 155 (GLX)
  Minor opcode of failed request: 6 (X_GLXIsDirect)
  Serial number of failed request: 54
  Current serial number in output stream: 53
WARNING Maestro is using software rendering. Graphics performance and quality may be sub-optimal.
Use the -NOSGL option to force hardware rendering.

Manfred Hampl (m-hampl) said : #5

For diagnostic purposes, what is the output of the commands

LIBGL_DEBUG=verbose maestro
sudo updatedb
locate nouveau_dri.so
locate swrast_dri.so

HARESH AJANI (ajaniharesh) said : #6

ajanihar@ZEEL:~$ LIBGL_DEBUG=verbose maestro

*****************************************************************
Maestro Molecular Modeling Interface
Maestro is a product of Schrödinger, Inc.
Legal notices can be viewed by clicking Help->About Maestro
*****************************************************************
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/nouveau_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
libGL: dlopen /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so failed (/home/ajanihar/Program/Schrodinger2018-2/mmshare-v4.2/lib/Linux-x86_64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so))
libGL: OpenDriver: trying ${ORIGIN}/dri/tls/nouveau_dri.so
libGL: OpenDriver: trying ${ORIGIN}/dri/nouveau_dri.so
libGL: dlopen ${ORIGIN}/dri/nouveau_dri.so failed (/home/ajanihar/Program/Schrodinger2018-2/mmshare-v4.2/lib/Linux-x86_64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so))
libGL: OpenDriver: trying /usr/lib/dri/tls/nouveau_dri.so
libGL: OpenDriver: trying /usr/lib/dri/nouveau_dri.so
libGL: dlopen /usr/lib/dri/nouveau_dri.so failed (/usr/lib/dri/nouveau_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: nouveau_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: nouveau
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libGL: dlopen /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so failed (/home/ajanihar/Program/Schrodinger2018-2/mmshare-v4.2/lib/Linux-x86_64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so))
libGL: OpenDriver: trying ${ORIGIN}/dri/tls/swrast_dri.so
libGL: OpenDriver: trying ${ORIGIN}/dri/swrast_dri.so
libGL: dlopen ${ORIGIN}/dri/swrast_dri.so failed (/home/ajanihar/Program/Schrodinger2018-2/mmshare-v4.2/lib/Linux-x86_64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so))
libGL: OpenDriver: trying /usr/lib/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/dri/swrast_dri.so
libGL: dlopen /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
  Major opcode of failed request: 155 (GLX)
  Minor opcode of failed request: 6 (X_GLXIsDirect)
  Serial number of failed request: 54
  Current serial number in output stream: 53
WARNING Maestro is using software rendering. Graphics performance and quality may be sub-optimal.
Use the -NOSGL option to force hardware rendering.

ajanihar@ZEEL:~$ sudo updatedb
[sudo] password for ajanihar:

ajanihar@ZEEL:~$ sudo updatedb

ajanihar@ZEEL:~$ locate nouveau_dri.so
/snap/gnome-3-26-1604/59/usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
/snap/gnome-3-26-1604/70/usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
/usr/lib/i386-linux-gnu/dri/nouveau_dri.so
/usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so

ajanihar@ZEEL:~$ locate swrast_dri.so
/snap/gnome-3-26-1604/59/usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
/snap/gnome-3-26-1604/59/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
/snap/gnome-3-26-1604/70/usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
/snap/gnome-3-26-1604/70/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
/usr/lib/i386-linux-gnu/dri/kms_swrast_dri.so
/usr/lib/i386-linux-gnu/dri/swrast_dri.so
/usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so

Manfred Hampl (m-hampl) said : #7

Probably a version conflict between libraries provided by the maestro package and those provided by Ubuntu.

Maybe the following works:

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 maestro

Another option could be to rename or delete the file /home/ajanihar/Program/Schrodinger2018-2/mmshare-v4.2/lib/Linux-x86_64/libstdc++.so.6 such that it is no more found and used.

Can you help with this problem?

Provide an answer of your own, or ask HARESH AJANI for more information if necessary.

To post a message you must log in.