-
Notifications
You must be signed in to change notification settings - Fork 36
GLVisualize.glscreen() crashes Julia client #60
Comments
Do have the newest version of GLWindow and GLVisualize? If yes, do have a code sample to reproduce this? |
minimal working sample:
well thinking about the reasons i might ask whether it's because i use Julia 0.5? |
I use Julia 0.5:
and everything works fine |
i'm on windows so maybe there is some problem with the UAC? |
Could you try: using GLFW
monitor=GLFW.GetPrimaryMonitor()
GLFW.GetMonitorName(monitor) ? |
the last call crashes in the same exception julia> GLFW.GetMonitorName(monitor)
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x61554600 -- glfwGetMonitorName at C:\WINDOWS\SYSTEM32\glfw3.DLL (unknown line)
while loading no file, in expression starting on line 0
glfwGetMonitorName at C:\WINDOWS\SYSTEM32\glfw3.DLL (unknown line)
GetMonitorName at C:\Users\necka\.julia\v0.5\GLFW\src\glfw3.jl:325
jlcall_GetMonitorName_1678 at (unknown line)
jl_apply_generic at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
jl_interpret_toplevel_expr at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
jl_interpret_toplevel_thunk_with at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
jl_eval_with_compiler_p at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
jl_f_tuple at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
eval at boot.jl:263
jl_apply_generic at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
eval_user_input at REPL.jl:3
jlcall_eval_user_input_1205 at (unknown line)
jl_apply_generic at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
anonymous at REPL.jl:92
jl_switchto at C:\Program Files\Julia\bin\libjulia.dll (unknown line) |
Okay so your |
i haven't done before but now i did and now i'm getting an even more weird error (this time the error itself says in an unknown function): julia> using GLFW
julia> monitor=GLFW.GetPrimaryMonitor()
Monitor(Ptr{Void} @0x0000000000000000)
julia> GLFW.GetMonitorName(monitor)
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x61554600 -- unknown function (ip: 0000000061554600)
while loading no file, in expression starting on line 0
glfwGetMonitorName at (unknown line)
GetMonitorName at C:\Users\necka\.julia\v0.5\GLFW\src\glfw3.jl:325
jlcall_GetMonitorName_1727 at (unknown line)
jl_apply_generic at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
jl_interpret_toplevel_expr at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
jl_interpret_toplevel_thunk_with at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
jl_eval_with_compiler_p at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
jl_f_tuple at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
eval at boot.jl:263
jl_apply_generic at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
eval_user_input at REPL.jl:3
jlcall_eval_user_input_1205 at (unknown line)
jl_apply_generic at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
anonymous at REPL.jl:92
jl_switchto at C:\Program Files\Julia\bin\libjulia.dll (unknown line) |
huh... now that I look at the code in glfw3.jl:325, this might as well some problem with ccall. ccall( (:glfwGetMonitorName, GLFW.lib), Ptr{Cchar}, (GLFW.Monitor,), monitor) |
yeah it's erroring: julia> using GLFW
julia> monitor=GLFW.GetPrimaryMonitor()
Monitor(Ptr{Void} @0x0000000000000000)
julia> ccall( (:glfwGetMonitorName, GLFW.lib), Ptr{Cchar}, (GLFW.Monitor,), monitor)
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x61554600 -- unknown function (ip: 0000000061554600)
while loading no file, in expression starting on line 0
glfwGetMonitorName at (unknown line)
anonymous at essentials.jl:114
jl_eval_with_compiler_p at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
jl_f_tuple at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
eval at boot.jl:263
jl_apply_generic at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
eval_user_input at REPL.jl:3
jlcall_eval_user_input_1204 at (unknown line)
jl_apply_generic at C:\Program Files\Julia\bin\libjulia.dll (unknown line)
anonymous at REPL.jl:92
jl_switchto at C:\Program Files\Julia\bin\libjulia.dll (unknown line) |
oh... the first one is already null ... This is why people preach about proper error checks! |
I've a laptop so it's some kind of built-in monitor (but a plug to connect to my eyes would be nice too :D) |
hmm... So this could happen if |
Still null :/
|
Huh... so that's my only guess than: |
so i uninstalled my intel gpu since there isn't any dedicated entry for a monitor Tested one of the examples. Everything works fine now (except some performance problems...) P.S. I gonna close the related issue in GLWindow ... |
uh, I guess this would be much rather a driver issue... Usually you can tell your driver settings what GPU to use. |
ok then finally thanks for supporting to resolve my individual problems and i'm feeling a bit ashamed for requiring so much of your time that could be used for further improving the whole julia environment x) |
When trying to run GLVisualize.glscreen() the whole Julia client hangs up. Since the exception stated to file a bug report I came here hoping to get a fix for this.
(I got a similar error when using GLWindow (JuliaGL/GLWindow.jl#27))
The text was updated successfully, but these errors were encountered: