# MakieGL fails after update

**URL:** <https://discourse.julialang.org/t/makiegl-fails-after-update/59978>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [April 25, 2021, 9:05am UTC](https://discourse.julialang.org/t/makiegl-fails-after-update/59978 "2021-04-25T09:05:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [April 25, 2021, 9:05am UTC](https://discourse.julialang.org/t/makiegl-fails-after-update/59978/1 "2021-04-25T09:05:12Z")

</div>

I am using MakieGL on Ubuntu 18.04. It used to work fine, but  
after an update it doesn’t work any more.

I updated:  
Julia to 1.6.1  
MakieGL to latest stable version  
and Ubuntu updated the nvidea graphics drivers. The new drivers  
did not work at all, so I re-selected the old drivers  
(version 340.108).

Now Makie fails. Example code:

```julia
# shell> wget https://github.com/libigl/libigl-tutorial-data/raw/master/bumpy-cube.obj

using Makie, FileIO

shape = load("bumpy-cube.obj")
im1 = mesh(shape,color=:red,shading=true)

```

Error message:

```julia
libGL error: No matching fbConfigs or visuals found
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/GLMakie.jl#troubleshooting-opengl.

```

Other opengl apps work fine, like FreeCAD, glxgears and glxspheres.

```julia
ufechner@TUD277255:~$ glxinfo | grep "OpenGL version"
OpenGL version string: 4.4.0 NVIDIA 340.108

```

Similar issue (unsolved): [libGL error: failed to load driver: swrast · Issue #211 · JuliaGL/GLFW.jl · GitHub](https://github.com/JuliaGL/GLFW.jl/issues/211)

Any idea?

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [April 25, 2021, 9:08am UTC](https://discourse.julialang.org/t/makiegl-fails-after-update/59978/2 "2021-04-25T09:08:16Z")

</div>

You should try to google those libgl errors and see if there is a fix… They’re not Julia or Makie specific 😉

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [April 25, 2021, 9:14am UTC](https://discourse.julialang.org/t/makiegl-fails-after-update/59978/3 "2021-04-25T09:14:04Z")

</div>

Well, they are Makie specific because they appear only when using Makie, not with other OpenGL apps…

I found this link for example, but it doesn’t help:  
[http://www.codewhirl.com/2016/01/ubuntu-libgl-error-failed-to-load-driver-swrast/](http://www.codewhirl.com/2016/01/ubuntu-libgl-error-failed-to-load-driver-swrast/)

It might be related with links to curtain libGL libraries. On my machine I can see:

```julia
ufechner@TUD277255:~$ ldconfig -p | grep libGL.so.1
	libGL.so.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libGL.so.1
	libGL.so.1 (libc6) => /usr/lib/i386-linux-gnu/libGL.so.1

```

What I find strange: Julia also installs these libraries:

```julia
/home/ufechner/.julia/artifacts/a84cc58d5161b950f268bb562e105bbbf4d6004a/lib/libGL.so.1
/home/ufechner/.julia/artifacts/a84cc58d5161b950f268bb562e105bbbf4d6004a/lib/libGL.so.1.7.0

```

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [April 25, 2021, 9:15am UTC](https://discourse.julialang.org/t/makiegl-fails-after-update/59978/4 "2021-04-25T09:15:44Z")

</div>

Well, makie worked before as you said, so it doesn’t do anything wrong in general 😉  
It’s likely, that the other apps don’t require OpenGL 3.3, which may trigger different bugs in the os driver integration

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [April 25, 2021, 9:21am UTC](https://discourse.julialang.org/t/makiegl-fails-after-update/59978/5 "2021-04-25T09:21:08Z")

</div>

Yeah, maybe the linking has changed, so in that sense it may be julia and Linux related 😉 what I meant to say is, that there is likely not much that can be done in Makie, since the error is thrown in GLFW + Libgl 😉

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [April 25, 2021, 9:22am UTC](https://discourse.julialang.org/t/makiegl-fails-after-update/59978/6 "2021-04-25T09:22:56Z")

</div>

Which package is installing

```julia
.julia/artifacts/a84cc58d5161b950f268bb562e105bbbf4d6004a/lib/libGL.so.1

```

?

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [April 25, 2021, 9:23am UTC](https://discourse.julialang.org/t/makiegl-fails-after-update/59978/7 "2021-04-25T09:23:48Z")

</div>

I guess that gets raked in by GLFW.jl

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [April 25, 2021, 9:30am UTC](https://discourse.julialang.org/t/makiegl-fails-after-update/59978/8 "2021-04-25T09:30:53Z")

</div>

Building GLFW succeeds, running it does not succeed. How can I find out which libraries are actually beeing used if I run:

```julia
julia> using GLFW; GLFW.Window()
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
ERROR: GLFWError (VERSION_UNAVAILABLE): GLX: Failed to create context: BadMatch
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, Int64}}, 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] GLFW.Window()
   @ GLFW ~/.julia/packages/GLFW/BWxfF/src/glfw3.jl:316
 [5] top-level scope
   @ REPL[2]:1

julia>

```

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [April 25, 2021, 10:20am UTC](https://discourse.julialang.org/t/makiegl-fails-after-update/59978/9 "2021-04-25T10:20:23Z")

</div>

I created an issue: [https://github.com/JuliaGL/GLFW.jl/issues/218](https://github.com/JuliaGL/GLFW.jl/issues/218)
