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

TypeError in functionloading.jl via vsCode Debug Run #938

Closed
bc0n opened this issue May 5, 2021 · 1 comment
Closed

TypeError in functionloading.jl via vsCode Debug Run #938

bc0n opened this issue May 5, 2021 · 1 comment

Comments

@bc0n
Copy link
Contributor

bc0n commented May 5, 2021

As in #937, a TypeError is tripped when running a basic script from vsCode's Debug Run (F5). The TypeError is not triggered during a non-debug (Ctrl+F5) run.

plotting.jl is open in the editor,

using GLMakie
function test()
    x = LinRange(0, 10, 100)
    fig, ax, sco = scatter(x, sin.(x), color = :red, markersize = 5)
    display(fig)
end
@time test()
Exception has occurred: TypeError
TypeError: in typeassert, expected Type, got a value of type Ptr{Nothing}

Stacktrace:
  [1] glGenFramebuffers(n::Int64, framebuffers::Vector{UInt32})
    @ ModernGL ~/.julia/packages/ModernGL/rVuW2/src/functionloading.jl:68
  [2] glGenFramebuffers()
    @ GLMakie.GLAbstraction ~/.julia/packages/GLMakie/Iybut/src/GLAbstraction/GLExtendedFunctions.jl:139
  [3] GLMakie.GLFramebuffer(fb_size::Tuple{Int64, Int64})
    @ GLMakie ~/.julia/packages/GLMakie/Iybut/src/glwindow.jl:30
  [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/Iybut/src/screen.jl:343
  [5] GLMakie.Screen()
    @ GLMakie ~/.julia/packages/GLMakie/Iybut/src/screen.jl:289
  [6] global_gl_screen()
    @ GLMakie ~/.julia/packages/GLMakie/Iybut/src/screen.jl:235
  [7] global_gl_screen(resolution::Tuple{Int64, Int64}, visibility::Bool, tries::Int64)
    @ GLMakie ~/.julia/packages/GLMakie/Iybut/src/screen.jl:382
  [8] global_gl_screen(resolution::Tuple{Int64, Int64}, visibility::Bool)
    @ GLMakie ~/.julia/packages/GLMakie/Iybut/src/screen.jl:381
  [9] backend_display(#unused#::GLMakie.GLBackend, scene::Scene)
    @ GLMakie ~/.julia/packages/GLMakie/Iybut/src/display.jl:2
 [10] display(scene::Scene)
    @ AbstractPlotting ~/.julia/packages/AbstractPlotting/Dnsku/src/display.jl:61
 [11] display(fig::Figure)
    @ AbstractPlotting ~/.julia/packages/AbstractPlotting/Dnsku/src/display.jl:51
 [12] test()
    @ Main ~/sync/reference/julia/plotting.jl:13
 [13] top-level scope
    @ timing.jl:210

Linux Min 19 Cinnamon 3.8.9 x64
vsCode 1.55.2
Julia 1.6.0
Python 3.6.9 x64
Ryzen 5 1600x six core desktop with 32 gb ram
glxinfo says: OpenGL version string: 4.6.0 NVIDIA 450.119.03
pkg> status:
Status ~/.julia/environments/v1.6/Project.toml
[13f3f980] CairoMakie v0.4.2
[5ae59095] Colors v0.12.6
[1fa38f19] Format v1.3.0
[e9467ef8] GLMakie v0.2.4
[c91e804a] Gadfly v1.3.2
[5c1252a2] GeometryBasics v0.3.12
[7073ff75] IJulia v1.23.2
[2b0e0bc5] LanguageServer v3.2.0
[438e738f] PyCall v1.92.3
[cf896787] SymbolServer v5.1.1
[0c5d862f] Symbolics v0.1.11
[1986cc42] Unitful v1.6.0
[ddb6d928] YAML v0.4.6
[de0858da] Printf
[9abbd945] Profile

From #937, ModernGL is not installed (so I can't "using ModernGL") but it is at .julia/packages/ModernGL, with .julia/packages/ModernGL/rVuW2/Project.toml listing version 1.1.2.

@SimonDanisch
Copy link
Member

This looks like a bug in JuliaInterpreter... I opened an issue: JuliaDebug/JuliaInterpreter.jl#479

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