Comments (18)
Do have the newest version of GLWindow and GLVisualize? If yes, do have a code sample to reproduce this?
from glvisualize.jl.
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.
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.
i'm on windows so maybe there is some problem with the UAC?
from glvisualize.jl.
Could you try:
using GLFW
monitor=GLFW.GetPrimaryMonitor()
GLFW.GetMonitorName(monitor)
?
from glvisualize.jl.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Huh... so that's my only guess than:
http://stackoverflow.com/questions/35486681/glfwgetprimarymonitor-is-returning-0/35519919
from glvisualize.jl.
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.
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.
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)
- How to use rotations?
- Make deleting an object easier by returning the output of extract_renderable from _view HOT 3
- 1) Orthographic camera example, 2) Default camera too close, and 3) Custom camera disrupts zooming and rotation HOT 7
- Scoping error with `filter` function in camera.jl when running GLPlot HOT 7
- cubecamera error HOT 8
- line_segment.vert will not link HOT 8
- Google Summer of Code 2018
- The glvisualize.com web site is gone (domain expired) HOT 4
- Color of an object changing in time HOT 3
- FFmpeg-converted video not showing properly in some of the standard players HOT 2
- Test failed on volume.jl, warnings in build HOT 4
- Doc examples out of date?
- Dynamically adjust the number of rendered objects HOT 6
- test errors on MacOS HOT 5
- ERROR: GLVisualize test HOT 2
- Julia 0.7 / 1.0 HOT 9
- ERROR: Unsatisfiable requirements detected for package GLVisualiz HOT 1
- Info about upcoming removal of packages in the General registry
- Unsatisfiable requirements with julia 1.2.0 on Ubuntu 18.04 HOT 1
- More volume rendering algorithms HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glvisualize.jl.