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

no method matching GLMakie.Screen #143

Closed
FaresX opened this issue Sep 6, 2024 · 2 comments
Closed

no method matching GLMakie.Screen #143

FaresX opened this issue Sep 6, 2024 · 2 comments

Comments

@FaresX
Copy link

FaresX commented Sep 6, 2024

Do I need a specific version of GLMakie?

┌ Error: Error in CImGui GlfwOpenGL3 renderloop!
│   exception =
│    MethodError: no method matching GLMakie.Screen(::MakieIntegration.ImMakieWindow, ::GLMakie.GLAbstraction.ShaderCache, ::GLMakie.GLFramebuffer, ::Nothing, ::Bool, ::Nothing, ::Dict{WeakRef, UInt16}, ::Vector{Tuple{UInt16, Scene}}, ::Vector{Tuple{Int64, UInt16, GLMakie.GLAbstraction.RenderObject}}, ::Vector{GLMakie.PostProcessor}, ::Dict{UInt64, GLMakie.GLAbstraction.RenderObject}, ::Dict{UInt32, AbstractPlot}, ::Bool)
│
│    Closest candidates are:
│      GLMakie.Screen(::GLWindow, ::Bool, ::GLMakie.GLAbstraction.ShaderCache, ::GLMakie.GLFramebuffer, ::Union{Nothing, GLMakie.ScreenConfig}, ::Bool, ::Union{Nothing, Task}, ::Dict{WeakRef, UInt16}, ::Vector{Tuple{UInt16, Scene}}, ::Vector{Tuple{Int64, UInt16, GLMakie.GLAbstraction.RenderObject}}, ::Vector{GLMakie.PostProcessor}, ::Dict{UInt64, GLMakie.GLAbstraction.RenderObject}, ::Dict{UInt32, AbstractPlot}, ::Bool) where GLWindow
│       @ GLMakie C:\Users\22112\.julia\packages\GLMakie\GK1PF\src\screen.jl:189
│
│    Stacktrace:
│      [1] MakieFigure(title_id::String, f::Figure; auto_resize_x::Bool, auto_resize_y::Bool, tooltip::Bool, stats::Bool)
│        @ MakieIntegration C:\Users\22112\.julia\packages\CImGui\1Jn3c\ext\MakieIntegration.jl:175
│      [2] (::var"#6#9"{var"#live_data#8"{Axis}, Observable{Vector{Point{2, Float32}}}, Axis, Scene, Figure})()
│        @ Main C:\Users\22112\.julia\packages\CImGui\1Jn3c\examples\makie_demo.jl:91
│      [3] #invokelatest#2
│        @ .\essentials.jl:892 [inlined]
│      [4] invokelatest
│        @ .\essentials.jl:889 [inlined]
│      [5] _render(ui::var"#6#9"{var"#live_data#8"{Axis}, Observable{Vector{Point{2, Float32}}}, Axis, Scene, Figure}, ctx::Ptr{CImGui.lib.ImGuiContext}, ::Val{:GlfwOpenGL3}; hotloading::Bool, on_exit::Nothing, clear_color::Vector{Float32},
 window_size::Tuple{Int64, Int64}, window_title::String, engine::Nothing, opengl_version::VersionNumber)
│        @ GlfwOpenGLBackend C:\Users\22112\.julia\packages\CImGui\1Jn3c\ext\GlfwOpenGLBackend.jl:107
│      [6] render(::Function, ::Vararg{Any}; kwargs::@Kwargs{engine::Nothing, window_size::Tuple{Int64, Int64}, window_title::String, opengl_version::VersionNumber})
│        @ CImGui C:\Users\22112\.julia\packages\CImGui\1Jn3c\src\CImGui.jl:181
│      [7] render
│        @ C:\Users\22112\.julia\packages\CImGui\1Jn3c\src\CImGui.jl:179 [inlined]
│      [8] makie_demo(; engine::Nothing)
│        @ Main C:\Users\22112\.julia\packages\CImGui\1Jn3c\examples\makie_demo.jl:70
│      [9] makie_demo()
│        @ Main C:\Users\22112\.julia\packages\CImGui\1Jn3c\examples\makie_demo.jl:30
│     [10] top-level scope
│        @ REPL[3]:1
│     [11] eval
│        @ .\boot.jl:385 [inlined]
│     [12] eval_user_input(ast::Any, backend::REPL.REPLBackend, mod::Module)
│        @ REPL C:\Users\22112\.julia\juliaup\julia-1.10.5+0.x64.w64.mingw32\share\julia\stdlib\v1.10\REPL\src\REPL.jl:150
│     [13] repl_backend_loop(backend::REPL.REPLBackend, get_module::Function)
│        @ REPL C:\Users\22112\.julia\juliaup\julia-1.10.5+0.x64.w64.mingw32\share\julia\stdlib\v1.10\REPL\src\REPL.jl:246
│     [14] start_repl_backend(backend::REPL.REPLBackend, consumer::Any; get_module::Function)
│        @ REPL C:\Users\22112\.julia\juliaup\julia-1.10.5+0.x64.w64.mingw32\share\julia\stdlib\v1.10\REPL\src\REPL.jl:231
│     [15] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool, backend::Any)
│        @ REPL C:\Users\22112\.julia\juliaup\julia-1.10.5+0.x64.w64.mingw32\share\julia\stdlib\v1.10\REPL\src\REPL.jl:389
│     [16] run_repl(repl::REPL.AbstractREPL, consumer::Any)
│        @ REPL C:\Users\22112\.julia\juliaup\julia-1.10.5+0.x64.w64.mingw32\share\julia\stdlib\v1.10\REPL\src\REPL.jl:375
│     [17] (::Base.var"#1013#1015"{Bool, Bool, Bool})(REPL::Module)
│        @ Base .\client.jl:432
│     [18] #invokelatest#2
│        @ .\essentials.jl:892 [inlined]
│     [19] invokelatest
│        @ .\essentials.jl:889 [inlined]
│     [20] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
│        @ Base .\client.jl:416
│     [21] exec_options(opts::Base.JLOptions)
│        @ Base .\client.jl:333
│     [22] _start()
│        @ Base .\client.jl:552
└ @ GlfwOpenGLBackend C:\Users\22112\.julia\packages\CImGui\1Jn3c\ext\GlfwOpenGLBackend.jl:147
@JamesWrigley
Copy link
Member

JamesWrigley commented Sep 6, 2024

Yes, the highest compatible version with CImGui v2 is GLMakie 0.10.5. Support for later versions will be coming in a week or two with CImGui v3 (#142).

@JamesWrigley
Copy link
Member

Closing this since v3 is out now.

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