Skip to content
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

GLMakie plots only part of the data #2413

Closed
zsoerenm opened this issue Nov 10, 2022 · 1 comment
Closed

GLMakie plots only part of the data #2413

zsoerenm opened this issue Nov 10, 2022 · 1 comment

Comments

@zsoerenm
Copy link

Consider this MWE

using GLMakie
fig = Figure()
lines(fig[1, 1], 0:99, randn(100))

For a very short time the whole data is plotted correctly, but then most of the data disappears and the output looks like this:
grafik
I made a little video to demonstrate this with different random data:
simplescreenrecorder-2022-11-10_14 29 56
Note that I need to preload libstdc++.so.6:

LD_PRELOAD=/usr/lib/libstdc++.so.6 julia --project

Otherwise I get errors like:

julia> f = Figure()
libGL error: MESA-LOADER: failed to open radeonsi: /usr/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open radeonsi: /usr/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/dri/radeonsi_dri.so) (search paths /usr/lib/dri, suffix _dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast: /usr/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/dri/swrast_dri.so) (search paths /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/rXGL8/src/screen.jl:336
Error showing value of type Figure:
ERROR: GLFWError (VERSION_UNAVAILABLE): GLX: Failed to create context: GLXBadFBConfig

However, I'm unsure if this is the root cause of the problem.
Plotting using plot works fine (with libstdc++.so.6 preloaded):

using GLMakie
fig = Figure()
plot(fig[1, 1], 0:99, randn(100))

grafik

@SimonDanisch
Copy link
Member

Duplicate of #1460

@SimonDanisch SimonDanisch marked this as a duplicate of #1460 Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants