FS#53369 - [primus][nvidia] primus cant find libGL.so.1

Attached to Project: Community Packages
Opened by michael (monad) - Sunday, 19 March 2017, 16:03 GMT
Last edited by Laurent Carlier (lordheavy) - Monday, 20 March 2017, 19:23 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Laurent Carlier (lordheavy)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
primus fails to locate libGL.so.1 that should be provided by nvidia:

user@pc ~ % optirun -b primus glxspheres64
primus: fatal: failed to load any of the libraries: /usr/lib/nvidia/libGL.so.1:/usr/lib32/nvidia/libGL.so.1
/usr/lib/nvidia/libGL.so.1: cannot open shared object file: No such file or directory
/usr/lib32/nvidia/libGL.so.1: cannot open shared object file: No such file or directory

not using primus as the bridge works fine:

user@pc ~ % optirun glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GTX 1060/PCIe/SSE2


Additional info:
* package versions:
primus 20151110-7
nvidia 378.13-3
nvidia-utils 378.13-5
This task depends upon

Closed by  Laurent Carlier (lordheavy)
Monday, 20 March 2017, 19:23 GMT
Reason for closing:  Not a bug
Comment by michael (monad) - Monday, 20 March 2017, 18:36 GMT
Update:

This seems to be fixed by the latest nvidia update (nvidia 378.13-4):

user@pc ~ % optirun -b primus glxspheres64
Polygons in scene: 62464 (61 spheres * 1024 polys/spheres)
Visual ID of window: 0xb2
Context is Direct
OpenGL Renderer: GeForce GTX 1060/PCIe/SSE2

interestingly, there is still no libGL.so.1 in /usr/lib/nvidia so this is a case of 'it runs but I have no idea why'
If there is any additional information needed to prevent a bug like this in the future, please let me know.
Comment by Laurent Carlier (lordheavy) - Monday, 20 March 2017, 18:49 GMT
There was an update of the configuration files (in /etc/bumblebee), please check if you have applied the changes.
Comment by michael (monad) - Monday, 20 March 2017, 18:52 GMT
you are correct, a diff of the old vs new bumblebee.conf shows:

58c58
< LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia:/usr/lib:/usr/lib32
---
> LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia

which explains why primus is now able to find the library.
This bug can be closed then, thank you.

Loading...