Git Product home page Git Product logo

Comments (18)

SimonDanisch avatar SimonDanisch commented on June 25, 2024

Do have the newest version of GLWindow and GLVisualize? If yes, do have a code sample to reproduce this?

from glvisualize.jl.

rapus95 avatar rapus95 commented on June 25, 2024

minimal working sample:

using GLWindow, GLVisualize
GLVisualize.glscreen()

well thinking about the reasons i might ask whether it's because i use Julia 0.5?
Version 0.5.0-dev+1526 (2015-11-30 04:16 UTC)
Commit b775873 (88 days old master)

from glvisualize.jl.

blegat avatar blegat commented on June 25, 2024

I use Julia 0.5:

Version 0.5.0-dev+1491 (2015-11-27 16:54 UTC)
Commit 41fb1ba (90 days old master)
x86_64-linux-gnu

and everything works fine

from glvisualize.jl.

rapus95 avatar rapus95 commented on June 25, 2024

i'm on windows so maybe there is some problem with the UAC?

from glvisualize.jl.

SimonDanisch avatar SimonDanisch commented on June 25, 2024

Could you try:

using GLFW
monitor=GLFW.GetPrimaryMonitor()
GLFW.GetMonitorName(monitor)

?

from glvisualize.jl.

rapus95 avatar rapus95 commented on June 25, 2024

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)

from glvisualize.jl.

SimonDanisch avatar SimonDanisch commented on June 25, 2024

Okay so your GLFW is broken in some way...
You said something like "I installed the newest version" .... Did you try to just let GLFW install it with Pkg.build("GLFW")?

from glvisualize.jl.

rapus95 avatar rapus95 commented on June 25, 2024

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)

from glvisualize.jl.

SimonDanisch avatar SimonDanisch commented on June 25, 2024

huh... now that I look at the code in glfw3.jl:325, this might as well some problem with ccall.
Can you try:

ccall( (:glfwGetMonitorName, GLFW.lib), Ptr{Cchar}, (GLFW.Monitor,), monitor)

from glvisualize.jl.

rapus95 avatar rapus95 commented on June 25, 2024

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)

from glvisualize.jl.

SimonDanisch avatar SimonDanisch commented on June 25, 2024

oh... the first one is already null ... This is why people preach about proper error checks!
You don't happen to have no monitor? :D

from glvisualize.jl.

rapus95 avatar rapus95 commented on June 25, 2024

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)

from glvisualize.jl.

SimonDanisch avatar SimonDanisch commented on June 25, 2024

hmm... So this could happen if GLFW.Init() wasn't called... But this should have been called in the __init__() of GLFW... Can you try to put it before the call nevertheless?

from glvisualize.jl.

rapus95 avatar rapus95 commented on June 25, 2024

Still null :/
Btw i'm having Nivida Optimus (Nvidia GPU & Intel GPU at once while Nvidia data is passed through the intel GPU

julia> using GLFW

julia> GLFW.Init()
true

julia> monitor=GLFW.GetPrimaryMonitor()
Monitor(Ptr{Void} @0x0000000000000000)

from glvisualize.jl.

SimonDanisch avatar SimonDanisch commented on June 25, 2024

Huh... so that's my only guess than:
http://stackoverflow.com/questions/35486681/glfwgetprimarymonitor-is-returning-0/35519919

from glvisualize.jl.

rapus95 avatar rapus95 commented on June 25, 2024

so i uninstalled my intel gpu since there isn't any dedicated entry for a monitor
(->800x600 resolution) but after some mins windows recognized it back and now primaryMonitor atleast doesn't return null anymore :D

Tested one of the examples. Everything works fine now (except some performance problems...)
So is there a way to specify what gpu to use?

P.S. I gonna close the related issue in GLWindow ...

from glvisualize.jl.

SimonDanisch avatar SimonDanisch commented on June 25, 2024

uh, I guess this would be much rather a driver issue... Usually you can tell your driver settings what GPU to use.
Since GLVisualize won't work with multiple GPU's anytime soon, this shouldn't be at all handled on the GLVisualize level.

from glvisualize.jl.

rapus95 avatar rapus95 commented on June 25, 2024

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)

from glvisualize.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.