Skip to content

issue with --learn on hyprland #18

@therebellpigeon

Description

@therebellpigeon

Bug Report: Failed to get EGL display on NVIDIA GPU (gesture learning mode only)

Description

Hexecute fails to create a Wayland window when using --learn mode, with error "Failed to create Wayland window:failed to get EGL display". However, gesture recognition works perfectly fine - gestures can be executed successfully.

Expected Behavior

Running hexecute --learn "command" should open an overlay window where users can draw gestures to train the recognizer.

Actual Behavior

The command fails immediately with:

2025/12/13 12:49:37 Failed to create Wayland window:failed to get EGL display

What Works

  • Gesture recognition via hexecute (main mode)
  • Launching hexecute through Hyprland keybindings
  • Drawing and executing learned gestures

What Doesn't Work

  • Learning new gestures with hexecute --learn
  • The gesture drawing overlay window

System Information

  • OS: Manjaro Linux
  • Kernel: 6.12.61-1-MANJARO
  • Compositor: Hyprland 0.52.2
  • GPU: NVIDIA GeForce RTX 4090
  • NVIDIA Driver: 580.105.08
  • Hexecute Version: 0.2.0-1 (AUR package)
  • Wayland Display: wayland-1
  • XDG_RUNTIME_DIR: /run/user/1000

Environment Variables Tried

WAYLAND_DISPLAY=wayland-1
XDG_RUNTIME_DIR=/run/user/1000

EGL Libraries Available

$ ldconfig -p | grep -i egl
libwayland-egl.so.1 (libc6,x86-64) => /usr/lib/libwayland-egl.so.1
libEGL_nvidia.so.0 (libc6,x86-64) => /usr/lib/libEGL_nvidia.so.0
libEGL_mesa.so.0 (libc6,x86-64) => /usr/lib/libEGL_mesa.so.0
libEGL.so.1 (libc6,x86-64) => /usr/lib/libEGL.so.1

Reproduction Steps

  1. Install hexecute on Manjaro with NVIDIA GPU and Hyprland
  2. Run from terminal: hexecute --learn "kitty"
  3. Error occurs immediately, no window appears

Attempted Solutions

  • Running with explicit environment variables
  • Launching via hyprctl dispatch exec
  • Running from within Hyprland compositor context

All attempts result in the same EGL display error.

Additional Context

  • Similar to Issue #11 but with NVIDIA GPU instead of Intel
  • Related to Issue #17 regarding Wayland window creation
  • Other Wayland applications (kitty, Hyprland itself) work fine with EGL
  • eglinfo confirms EGL is configured correctly for the system

Possible Cause

The main hexecute mode (gesture recognition) successfully creates a Wayland window, but the --learn mode appears to initialize EGL differently or has different requirements that aren't met on NVIDIA systems.

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