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

GLFW warning after closing julia #4707

Open
felixcremer opened this issue Jan 7, 2025 · 1 comment
Open

GLFW warning after closing julia #4707

felixcremer opened this issue Jan 7, 2025 · 1 comment
Labels
bug GLMakie This relates to GLMakie.jl, the OpenGL backend for Makie.

Comments

@felixcremer
Copy link
Contributor

I plotted some DimArrays in GLMakie and after closing the julia session I got the following error:

julia> 
┌ Warning: error closing screen
│   exception =
│    GLFWError (NOT_INITIALIZED): The GLFW library is not initialized
│    Stacktrace:
│     [1] _ErrorCallbackWrapper(code::Int32, description::Cstring)
│       @ GLFW ~/.julia/packages/GLFW/wmoTL/src/callback.jl:43
│     [2] HideWindow
│       @ ~/.julia/packages/GLFW/wmoTL/src/glfw3.jl:686 [inlined]
│     [3] set_visibility!
│       @ ~/.julia/packages/GLFW/wmoTL/src/glfw3.jl:436 [inlined]
│     [4] set_screen_visibility!
│       @ ~/.julia/packages/GLMakie/QOOnq/src/screen.jl:436 [inlined]
│     [5] set_screen_visibility!
│       @ ~/.julia/packages/GLMakie/QOOnq/src/screen.jl:431 [inlined]
│     [6] close(screen::GLMakie.Screen{GLFW.Window}; reuse::Bool)
│       @ GLMakie ~/.julia/packages/GLMakie/QOOnq/src/screen.jl:663
│     [7] close
│       @ ~/.julia/packages/GLMakie/QOOnq/src/screen.jl:661 [inlined]
│     [8] renderloop(screen::GLMakie.Screen{GLFW.Window})
│       @ GLMakie ~/.julia/packages/GLMakie/QOOnq/src/screen.jl:1025
│     [9] (::GLMakie.var"#72#73"{GLMakie.Screen{GLFW.Window}})()
│       @ GLMakie ~/.julia/packages/GLMakie/QOOnq/src/screen.jl:870
└ @ GLMakie ~/.julia/packages/GLMakie/QOOnq/src/screen.jl:1027
@felixcremer felixcremer added the bug label Jan 7, 2025
@asinghvi17 asinghvi17 added the GLMakie This relates to GLMakie.jl, the OpenGL backend for Makie. label Jan 13, 2025
@ffreyer
Copy link
Collaborator

ffreyer commented Jan 18, 2025

Maybe fixed by #4699, but probably not... I would guess this happened because GLFW's atexit() ran before object destructors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug GLMakie This relates to GLMakie.jl, the OpenGL backend for Makie.
Projects
None yet
Development

No branches or pull requests

3 participants