hyprwm / Hyprland

Hyprland is a highly customizable dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
17.88k stars 752 forks source link

Crash when opening window on headless output #6635

Closed phonetic112 closed 5 days ago

phonetic112 commented 6 days ago

Regression?

No

System Info and Version

System/Version info ```sh Hyprland, built from branch main at commit 4778afe2e6b4a6f8c7d218ccd8fe7e0bd4d2ee9c (hyprctl: make recv timeout bigger and give error message if it does timeout (6621)). Date: Fri Jun 21 18:41:23 2024 Tag: v0.41.1-56-g4778afe2, commits: 4874 flags: (if any) System Information: System name: Linux Node name: arch Release: 6.9.5-arch1-1 Version: #1 SMP PREEMPT_DYNAMIC Sun, 16 Jun 2024 19:06:37 +0000 GPU information: 07:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD104 [GeForce RTX 4070] [10de:2786] (rev a1) (prog-if 00 [VGA controller]) os-release: NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo plugins: ```

Description

Hyprland crashes when I open a window on a headless output, but seemingly only with the xdg portal running.

How to reproduce

  1. Start Hyprland in a DRM session (or in nested with the portal running)
  2. Create a headless output
  3. Open a window on it
  4. Crash

Crash reports, logs, images, videos

gdb.log