Comments (56)
Just removing julia-1.5.0/lib/julia/libstdc++.so.6 worked for me (Ubuntu 20.04 on a Dell Laptop with Intel graphics) but I hope it will not create problems in other areas..
You also can do (in bash)
$ export LD_PRELOAD=/usr/lib64/libstdc++.so.6
$ julia
I had to do this for a similar reason and put it into my julia start script... Though my GLFW works without.
from glfw.jl.
Is there any way we can fix this? Seems like quite a few people run into this!
from glfw.jl.
Hi,
After more experimentation, it turns out steps 2 and 3 shouldn't be necessary (at least it works on my machine
from glfw.jl.
A fix is planned in JuliaCI/julia-buildkite#205, where the newest libstdc++ out of (bundled, system) is chosen at startup time.
from glfw.jl.
I have this issue for testing Makie (Ubuntu 20.04, Julia 1.4, NVIDIA
@weech thanks for posting the work around. I'm new to Julia. Can you please elaborate on your work around.
- Delete julia-1.3.0/lib/julia/libstdc++.so.6
this step is clear - Find the system libstdc++ with whereis libstdc++
This just returns:libstdc++:
, am I missing something? - Link that location to julia-1.3.0/lib/julia-libstdc++.so.6 using ln.
How does this linking work can you provide me with some information?
Thanks.
from glfw.jl.
Btw, the branched off 1.6 finally seems to fix this :)
from glfw.jl.
Somewhat ;) Should mostly work now, but I think the problem is, that it might come up again, whenever things get out of sync
from glfw.jl.
Somewhat ;) Should mostly work now, but I think the problem is, that it might come up again, whenever things get out of sync
On ArchLinux with an integrated Intel GPU with mesa driver, I get:
$ glxinfo
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 530 (SKL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.1.4
But trying to use GLMakie, it is expecting GLIBCXX_3.4.29
so I get the error:
libGL error: MESA-LOADER: failed to open iris: /opt/julias/julia-1.6.2/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /opt/julias/julia-1.6.2/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/iris_dri.so) (search paths /usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /opt/julias/julia-1.6.2/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /usr/lib/dri)
libGL error: failed to load driver: swrast
┌ Warning: GLFW couldn't create an OpenGL window.
│ This likely means, you don't have an OpenGL capable Graphic Card,
│ or you don't have an OpenGL 3.3 capable video driver installed.
│ Have a look at the troubleshooting section in the GLMakie readme:
│ https://github.com/JuliaPlots/Makie.jl/tree/master/GLMakie#troubleshooting-opengl.
└ @ GLMakie ~/.julia/packages/GLMakie/rXGL8/src/screen.jl:336
Error showing value of type Makie.FigureAxisPlot:
ERROR: GLFWError (VERSION_UNAVAILABLE): GLX: Failed to create context: GLXBadFBConfig
Stacktrace:
[1] _ErrorCallbackWrapper(code::Int32, description::Cstring)
@ GLFW ~/.julia/packages/GLFW/BWxfF/src/callback.jl:43
[2] CreateWindow(width::Int64, height::Int64, title::String, monitor::GLFW.Monitor, share::GLFW.Window)
@ GLFW ~/.julia/packages/GLFW/BWxfF/src/glfw3.jl:499
[3] GLFW.Window(; name::String, resolution::Tuple{Int64, Int64}, debugging::Bool, major::Int64, minor::Int64, windowhints::Vector{Tuple{UInt32, Integer}}, contexthints::Vector{Tuple{UInt32, Integer}}, visible::Bool, focus::Bool, fullscreen::Bool, monitor::Nothing, share::GLFW.Window)
@ GLFW ~/.julia/packages/GLFW/BWxfF/src/glfw3.jl:344
[4] GLMakie.Screen(; resolution::Tuple{Int64, Int64}, visible::Bool, title::String, kw_args::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ GLMakie ~/.julia/packages/GLMakie/rXGL8/src/screen.jl:328
[5] Screen
@ ~/.julia/packages/GLMakie/rXGL8/src/screen.jl:301 [inlined]
[6] global_gl_screen
@ ~/.julia/packages/GLMakie/rXGL8/src/screen.jl:247 [inlined]
[7] global_gl_screen(resolution::Tuple{Int64, Int64}, visibility::Bool, tries::Int64)
@ GLMakie ~/.julia/packages/GLMakie/rXGL8/src/screen.jl:394
[8] global_gl_screen
@ ~/.julia/packages/GLMakie/rXGL8/src/screen.jl:393 [inlined]
[9] backend_display
@ ~/.julia/packages/GLMakie/rXGL8/src/display.jl:2 [inlined]
[10] display(scene::Scene; update::Bool)
@ Makie ~/.julia/packages/Makie/xbI6d/src/display.jl:60
[11] display
@ ~/.julia/packages/Makie/xbI6d/src/display.jl:56 [inlined]
[12] #display#905
@ ~/.julia/packages/Makie/xbI6d/src/display.jl:52 [inlined]
[13] display
@ ~/.julia/packages/Makie/xbI6d/src/display.jl:52 [inlined]
[14] #display#904
@ ~/.julia/packages/Makie/xbI6d/src/display.jl:51 [inlined]
[15] display(fap::Makie.FigureAxisPlot)
@ Makie ~/.julia/packages/Makie/xbI6d/src/display.jl:51
It seems that the issue that was resolved is that drivers were expecting GLIBCXX_3.4.26
so things got out of sync again.
@j-fu workaround worked though: #198 (comment)
from glfw.jl.
@blegat I can confirm your issue and indeed the workaround works: #198 (comment).
My setup is Arch Linux, with integrated Intel GPU and
$ glxinfo | grep "OpenGL version"
OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.2.1
from glfw.jl.
Yes, until gcc will completely break the ABI
from glfw.jl.
There is this issue: JuliaLang/julia#34276
from glfw.jl.
I think you need an AMD card, since this seems to be a radeon driver issue
from glfw.jl.
Yes, I have an AMD card, and it is the radeon driver specifically that can't be loaded while Julia's included libstdc++ is loaded.
from glfw.jl.
I upgraded to nvidia-driver-390
(was using 340) and now Makie does build without errors. So that resolved my issue. Thanks for your help @weech.
from glfw.jl.
I got
Building FFTW ────→ `~/.julia/packages/FFTW/DMUbN/deps/build.log`
Building GLMakie ─→ `~/.julia/packages/GLMakie/4EXKe/deps/build.log`
┌ Error: Error building `GLMakie`:
│ 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
│ init error of GLFW
Unfortunately proposed walk-around sounds a bit hacky, as in my opinion replacing stdc++ with other version for which Julia's binaries weren't build although might solve GLMakie build problem, it may as well cause other issues.
What worked for me instead (Nvidia users only)
I just forced julia to use Nvidia with offloading in latest drivers
http://us.download.nvidia.com/XFree86/Linux-x86_64/450.66/README/primerenderoffload.html
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia julia
from glfw.jl.
It should work the same if you start vscode from the command line and then Julia from vscode. Having it in .zshrc would affect all programs started from the command line, you will need to check if this puts you in trouble with other programs (probably not as they all would use that shared object anyway one cleanly installed system). In startup.jl it would come too late in the startup process.
from glfw.jl.
So, following this SO answer, I get
find / -name libstdc++.so.6 2>/dev/null
/usr/lib/i386-linux-gnu/libstdc++.so.6
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
#... plus a bunch of others from flatpack, etc
So I did set LD_PRELOAD /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(I'm using fish, I thought this is the equivalent of export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6
), then started julia. Still got same problem trying to load GLMakie.
But I noticed that the variable was not set in ENV
, so I did ENV["LD_PRELOAD"]="/usr/lib/x86_64-linux-gnu/libstdc++.so.6"
, the using GLMakie
, and that worked! At least it finally precompiled... but now:
julia> plot(rand(10), rand(10))
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)
That file is there in /usr/lib/x86_64-linux-gnu/dri
- any ideas?
from glfw.jl.
On Arch, this happens for me everytime a Julia version goes stale, i.e. when I update gcc-libs
to a version newer than Julia. Most recently, this happened for gcc-libs-12.1.0
which contains libstdc++.so.6.0.30
(up to GLIBCXX_3.4.30
).
Unfortunately, even recompiling Julia does not fix the issue because it will not pick up the newer libstdc++.so
installed on the system. This looks at first glance as if the Julia build is supposed to use the system version if it is newer than whatever it knows about, but at least when I make clean
and make
that does not happen.
Setting LD_PRELOAD
or replacing the .so
files as described above works for me.
from glfw.jl.
Hopefully this will be fixed by JuliaLang/julia#46976
from glfw.jl.
Fixed forever??
from glfw.jl.
What version of GLFW.jl are you using?
from glfw.jl.
The Manifest lists GLFW_jll version = "3.3.2+0" and GLFW version = "3.2.2". The GLFW from the repos is "glfw-x11 3.3.2-1".
from glfw.jl.
Is there a MWE to reproduce the error? I have GCC v9.3.0 with libstdc++.so.6.0.28
on my system and the example in the README.md
works for me.
from glfw.jl.
It's not just radeon; I've just been hit by this and I've got an Intel integrated GPU with the iris driver. Thankfully now works with this fix
from glfw.jl.
@weech thanks for the quick reply. I tried doing just step 1 but unfortunately it still does not work. When I try ] build GLFW
in Julia I get nothing, not even a warning message, an error or anything, just an empty line.
I then tried ] build GLMakie
and got:
Building ModernGL → `~/.julia/packages/ModernGL/rVuW2/deps/build.log`
Building GLMakie ─→ `~/.julia/packages/GLMakie/2xw8L/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
│ ERROR: LoadError: OpenGL/GLFW wasn't installed correctly. This likely means,
│ you don't have an OpenGL capable Graphic Card,
│ you don't have the newest video driver installed,
│ or the GLFW build failed. If you're on linux and `]build` GLFW failed,
│ try manually adding `sudo apt-get install libglfw3` and then `]build GLMakie`.
...
...
FYI when I run glxinfo | grep "OpenGL version"
in a terminal I get:
OpenGL version string: 4.4.0 NVIDIA 340.108
Any suggestions?
Thanks. (fyi @SimonDanisch, still stuck trying to set-up Makie)
from glfw.jl.
I think this might be a separate problem? I haven't seen the "No matching fbConfigs or visuals found" error before, and there's no error saying it couldn't load your driver. Can you compile and run the following program to test that the system GLFW is working? It's just a hello world app from the GLFW website that creates a window with the title "Hello World". Since you're on Ubuntu you might have to install the dev libraries and tweak where the headers are. I compiled it with clang $(pkg-config --cflags glfw3) -o glfwtest glfwtest.c $(pkg-config --libs glfw3) -lGL
. Another debugging step would be to run Julia with the environment variable LIBGL_DEBUG=verbose
so you get additional information.
#include <GL/gl.h>
#include <GLFW/glfw3.h>
int main(void)
{
GLFWwindow* window;
/* Initialize the library */
if (!glfwInit())
return -1;
/* Create a windowed mode window and its OpenGL context */
window = glfwCreateWindow(640, 480, "Hello World", NULL, NULL);
if (!window)
{
glfwTerminate();
return -1;
}
/* Make the window's context current */
glfwMakeContextCurrent(window);
/* Loop until the user closes the window */
while (!glfwWindowShouldClose(window))
{
/* Render here */
glClear(GL_COLOR_BUFFER_BIT);
/* Swap front and back buffers */
glfwSwapBuffers(window);
/* Poll for and process events */
glfwPollEvents();
}
glfwTerminate();
return 0;
}
from glfw.jl.
@weech thanks
I think it worked, if the picture below is correct.
I followed these steps:
- I created that file and called it
glfwtest.c
- I then did:
sudo apt install clang
- I then ran
clang $(pkg-config --cflags glfw3) -o glfwtest glfwtest.c $(pkg-config --libs glfw3) -lGL
- I then noticed the executable in the folder, if I run that I get:
How do I run julia with that environment variable LIBGL_DEBUG=verbose
?
I went here: https://docs.julialang.org/en/v1/manual/environment-variables/index.html
I'll try ENV["LIBGL_DEBUG"] = "verbose"
based on that link and will report back.
from glfw.jl.
After running ENV["LIBGL_DEBUG"] = "verbose"
in the REPL I tried ] build Makie
again and got:
Building ModernGL → `~/.julia/packages/ModernGL/rVuW2/deps/build.log`
Building GLMakie ─→ `~/.julia/packages/GLMakie/S9Zib/deps/build.log`
┌┌ Error: Error building `GLMakie`:
│ libGL: screen 0 does not appear to be DRI2 capable
│ libGL: Can't open configuration file /etc/drirc: No such file or directory.
│ libGL: Can't open configuration file /home/kevin/.drirc: No such file or directory.
│ libGL: Can't open configuration file /etc/drirc: No such file or directory.
│ libGL: Can't open configuration file /home/kevin/.drirc: No such file or directory.
│ libGL error: No matching fbConfigs or visuals found
│ libGL error: failed to load driver: swrast
│ init error of GLFW
│ ERROR: LoadError: OpenGL/GLFW wasn't installed correctly. This likely means,
│ you don't have an OpenGL capable Graphic Card,
│ you don't have the newest video driver installed,
│ or the GLFW build failed. If you're on linux and `]build` GLFW failed,
│ try manually adding `sudo apt-get install libglfw3` and then `]build GLMakie`.
│ If you're on a headless server, you still need to install x-server and
│ proper GPU drivers. You can take inspiration from this article
│ on how to get Makie running on a headless system:
│ https://nextjournal.com/sdanisch/makie-1.0
│ If you don't have a GPU, there is also a Cairo software backend
│ for Makie which you can use:
│ https://github.com/JuliaPlots/CairoMakie.jl.
│ Please check the below error and open an issue at:
│ https://github.com/JuliaPlots/GLMakie.jl.
│ After you fixed your OpenGL install, please run `]build GLMakie` again!
│ GLMakie will still load, but will be disabled as a default backend for Makie
│
│ Stacktrace:
│ [1] error(::String) at ./error.jl:33
│ [2] top-level scope at /home/kevin/.julia/packages/GLMakie/S9Zib/deps/build.jl:63
│ [3] include(::String) at ./client.jl:439
│ [4] top-level scope at none:5
│ in expression starting at /home/kevin/.julia/packages/GLMakie/S9Zib/deps/build.jl:31
│ caused by [exception 1]
│ GLFWError (VERSION_UNAVAILABLE): GLX: Failed to create context: BadMatch
│ Stacktrace:
│ [1] _ErrorCallbackWrapper(::Int32, ::Cstring) at /home/kevin/.julia/packages/GLFW/g1nX6/src/callback.jl:43
│ [2] CreateWindow(::Int64, ::Int64, ::String, ::GLFW.Monitor, ::GLFW.Window) at /home/kevin/.julia/packages/GLFW/g1nX6/src/glfw3.jl:487
│ [3] GLFW.Window(; name::String, resolution::Tuple{Int64,Int64}, debugging::Bool, major::Int64, minor::Int64, windowhints::Array{Tuple{UInt32,Int64},1}, contexthints::Array{Tuple{UInt32,Integer},1}, visible::Bool, focus::Bool, fullscreen::Bool, monitor::Nothing, share::GLFW.Window) at /home/kevin/.julia/packages/GLFW/g1nX6/src/glfw3.jl:338
│ [4] top-level scope at /home/kevin/.julia/packages/GLMakie/S9Zib/deps/build.jl:34
│ [5] include(::String) at ./client.jl:439
│ [6] top-level scope at none:5
└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:892
Building FFTW ────→ `~/.julia/packages/FFTW/5DZuu/deps/build.log`
I still get nothing after running build GLFW
.
from glfw.jl.
@jayschwa, you think we could improve the situation, by loading the systems glfw library?
I think this is a BinaryBuilder problem (well not alone, but I think the systems glfw doesn't have this problem), so something like this may just work:
try
using GLFW_jll
catch e
@warn "BinaryBuilder GLFW doesn't load see issue #198, trying to load system GLFW" exception=e
try
const libglfw = Libdl.open("...") # I kinda forgot how to do this cleanly, but shouldn't be to hard to figure out
catch e
@error "Could not load system GLFW, make sure its installed (show some tips)" exception=e
end
end
Anyone running into this issue care to try out such a solution?
from glfw.jl.
I gave roughly that a try, and it didn't help anything. I replaced using GLFW_jll
with
global libglfw_handle = Libdl.dlopen("/usr/lib/libglfw.so")
const libglfw = "libglfw"
and ran the tests, and it gave the normal GPU driver errors.
Again, the problem is that Julia ships a version of libstdc++ that is too old for the GPU drivers and that outdated library is loaded when Julia is launched. For this problem to go away, either the GPU drivers need to link against an older libstdc++ (i.e., build them all in BinaryBuilder) or Julia needs to ship a newer one.
By the way, this issue was opened in 1.3 times, but it's still a problem with 1.5.1.
from glfw.jl.
Ok, so bumping this issue seems to be our only hope:
JuliaLang/julia#37200
JuliaLang/julia#34276
from glfw.jl.
An alternative is building Julia from source, that should use system libstdc++ as far as I know
from glfw.jl.
Just removing julia-1.5.0/lib/julia/libstdc++.so.6 worked for me (Ubuntu 20.04 on a Dell Laptop with Intel graphics) but I hope it will not create problems in other areas..
from glfw.jl.
An alternative is building Julia from source, that should use system libstdc++ as far as I know upside_down_face
I should justify why I was not going system's stdc route. In the past I experienced Julia crashes on not very obvious but basic operations because I was using Debian's package and not official binaries. I opened these as issues and I was told to switch to more stable official binaries which solved the problem. Of course these bugs should have been fixed, but linking against something unofficial is stepping into very untested area.
from glfw.jl.
1.6.1 is now released. Is the issue resolved on that?
from glfw.jl.
I have the same situation as @j-fu on my laptop. Used to work without preloading the stdc++ lib
from glfw.jl.
Hi, I'm on a laptop with an integrated AMD GPU and got this error, first time trying GLMakie: ERROR: GLFWError (VERSION_UNAVAILABLE): GLX: Failed to create context: GLXBadFBConfig
. I tried the advice from comment and it worked (thanks @j-fu!).
My question is: is there a way to make this work in/with VS Code? Should something go in my startup.jl file or .zshrc?
Thanks in advance.
from glfw.jl.
Thanks @j-fu, makes sense, much simpler.
I should note that I was on v1.6.1 and just tried using GLMakie on v1.6.3 and v.1.7.0-rc1, and it worked on both without needing any workaround. Seems like the issue is fixed now for those?
In any case, thanks for your quick response!
from glfw.jl.
See e.g. here for a part of the story behind (IMHO)
from glfw.jl.
It should work the same if you start vscode from the command line and then Julia from vscode. Having it in .zshrc would affect all programs started from the command line, you will need to check if this puts you in trouble with other programs (probably not as they all would use that shared object anyway one cleanly installed system). In startup.jl it would come too late in the startup process.
This did not work for me with VSCode's Julia REPL. What does work is running LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 julia --project
within a vscode terminal, which means you don't get the proper integration.
To try and get the proper integration, I tried to add "julia.persistentSession.shellExecutionArgument": "-c LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 "
to my settings.json
, but this didn't work.
from glfw.jl.
Found this problem using Plots
when trying to make a surface
. Not all that familiar with linux / Ubuntu graphics driver configurations. Am I correct in thinking that this will impact any Julia package (1.7.2) that relies on OpenGL mesa drivers?
The LD_PRELOAD
workaround has helped, but any jupyter notebook I run in VSCode hangs indefinitely when trying to render surface plots.
from glfw.jl.
So for vscode the workarounds are as follows. To get the environment variable into the Julia REPL you can add the following to your settings.json
:
"terminal.integrated.env.linux": {
"LD_PRELOAD": "/usr/lib/x86_64-linux-gnu/libstdc++.so.6"
},
For Jupyter Notebook you could try something along the lines of the following, but I'm not sure (Jupyter notebook works fine for my case since I use CairoMakie when available)
"jupyter.runStartupCommands": [
"import sys; sys.environ['LD_PRELOAD'] = '/usr/lib/x86_64-linux-gnu/libstdc++.so.6'"
]
Once we get a proper battery of workarounds, perhaps we can try and push them to the documentation.
from glfw.jl.
Is it possible to use the preferences
capability from BinaryBuilder.jl
? It seems to be the exact thing that you are doing, but within julia therefore it would overcome the issue with different environments...
from glfw.jl.
I've experienced the same problems on openSUSE Tumbleweed and Julia 1.7.2. After a bit of fiddling around, I've updated Julia to 1.7.3 and removed the .julia/compiled
folder. That did the trick for me and GLMakie works again. Maybe this helps others as well.
Edit: It worked once. After that it threw the same errors as before. I seriously have no idea why that's the case. Anyways, deleting libstdc++.so
and libstdc++.so.6
solved it for me (for now).
from glfw.jl.
Hi, After more experimentation, it turns out steps 2 and 3 shouldn't be necessary (at least it works on my machine wink). Just removing the libstdc++ included with Julia should be enough to stop the linker errors. (Julia will load the system libstdc++ automatically if not provided an alternative).
It helped me to remove the symbolic link indeed, as it was referencing an older version of libstdc++; If you're in Ubuntu, have a look at /usr/lib/x86_64-linux-gnu/libstdc++.so.6
, to see to which version it is pointing to.
from glfw.jl.
I'm getting
export LD_PRELOAD=/usr/lib64/libstdc++.so.6
ERROR: ld.so: object '/usr/lib64/libstdc++.so.6' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib64/libstdc++.so.6' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib64/libstdc++.so.6' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Not sure why the triple error message,
from glfw.jl.
Do you have the file /usr/lib64/libstdc++.so.6
?
from glfw.jl.
Er... no, that would have been a good thing to check.
shell> ls /usr/lib64/
ld-linux-x86-64.so.2@
shell> ls -l /usr/lib64/
total 0
lrwxrwxrwx 1 root root 42 Mar 3 21:54 ld-linux-x86-64.so.2 -> /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2*
This is on pop!_os (ubunty jammy)
from glfw.jl.
@giordano so should I delete that link instead?
from glfw.jl.
Careful with set
! The equivalent of export
in fish is set -x
.
I also doubt that the ENV thing really works as it comes too late in the loading process (see above).
As for the error message: what is your graphics card ?
Which graphics drivers have been installed ?
Do you work on a remote system ?
Here it seems that opengl branches into software rendering (which is done by the MESA library).
BTW there are others with a similar problem...
from glfw.jl.
Careful with set ! The equivalent of export in fish is set -x.
Ah, set
does it permanently?
I actually have this same problem on my laptop and the remote server I use. This makes me think it might be an OS thing, rather than graphics thing, since one is nvidia and one is AMD. Both are running pop!_os (ubuntu jammy)
As for the error message: what is your graphics card ?
- Latptop: nvidia GTX 1650
- Server: Radeon RX 5700 XT
Which graphics drivers have been installed
- Laptop: nvidia driver 515
- Server: not totally sure how to check
Do you work on a remote system ?
- Laptop: no
- Server: yes
from glfw.jl.
Same problem with Debian testing with
glxinfo | grep "OpenGL version"
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.0.5
GLMakie parabola test gives:
fig = lines(x, x.^2; label = "Parabola") gives
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
┌ Warning: GLFW couldn't create an OpenGL window.
│ This likely means, you don't have an OpenGL capable Graphic Card,
│ or you don't have an OpenGL 3.3 capable video driver installed.
│ Have a look at the troubleshooting section in the GLMakie readme:
│ https://github.com/JuliaPlots/Makie.jl/tree/master/GLMakie#troubleshooting-opengl.
└ @ GLMakie ~/.julia/packages/GLMakie/TfSB1/src/screen.jl:339
Error showing value of type Makie.FigureAxisPlot:
ERROR: GLFWError (VERSION_UNAVAILABLE): GLX: Failed to create context: GLXBadFBConfig
with iris_dri.so and and swrast_dri.so present in /usr/lib/x86_64-linux-gnu/dri.
glwgears runs without problems.
export LD_PRELOAD=/usr/lib64/libstdc++.so.6 before calling julia
solves the problem
from glfw.jl.
a precision : julia 1.7.3
GLMakie "0.5.5"
GLFW "3.4.1"
from glfw.jl.
I've run into this problem as well. Pop OS (Ubuntu variant).
from glfw.jl.
Related Issues (20)
- Support Wayland backend HOT 16
- Hang on window close on macOS HOT 2
- Missing MonitorProperties HOT 1
- No GLXFBConfigs returned HOT 18
- Upgrade to 3.3.2 HOT 2
- Consider removing call to `Init` in `__init__` HOT 3
- Segfaulting on GLFW.CreateWindow with Julia v1.5.0 HOT 12
- GLFW.SetWindowUserPointer/GLFW.GetWindowUserPointer HOT 3
- [Vulkan] Creating window surface cannot work on macOS HOT 1
- EGL support? HOT 1
- inaccurate performance counters HOT 1
- Compatability with julia-vscode? HOT 1
- libGL error: failed to load driver: swrast HOT 12
- test fail for Manjaro on Renoir APU HOT 1
- Don't know how to install this?
- TagBot trigger issue HOT 1
- No matching fbConfigs or visuals found HOT 3
- How to add new user data to the window context?
- Going to fullscreen causes a crash on macOS (Apple M1) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glfw.jl.