Skip to content

Fails to create EGL context on older Intel HD Graphics (1st Gen Core i7) #11

@Tyranpl

Description

@Tyranpl

The application fails to launch on a system with older Intel HD Graphics (from an Intel Core i7-640LM) under a Wayland session. It terminates immediately with the error: Failed to create Wayland window:failed to create EGL context.

To Reproduce

  1. Build the application using go build on a supported Linux distribution.
    go build

  2. Run the binary on hardware with 1st Gen Intel HD Graphics (e.g., a ThinkPad X201 Tablet).
    ./hexecute

  3. The application will crash with the EGL context error.
    2025/10/19 14:28:31 Failed to create Wayland window:failed to create EGL context

System Information:

Hardware: Lenovo ThinkPad X201 Tablet
Graphics: Integrated Intel HD Graphics
Operating System: Arch Linux + Sway
Session: Wayland

Workoround: I have found a workaround that allows the application to run. By forcing software rendering, the application starts and works correctly:

> LIBGL_ALWAYS_SOFTWARE=1 ./hexecute
2025/10/19 14:31:27 Loaded 0 gesture(s)
2025/10/19 14:31:30 No confident match (best score: 0.000)
2025/10/19 14:31:33 No confident match (best score: 0.000)
2025/10/19 14:31:34 No confident match (best score: 0.000)

With software rendering hexecute works perfectly. Touch inputs are functional as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions