Giter VIP home page Giter VIP logo

Comments (7)

zsoerenm avatar zsoerenm commented on May 26, 2024 5

Indeed switching from glfw-wayland to glfw-x11 on arch linux solved the problem. Thanks!

from glfw.jl.

SimonDanisch avatar SimonDanisch commented on May 26, 2024

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.

zsoerenm avatar zsoerenm commented on May 26, 2024

yes, a display is attached and mesa is installed.

from glfw.jl.

SimonDanisch avatar SimonDanisch commented on May 26, 2024

Do you have a GPU? Mesa alone just gives you software mode, which is not awfully well support ;)

from glfw.jl.

zsoerenm avatar zsoerenm commented on May 26, 2024

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.

AShedko avatar AShedko commented on May 26, 2024

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.

beldmitr avatar beldmitr commented on May 26, 2024

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)

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.