Comments (7)
Indeed switching from glfw-wayland to glfw-x11 on arch linux solved the problem. Thanks!
from glfw.jl.
Do you have a display attached? Have you installed the video drivers?
I see, that GLFW only has experimental Wayland support: http://www.glfw.org/docs/latest/news.html
So maybe this is a bug with GLFW itself.
from glfw.jl.
yes, a display is attached and mesa is installed.
from glfw.jl.
Do you have a GPU? Mesa alone just gives you software mode, which is not awfully well support ;)
from glfw.jl.
I got around that error by installing weston and then run Weston inside a running X session
$ weston
This starts a Weston Compositor screen 0 window.
While leaving this open, I get the following error, when I run julia> Pkg.test("GLVisualize")
ERROR: LoadError: LoadError: GLFWError (PLATFORM_ERROR): Wayland: Focusing a window requires user interaction
Stacktrace:
[1] handle_error(::Int32, ::String) at /home/zorn/.julia/v0.6/GLFW/src/GLFW.jl:35
[2] ##ErrorCallbackWrapper#657(::Int32, ::Cstring) at /home/zorn/.julia/v0.6/GLFW/src/callback.jl:50
[3] CreateWindow(::Int64, ::Int64, ::String, ::GLFW.Monitor, ::GLFW.Window) at /home/zorn/.julia/v0.6/GLFW/src/glfw3.jl:351
[4] #create_glcontext#46(::Tuple{Int64,Int64}, ::Bool, ::Int64, ::Int64, ::Array{Tuple{UInt32,Int64},1}, ::Array{Tuple{UInt32,Integer},1}, ::Bool, ::Bool, ::GLWindow.#create_glcontext, ::String) at /home/zorn/.julia/v0.6/GLWindow/src/screen.jl:198
[5] (::GLWindow.#kw##create_glcontext)(::Array{Any,1}, ::GLWindow.#create_glcontext, ::String) at ./<missing>:0
[6] #Screen#47(::Tuple{Int64,Int64}, ::Bool, ::Int64, ::Int64, ::Array{Tuple{UInt32,Int64},1}, ::Array{Tuple{UInt32,Integer},1}, ::Array{Function,1}, ::Bool, ::ColorTypes.RGBA{FixedPointNumbers.Normed{UInt8,8}}, ::Tuple{Float32,ColorTypes.RGBA{FixedPointNumbers.Normed{UInt8,8}}}, ::Bool, ::Bool, ::Bool, ::Type{T} where T, ::String) at /home/zorn/.julia/v0.6/GLWindow/src/screen.jl:237
[7] (::Core.#kw#Type)(::Array{Any,1}, ::Type{GLWindow.Screen}, ::String) at ./<missing>:0
[8] #glscreen#69(::Tuple{Int64,Int64}, ::Bool, ::Bool, ::ColorTypes.RGBA{FixedPointNumbers.Normed{UInt8,8}}, ::Tuple{Float32,ColorTypes.RGBA{FixedPointNumbers.Normed{UInt8,8}}}, ::Bool, ::Bool, ::Bool, ::GLVisualize.#glscreen, ::String) at /home/zorn/.julia/v0.6/GLVisualize/src/renderloop.jl:75
[9] (::GLVisualize.#kw##glscreen)(::Array{Any,1}, ::GLVisualize.#glscreen, ::String) at ./<missing>:0
[10] (::Core.#kw#Type)(::Array{Any,1}, ::Type{ExampleRunner.RunnerConfig}) at ./<missing>:0
[11] include_from_node1(::String) at ./loading.jl:569
while loading /home/zorn/.julia/v0.6/GLVisualize/test/test_interactive.jl, in expression starting on line 30
while loading /home/zorn/.julia/v0.6/GLVisualize/test/runtests.jl, in expression starting on line 12
from glfw.jl.
Switching to XOrg and installing the xorg variant of the package solves this.
libglfw3/artful 3.2.1-1 amd64 [Installed] libglfw3-dev/artful,now 3.2.1-1 amd64 [Installed]
There is also a wayland option for libglfw3 v 3.2.1-1
, but that does not work with GLFW.jl.
This is using an Nvidia 1050TI
from glfw.jl.
hi, guys
I had the same error.
After some digging I found I had installed libglfw3-wayland. I've removed it and everything became to work.
Hope this will help to someone
from glfw.jl.
Related Issues (20)
- Consider removing call to `Init` in `__init__` HOT 3
- Segfaulting on GLFW.CreateWindow with Julia v1.5.0 HOT 12
- GLFW.SetWindowUserPointer/GLFW.GetWindowUserPointer HOT 3
- [Vulkan] Creating window surface cannot work on macOS HOT 1
- EGL support? HOT 1
- inaccurate performance counters HOT 1
- Compatability with julia-vscode? HOT 1
- libGL error: failed to load driver: swrast HOT 12
- test fail for Manjaro on Renoir APU HOT 1
- Don't know how to install this?
- TagBot trigger issue HOT 1
- No matching fbConfigs or visuals found HOT 3
- How to add new user data to the window context?
- Going to fullscreen causes a crash on macOS (Apple M1) HOT 1
- Please replace deprecated Makie.primary_resolution() with GLFW.jl cross-platform function
- GLFWError (API_UNAVAILABLE): WGL: The driver does not appear to support OpenGL HOT 1
- GL dependencies kill CI capacity HOT 2
- GLFW crashes entire julia session after re-attaching in tmux HOT 2
- unable to load GLMakie HOT 2
- GLFW couldn't create an OpenGL window. HOT 8
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 glfw.jl.