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

"Error creating GL context; Some of the requested attributes are not supported" #971

Closed
jbolila opened this issue Dec 27, 2017 · 15 comments
Closed

Comments

@jbolila
Copy link

jbolila commented Dec 27, 2017

Which operating system does the issue occur on? Fedora 27 Workstation

If on linux, are you using X11 or Wayland? Wayland (works fine on X11)

 cargo +stable run --release
    Finished release [optimized + debuginfo] target(s) in 0.0 secs
     Running `target/release/alacritty`
Alacritty encountered an unrecoverable error:

        Error creating GL context; Some of the requested attributes are not supported

glxinfo:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample, 
    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, 
    GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB, 
    GLX_EXT_import_context, GLX_EXT_libglvnd, GLX_EXT_texture_from_pixmap, 
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, 
    GLX_OML_swap_method, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
    GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_SGI_make_current_read
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, 
    GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample, 
    GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile, 
    GLX_EXT_create_context_es_profile, GLX_EXT_fbconfig_packed_float, 
    GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, 
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, 
    GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read, 
    GLX_SGI_swap_control, GLX_SGI_video_sync
GLX version: 1.4
GLX extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, 
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_buffer_age, 
    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, 
    GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB, 
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, 
    GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read, 
    GLX_SGI_video_sync
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel Open Source Technology Center (0x8086)
    Device: Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2)  (0x5916)
    Version: 17.2.4
    Accelerated: yes
    Video memory: 3072MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
..
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) 
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.2.4
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 17.2.4
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 17.2.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
..
@jbolila
Copy link
Author

jbolila commented Dec 28, 2017

I'm closing this issue, it seems to be an issue in Glutin rust-windowing/glutin#949

@jbolila jbolila closed this as completed Dec 28, 2017
@pklingem
Copy link

@jbolila I'm having the same issue on Fedora 27 on wayland and I'm having trouble connecting the issue to rust-windowing/glutin#949, were you able to make progress? I am able to run with xwayland, but I prefer wayland.

@jbolila
Copy link
Author

jbolila commented Jan 12, 2018

@pklingem I think you're right the issue is still happening, and I have the same issue in Debian 9 using wayland. Also agree now doesn't seem to be related with the Glutin's issue.

@jbolila jbolila reopened this Jan 12, 2018
@jbolila
Copy link
Author

jbolila commented Jan 12, 2018

@pklingem I think you're right the issue is still happening, and I have the same issue in Debian 9 using wayland. Also agree now doesn't seem to be related with the Glutin's issue.

Debian 9:

❯ glxinfo | rg OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 6000 (Broadwell GT3) 
OpenGL core profile version string: 4.5 (Core Profile) Mesa 13.0.6
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 13.0.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 13.0.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

@akavel
Copy link

akavel commented Jan 31, 2018

Got the same error after installing via Nix on Ubuntu 16.04:

$ nix-env -qa '.*alacritty.*'
alacritty-unstable-2017-12-29
$ alacritty 
Alacritty encountered an unrecoverable error:

	Error creating GL context; Some of the requested attributes are not supported

$ nix-instantiate --eval -E '(import <nixpkgs> {}).lib.nixpkgsVersion'
"18.03pre126020.931a0b8be80"

@DaGuich
Copy link

DaGuich commented Jan 31, 2018

I've also encountered the problem on Ubuntu 17.04. Disabling Wayland helped me out.
With env WAYLAND_DISPLAY= alacritty it worked for me.

@asymmetric
Copy link

Linking with #97 since this seems to be a Wayland issue.

@pklingem
Copy link

pklingem commented Mar 7, 2018

I'm still having this problem on master as of today, here's my info, not sure if this helps at all. @jwilm does this conversation belong in another repo?

glxinfo | grep OpenGL

OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics P630 (Kaby Lake GT2) 
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.3.6
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 17.3.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 17.3.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:

WAYLAND_DEBUG=1 alacritty -vvv

[3659232.755]  -> wl_display@1.get_registry(new id wl_registry@2)
[3659232.773]  -> wl_display@1.sync(new id wl_callback@3)
[3659232.920] wl_display@1.delete_id(3)
[3659232.927] wl_registry@2.global(1, "wl_drm", 2)
[3659232.938] wl_registry@2.global(2, "wl_compositor", 4)
[3659232.944] wl_registry@2.global(3, "wl_shm", 1)
[3659232.949] wl_registry@2.global(4, "wl_output", 2)
[3659232.954]  -> wl_registry@2.bind(4, "wl_output", 2, new id [unknown]@4)
[3659232.962] wl_registry@2.global(5, "wl_data_device_manager", 3)
[3659232.967] wl_registry@2.global(6, "gtk_primary_selection_device_manager", 1)
[3659232.972] wl_registry@2.global(7, "zxdg_shell_v6", 1)
[3659232.977]  -> wl_registry@2.bind(7, "zxdg_shell_v6", 1, new id [unknown]@5)
[3659232.983] wl_registry@2.global(8, "wl_shell", 1)
[3659232.988] wl_registry@2.global(9, "gtk_shell1", 2)
[3659232.993] wl_registry@2.global(10, "wl_subcompositor", 1)
[3659232.997]  -> wl_registry@2.bind(2, "wl_compositor", 4, new id [unknown]@6)
[3659233.004]  -> wl_registry@2.bind(3, "wl_shm", 1, new id [unknown]@7)
[3659233.011]  -> wl_registry@2.bind(10, "wl_subcompositor", 1, new id [unknown]@8)
[3659233.017] wl_registry@2.global(11, "zwp_pointer_gestures_v1", 1)
[3659233.022] wl_registry@2.global(12, "zwp_tablet_manager_v2", 1)
[3659233.026] wl_registry@2.global(13, "wl_seat", 5)
[3659233.031] wl_registry@2.global(14, "zwp_relative_pointer_manager_v1", 1)
[3659233.036] wl_registry@2.global(15, "zwp_pointer_constraints_v1", 1)
[3659233.040] wl_registry@2.global(16, "zxdg_exporter_v1", 1)
[3659233.045] wl_registry@2.global(17, "zxdg_importer_v1", 1)
[3659233.049] wl_registry@2.global(18, "zwp_linux_dmabuf_v1", 3)
[3659233.054] wl_registry@2.global(19, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
[3659233.058] wl_callback@3.done(1617)
[3659233.062]  -> wl_display@1.sync(new id wl_callback@3)
[3659233.116] wl_display@1.delete_id(3)
[3659233.122] wl_output@4.geometry(0, 0, 350, 190, 0, "SHP", "0x1476", 0)
[3659233.137] wl_output@4.mode(3, 3840, 2160, 59997)
[3659233.143] wl_output@4.scale(2)
[3659233.146] wl_output@4.done()
[3659233.148] wl_callback@3.done(1617)
[3659233.152]  -> wl_registry@2.bind(13, "wl_seat", 5, new id [unknown]@3)
[3659234.222]  -> wl_compositor@6.create_surface(new id wl_surface@9)
[3659234.251]  -> wl_shm@7.create_pool(new id wl_shm_pool@10, fd 5, 100)
[3659234.258]  -> wl_compositor@6.create_surface(new id wl_surface@11)
[3659234.262]  -> wl_subcompositor@8.get_subsurface(new id wl_subsurface@12, wl_surface@9, wl_surface@11)
[3659234.269]  -> wl_subsurface@12.set_position(0, 0)
[3659234.273]  -> wl_subsurface@12.set_desync()
[3659234.275]  -> zxdg_shell_v6@5.get_xdg_surface(new id zxdg_surface_v6@13, wl_surface@11)
[3659234.280]  -> zxdg_surface_v6@13.get_toplevel(new id zxdg_toplevel_v6@14)
[3659234.284]  -> wl_surface@11.commit()
[3659234.287]  -> wl_seat@3.get_pointer(new id wl_pointer@15)
[3659234.382]  -> wl_shm@7.create_pool(new id wl_shm_pool@16, fd 7, 1024)
[3659234.582]  -> wl_shm_pool@16.resize(4352)
[3659234.613]  -> wl_shm_pool@16.resize(11008)
[3659234.671]  -> wl_shm_pool@16.resize(24320)
[3659234.772]  -> wl_shm_pool@16.resize(50944)
[3659234.969]  -> wl_shm_pool@16.resize(104192)
[3659235.788]  -> wl_shm_pool@16.resize(210688)
[3659235.856]  -> wl_shm_pool@16.resize(423680)
[3659237.448]  -> wl_shm_pool@16.resize(849664)
[3659239.319]  -> wl_shm_pool@16.resize(1701632)
[3659246.558]  -> wl_compositor@6.create_surface(new id wl_surface@17)
[3659246.575]  -> wl_subsurface@12.set_position(0, 0)
[3659246.580]  -> zxdg_toplevel_v6@14.set_min_size(0, 0)
[3659246.584]  -> zxdg_toplevel_v6@14.set_max_size(0, 0)
[3659246.595]  -> wl_display@1.sync(new id wl_callback@18)
[3659266.445] wl_display@1.delete_id(18)
[3659266.462] wl_seat@3.capabilities(3)
[3659266.467]  -> wl_seat@3.get_pointer(new id wl_pointer@19)
[3659266.493]  -> wl_seat@3.get_keyboard(new id wl_keyboard@20)
[3659266.625] wl_seat@3.name("seat0")
[3659266.630] zxdg_toplevel_v6@14.configure(0, 0, array)
[3659266.653] zxdg_surface_v6@13.configure(1618)
[3659266.657]  -> zxdg_surface_v6@13.ack_configure(1618)
[3659266.663] wl_callback@18.done(1618)
[3659266.746]  -> zxdg_toplevel_v6@14.destroy()
[3659266.750]  -> zxdg_surface_v6@13.destroy()
[3659266.752]  -> wl_surface@11.destroy()
[3659266.754]  -> wl_subsurface@12.destroy()
[3659266.756]  -> wl_shm_pool@10.destroy()
[3659266.758]  -> wl_pointer@15.release()
[3659266.761]  -> wl_surface@17.destroy()
[3659266.788]  -> wl_shm_pool@16.destroy()
Alacritty encountered an unrecoverable error:

	Error creating GL context; Some of the requested attributes are not supported

@cedws
Copy link

cedws commented Apr 19, 2018

What's the status on this? The workaround works, but isn't ideal, and doesn't allow me to use Alacritty without opening another terminal.

@chrisduerr
Copy link
Member

@c-edw It should be possible to set the WAYLAND_DISPLAY variable for alacritty in general, either desktop file or .app.

An issue for tracking this in general is #97.

@cedws
Copy link

cedws commented Apr 19, 2018

@chrisduerr When I execute env WAYLAND_DISPLAY= alacritty it launches the Alacritty terminal. If I then try to run Alacritty through the .desktop file, it exits immediately, presumably because it's throwing same error mentioned in this issue. From what you and others have been saying, it sounds like something else is supposed to happen?

EDIT: Just to clarify, executing env WAYLAND_DISPLAY= alacritty successfully launches Alacritty.

@chrisduerr
Copy link
Member

All running env WAYLAND_DISPLAY= alacritty does is run the alacritty binary with the WAYLAND_DISPLAY variable unset. So if you want to start it from the .desktop file, you'll have to do the same.

Instead of doing something like Exec=alacritty you could for example try changing it to Exec=sh -c "env WAYLAND_DISPLAY= alacritty".

@cedws
Copy link

cedws commented Apr 19, 2018

@chrisduerr Ah thanks a lot, I was missing the sh -c.

@chrisduerr
Copy link
Member

The sh -c starts up a shell to execute a command with. It's usually a very straight-forward way to reproduce a command you type in the command line. There might be better ways to do this with .dekstop files, but if it works for you, it should be good enough. :)

@kchibisov
Copy link
Member

Could someone try to reproduce this issue on #2438?

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

No branches or pull requests

9 participants