-
Notifications
You must be signed in to change notification settings - Fork 32
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
libGL error: failed to load driver: swrast #211
Comments
That sounds like you have no gpu drivers installed or not not installed them correctly ;) |
I think the correct drivers are already installed: ~$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:05.0/0000:02:00.0 ==
modalias : pci:v000010DEd0000042Fsv000010DEsd00000492bc03sc00i00
vendor : NVIDIA Corporation
model : G86 [Quadro NVS 290]
driver : nvidia-340 - distro non-free recommended
driver : xserver-xorg-video-nouveau - distro free builtin
~$ sudo apt-get install nvidia-340
Reading package lists... Done
Building dependency tree
Reading state information... Done
nvidia-340 is already the newest version (340.108-0ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded. and I can see that OpenGL is ≥ 3.3 (but not > 3.3):
yet, I still run into the same problem: (@v1.5) pkg> build GLMakie
Building ModernGL → `~/.julia/packages/ModernGL/rVuW2/deps/build.log`
Building FFTW ────→ `~/.julia/packages/FFTW/DMUbN/deps/build.log`
Building GLMakie ─→ `~/.julia/packages/GLMakie/cLuEl/deps/build.log`
┌ Error: Error building `GLMakie`:
│ libGL error: No matching fbConfigs or visuals found
│ libGL error: failed to load driver: swrast
│ init error of GLFW
... So do I need the version of OpenGL to be higher than, but not equal to, 3.3.0? |
Do you have any special setup in place? E.g. running this headless (without monitor) or something? |
No, this was on a Ubuntu with Gnome (newest LTS with all the normal things). But I've switched it to Debian Buster (so not the latest) with just i3, to see if it was something Ubuntu related. The hardware this is on is a bit dated (2008) and
As reported elsewhere trying to build So something must be up since this isn't working in either Ubuntu nor Debian... |
I don't see the error :D using GLFW; GLFW.Window() For a simple test! |
Gladly:
|
@yakir12, would you mind trying the following?
|
It's been long enough for all of these problems to have resolved themselves by now... So I think we can close this because, currently, I can't even reproduce the errors I reported here. Both setting and not setting using GLFW; GLFW.Window() works (i.e. no errors and a new window is created). Let me know if there is anything additional you want me to test. For reference: julia> versioninfo()
Julia Version 1.8.0-beta1
Commit 7b711ce699 (2022-02-23 15:09 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 32 × AMD Ryzen Threadripper 2950X 16-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, znver1)
Threads: 1 on 32 virtual cores |
Unfortunately, it's happening on my system. (That's why I found this issue).
Sure. I agree, since the root cause is JuliaLang/julia#34276, which is not fixed but closed at the time of writing. |
Is this releated? Using the newest ubuntu release 22.04 I get
|
@hofmannmartin, use the workaround described in #198 (comment) on 22.04. |
I think it is, @hofmannmartin. I am using the same distribution (ubuntu 22.04) and got the same error. The workaround |
There a number of similar issues to this one, but I wasn't sure where to put this one since it's on Ubuntu and Julia was built from source:
System:
GPU:
The text was updated successfully, but these errors were encountered: