-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symbol lookup error: undefined symbol: _glapi_tls_Current #556
Comments
Is your system glvnd enabled? I.e. do you have stuff in Provide the output of |
ppd, thank you for reply!
I have installed all packages that contains |
That's quite odd. Will try on my nvidia machine at work. |
Apologies. It's only non-empty from the perspective of the snap. Could you do the following? mfederle@maxi:~$ snap run --shell solvespace
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
mfederle@maxi:/home/mfederle$ ls -al /var/lib/snapd/lib/glvnd/egl_vendor.d/
total 0
drwxr-xr-x 2 root mfederle 60 Mär 6 09:32 .
drwxrwxrwt 3 root mfederle 60 Mär 6 09:32 ..
lrwxrwxrwx 1 root mfederle 65 Mär 6 09:32 10_nvidia.json -> /var/lib/snapd/hostfs/usr/share/glvnd/egl_vendor.d/10_nvidia.json It should have somewhat comparable output. |
Do you have |
I have same file:
Yes, I have |
Fair enough. So the bug wasn't related to the snap package.
That's unrelated. What GPU do you have? I think Gtk::GLArea requires >= OpenGL 3.0 features. I wonder if it's possible that your card or driver is too old. But that seems a bit unlikely 🤔 |
GeForce GTX 950.
|
I ran Debian 9 from a USB stick and installed The good news: I can reproduce the issue. libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast So clearly we're not using the nvidia driver for some reason, yet snapd seems to expose it just fine at a first glance. Something's probably different in the packaging or setup of the Debian driver vs. the Ubuntu one. |
Support request upstream: https://forum.snapcraft.io/t/no-opengl-on-debian-9-nvidia/15848 Further investigation shows that it's certainly not a solvespace bug. Also, this investigation is way beyond the scope of the issue's title... I quote
@whitequark We should probably close this or maybe create an "info issue" with those details until |
Is it possible somehow to workaround this problem? |
You could install the nvidia driver from the official installer or use the nouveau driver. Whether the layout of the official Nvidia driver is compatible with current snapd is another question. Probably, but I haven't tried myself. |
I just installed nvidia driver 440.64 from the official installer. |
I installed nouveau driver. Solvespace runs, but 3D graphics in other applications is slow. |
This isn't ideal but building SolveSpace from source should make it work. (Ideally the snap should still be fixed.) |
Or run it without any of the snap confinement: mfederle@maxi-xps:~$ cd /snap/solvespace/current
mfederle@maxi-xps:/snap/solvespace/current$ LD_LIBRARY_PATH="$(pwd)/lib:$(pwd)/usr/lib:$(pwd)/usr/lib/x86_64-linux-gnu" ./usr/bin/solvespace
SolveSpace!
Missing (absent) translation for '&Helix'
Missing (absent) translation for 'Re&volve'
Missing (absent) translation for 'Show &Underconstrained Points'
^C
mfederle@maxi-xps:/snap/solvespace/current$ It might need a few libraries from the core snap, but hopefully the rest is available and compatible on Debian 9. |
The fix will come by update of the snap daemon itself, as it does some magic to expose the nvidia libraries from the host to the app within the snap. We do not ship proprietary drivers in the snap, only the mesa stack, afaik. |
Upstream bug: https://bugs.launchpad.net/snapd/+bug/1866855 |
This workaround works! Thank you! :) |
For the sake of completeness, I quote upstream's findings:
So don't hold your breath; it might take a while... |
System information
SolveSpace version: 3.0~fcb2757d
Operating system: Debian 9.12
Behavior
I get "symbol lookup error: undefined symbol: _glapi_tls_Current" when I try to run solvespace:
Additional information
I use proprietary nvidia driver 390.116.
The text was updated successfully, but these errors were encountered: