Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLFW couldn't create an OpenGL window #1914

Closed
francispoulin opened this issue May 11, 2022 · 5 comments
Closed

GLFW couldn't create an OpenGL window #1914

francispoulin opened this issue May 11, 2022 · 5 comments

Comments

@francispoulin
Copy link

I am running Juliav1.6.6 and have installed GMakie v0.6.0 and when I try running a simple example I get the following error.

But I checked my glxinfo and found there is something.

OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.0.1

Can someone help me figure out how to fix this?

 Warning:     GLFW couldn't create an OpenGL window.
│     This likely means, you don't have an OpenGL capable Graphic Card,
│     or you don't have an OpenGL 3.3 capable video driver installed.
│     Have a look at the troubleshooting section in the GLMakie readme:
│     https://github.com/JuliaPlots/Makie.jl/tree/master/GLMakie#troubleshooting-opengl.
└ @ GLMakie ~/.julia/packages/GLMakie/XG7Hm/src/screen.jl:381
Error showing value of type Makie.FigureAxisPlot:
ERROR: GLFWError (VERSION_UNAVAILABLE): GLX: Failed to create context: GLXBadFBConfig
@SimonDanisch
Copy link
Member

What OS and GPU is this? Anything unusual about the setup, e.g. remote?

@KronosTheLate
Copy link
Contributor

I get the same error, and I am also running OpenGL 4.6.

Full error
@v1.8) pkg> precompile
Precompiling project...
  ✗ GLMakie
  0 dependencies successfully precompiled in 36 seconds. 336 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

GLMakie [e9467ef8-e4e7-5192-8a1a-b1aee30e663a]

Failed to precompile GLMakie [e9467ef8-e4e7-5192-8a1a-b1aee30e663a] to /home/dennishb/.julia/compiled/v1.8/GLMakie/jl_My3oCU.
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
┌ Warning:     GLFW couldn't create an OpenGL window.
│     This likely means, you don't have an OpenGL capable Graphic Card,
│     or you don't have an OpenGL 3.3 capable video driver installed.
│     Have a look at the troubleshooting section in the GLMakie readme:
│     https://github.com/JuliaPlots/Makie.jl/tree/master/GLMakie#troubleshooting-opengl.
└ @ GLMakie ~/.julia/packages/GLMakie/K6iJk/src/screen.jl:391
ERROR: LoadError: GLFWError (VERSION_UNAVAILABLE): GLX: Failed to create context: GLXBadFBConfig
Stacktrace:
  [1] _ErrorCallbackWrapper(code::Int32, description::Cstring)
    @ GLFW ~/.julia/packages/GLFW/BWxfF/src/callback.jl:43
  [2] CreateWindow(width::Int64, height::Int64, title::String, monitor::GLFW.Monitor, share::GLFW.Window)
    @ GLFW ~/.julia/packages/GLFW/BWxfF/src/glfw3.jl:499
  [3] GLFW.Window(; name::String, resolution::Tuple{Int64, Int64}, debugging::Bool, major::Int64, minor::Int64, windowhints::Vector{Tuple{UInt32, Integer}}, contexthints::Vector{Tuple{UInt32, Integer}}, visible::Bool, focus::Bool, fullscreen::Bool, monitor::Nothing, share::GLFW.Window)
    @ GLFW ~/.julia/packages/GLFW/BWxfF/src/glfw3.jl:344
  [4] GLMakie.Screen(; resolution::Tuple{Int64, Int64}, visible::Bool, title::String, start_renderloop::Bool, kw_args::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ GLMakie ~/.julia/packages/GLMakie/K6iJk/src/screen.jl:383
  [5] top-level scope
    @ ~/.julia/packages/GLMakie/K6iJk/src/precompiles.jl:5
  [6] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
  [7] include
    @ ~/.julia/packages/GLMakie/K6iJk/src/GLMakie.jl:1 [inlined]
  [8] macro expansion
    @ ~/.julia/packages/GLMakie/K6iJk/src/precompiles.jl:19 [inlined]
  [9] macro expansion
    @ ~/.julia/packages/Makie/Ppzqh/src/precompiles.jl:96 [inlined]
 [10] top-level scope
    @ ~/.julia/packages/GLMakie/K6iJk/src/precompiles.jl:14
 [11] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [12] include(x::String)
    @ GLMakie ~/.julia/packages/GLMakie/K6iJk/src/GLMakie.jl:1
 [13] top-level scope
    @ ~/.julia/packages/GLMakie/K6iJk/src/GLMakie.jl:65
 [14] include
    @ ./Base.jl:419 [inlined]
 [15] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1554
 [16] top-level scope
    @ stdin:1
in expression starting at /home/dennishb/.julia/packages/Makie/Ppzqh/precompile/shared-precompile.jl:4
in expression starting at /home/dennishb/.julia/packages/GLMakie/K6iJk/src/precompiles.jl:13
in expression starting at /home/dennishb/.julia/packages/GLMakie/K6iJk/src/GLMakie.jl:1
in expression starting at stdin:1
Julia and GLMakie versions
julia> versioninfo()
Julia Version 1.8.1
Commit afb6c60d69a (2022-09-06 15:09 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores

(@v1.8) pkg> st GLMakie
Status `~/.julia/environments/v1.8/Project.toml`
  [e9467ef8] GLMakie v0.6.13

This error did not occur on windows 10/11, but occured after installing linux mint.

The output from inxi -Fxzd
inxi -Fxzd
System:
  Kernel: 5.15.0-48-generic x86_64 bits: 64 compiler: gcc v: 11.2.0
    Desktop: Cinnamon 5.4.12 Distro: Linux Mint 21 Vanessa
    base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: LENOVO product: 20NR0014MX v: ThinkPad L390
    serial: <superuser required>
  Mobo: LENOVO model: 20NR0014MX v: SDK0J40697 WIN
    serial: <superuser required> UEFI: LENOVO v: R10ET39W (1.24 )
    date: 08/12/2019
Battery:
  ID-1: BAT0 charge: 12.2 Wh (32.3%) condition: 37.8/45.0 Wh (83.9%)
    volts: 12.1 min: 11.1 model: LGC 01AV481 status: Charging
CPU:
  Info: quad core model: Intel Core i5-8265U bits: 64 type: MT MCP
    arch: Comet/Whiskey Lake note: check rev: C cache: L1: 256 KiB L2: 1024 KiB
    L3: 6 MiB
  Speed (MHz): avg: 800 min/max: 400/3900 cores: 1: 800 2: 800 3: 800
    4: 800 5: 800 6: 800 7: 800 8: 800 bogomips: 28800
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel WhiskeyLake-U GT2 [UHD Graphics 620] vendor: Lenovo
    driver: i915 v: kernel bus-ID: 00:02.0
  Device-2: Lite-On Integrated Camera type: USB driver: uvcvideo
    bus-ID: 1-5:2
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 resolution: 2560x1440~60Hz
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (WHL GT2)
    v: 4.6 Mesa 22.0.5 direct render: Yes
Audio:
  Device-1: Intel Cannon Point-LP High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
  Sound Server-1: ALSA v: k5.15.0-48-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi
    v: kernel bus-ID: 00:14.3
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Intel Ethernet I219-V vendor: Lenovo driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6
  IF: enp0s31f6 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 1-10:4
  Report: hciconfig ID: hci0 rfk-id: 5 state: up address: <filter>
    bt-v: 3.0 lmp-v: 5.1
Drives:
  Local Storage: total: 238.47 GiB used: 173.73 GiB (72.9%)
  ID-1: /dev/nvme0n1 vendor: Western Digital
    model: PC SN720 SDAQNTW-256G-1001 size: 238.47 GiB temp: 44.9 C
  Message: No optical or floppy data found.
Partition:
  ID-1: / size: 233.18 GiB used: 173.73 GiB (74.5%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 511 MiB used: 5.2 MiB (1.0%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 868 KiB (0.0%) file: /swapfile
Sensors:
  System Temperatures: cpu: 1.0 C pch: 47.0 C mobo: N/A
  Fan Speeds (RPM): fan-1: 0
Info:
  Processes: 357 Uptime: 1d 16h 20m Memory: 15.26 GiB used: 8.27 GiB (54.2%)
  Init: systemd runlevel: 5 Compilers: gcc: 11.2.0 Packages: 2937 Shell: Bash
  v: 5.1.16 inxi: 3.3.13

@SimonDanisch
Copy link
Member

Have you checked https://github.com/MakieOrg/Makie.jl/tree/master/GLMakie#troubleshooting-opengl as explained in the error?

@KronosTheLate
Copy link
Contributor

I have. I could only find that I was supposed to have an OpenGL 3.3 compatible version of OpenGL installed. I checked, and have 4.6. From there, I am confused - do I have to downgrade? How do I do that? I have never explicitly installed the current driver. Is it then possible to downgrade only for Makie, as I would prefer the newest version otherwise? Or does the fact that 4.6 > 3.3 indicate that there is another problem?

@manentai
Copy link

any luck in solving this one? I have a similar issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants