hyprwm / Hyprland

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

calling movecurrentworkspacetomonitor crashes 100% of the time #6213

Open primalmotion opened 4 months ago

primalmotion commented 4 months ago

Hyprland Version

System/Version info ```sh Hyprland, built from branch main at commit 255272ea18a1bd899168b2d2063b6f153edda919 (debug: Add ARM GPU info (6212)). Date: Thu May 23 09:04:39 2024 Tag: v0.40.0-125-g255272ea, commits: 4731 flags: (if any) System Information: System name: Linux Node name: axion Release: 6.9.1-arch1-2 Version: #1 SMP PREEMPT_DYNAMIC Wed, 22 May 2024 13:47:07 +0000 GPU information: 00:02.0 VGA compatible controller [0300]: Intel Corporation Comet Lake UHD Graphics [8086:9bca] (rev 04) (prog-if 00 [VGA controller]) DeviceName: VGA compatible 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: hyprexpo by Vaxry ver 1.0 ```

Bug or Regression?

Bug

Description

calling movecurrentworkspacetomonitor crashed hyprland. Sometimes it crashes plain and simple, sometimes it just hangs the laptop forever and I have to restart

How to reproduce

just call movecurrentworkspacetomonitor

Crash reports, logs, images, videos

--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
"stable"

Hyprland received signal 11 (Segmentation fault)

Version: c5e28ebcfe00a510922779b2c568cfa52a317445
Tag: v0.37.1

System info:
    System name: Linux
    Node name: axion
    Release: 6.9.1-arch1-2
    Version: #1 SMP PREEMPT_DYNAMIC Wed, 22 May 2024 13:47:07 +0000

GPU:
    00:02.0 VGA compatible controller [0300]: Intel Corporation Comet Lake UHD Graphics [8086:9bca] (rev 04) (prog-if 00 [VGA controller])
    DeviceName: VGA compatible 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

Backtrace:
    #0 | Hyprland(_Z12getBacktracev+0x62) [0x5ea1ba33c162]
        getBacktrace()
        ??:?
    #1 | Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x5d7) [0x5ea1ba2fc337]
        CrashReporter::createAndSaveCrash(int)
        ??:?
    #2 | Hyprland(_Z25handleUnrecoverableSignali+0x4c) [0x5ea1ba279e4c]
        handleUnrecoverableSignal(int)
        ??:?
    #3 | /usr/lib/libc.so.6(+0x3cae0) [0x7162a0823ae0]
        ??
        ??:0
    #4 | Hyprland(_ZN17CHyprMasterLayout12moveWindowToEP7CWindowRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x4e) [0x5ea1ba35268e]
        CHyprMasterLayout::moveWindowTo(CWindow*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
        ??:?
    #5 | Hyprland(_ZN15CKeybindManager17moveWindowOrGroupENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x177) [0x5ea1ba377707]
        CKeybindManager::moveWindowOrGroup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
        ??:?
    #6 | Hyprland(_ZNSt17_Function_handlerIFvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEPS6_E9_M_invokeERKSt9_Any_dataOS5_+0x63) [0x5ea1ba371b13]
        std::_Function_handler<void (std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >), void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)>::_M_invoke(std::_Any_data const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)
        ??:?
    #7 | Hyprland(_ZN15CKeybindManager14handleKeybindsEjRK19SPressedKeyWithModsb+0x71c) [0x5ea1ba3696ac]
        CKeybindManager::handleKeybinds(unsigned int, SPressedKeyWithMods const&, bool)
        ??:?
    #8 | Hyprland(_ZN15CKeybindManager10onKeyEventEP22wlr_keyboard_key_eventP9SKeyboard+0x83a) [0x5ea1ba3680ea]
        CKeybindManager::onKeyEvent(wlr_keyboard_key_event*, SKeyboard*)
        ??:?
    #9 | Hyprland(_ZN13CInputManager13onKeyboardKeyEP22wlr_keyboard_key_eventP9SKeyboard+0x239) [0x5ea1ba38b239]
        CInputManager::onKeyboardKey(wlr_keyboard_key_event*, SKeyboard*)
        ??:?
    #10 | Hyprland(_Z13handleWrappedP11wl_listenerPv+0x62) [0x5ea1ba3475c2]
        handleWrapped(wl_listener*, void*)
        ??:?
    #11 | /usr/lib/libwayland-server.so.0(wl_signal_emit_mutable+0x7c) [0x7162a11922ac]
        ??
        ??:0
    #12 | /usr/lib/libwlroots.so.13032(wlr_keyboard_notify_key+0x25) [0x7162a124c145]
        ??
        ??:0
    #13 | /usr/lib/libwlroots.so.13032(+0x40061) [0x7162a121d061]
        ??
        ??:0
    #14 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0x242) [0x7162a1193f52]
        ??
        ??:0
    #15 | /usr/lib/libwayland-server.so.0(wl_display_run+0x25) [0x7162a1191395]
        ??
        ??:0
    #16 | Hyprland(_ZN11CCompositor15startCompositorEv+0xde9) [0x5ea1ba27b9e9]
        CCompositor::startCompositor()
        ??:?
    #17 | Hyprland(main+0x727) [0x5ea1ba2606e7]
        main
        ??:?
    #18 | /usr/lib/libc.so.6(+0x25c88) [0x7162a080cc88]
        ??
        ??:0
    #19 | /usr/lib/libc.so.6(__libc_start_main+0x8c) [0x7162a080cd4c]
        ??
        ??:0
    #20 | Hyprland(_start+0x25) [0x5ea1ba276f55]
        _start
        ??:?

Log tail:
[LOG] CWLSurface 5ea1da1e9c10 called init()
[LOG] Keybind triggered, calling dispatcher (64, , 65293)
[LOG] Executing term.sh
[LOG] Process Created with pid 24162
[LOG] New TextInput added!
[LOG] Registered signal for owner 5ea1d91d46c0: 5ea1da217518 -> 5ea1d91d46d8 (owner: textInput)
[LOG] Registered signal for owner 5ea1d91d46c0: 5ea1da217528 -> 5ea1d91d47a8 (owner: textInput)
[LOG] Registered signal for owner 5ea1d91d46c0: 5ea1da217538 -> 5ea1d91d4740 (owner: textInput)
[LOG] Registered signal for owner 5ea1d91d46c0: 5ea1da217548 -> 5ea1d91d4810 (owner: textInput)
[LOG] FractionalScaleManager bound successfully!
[LOG] New XDG Toplevel created. (class: null)
[LOG] Registered signal for owner 5ea1da1e65d0: 5ea1da1e2fb8 -> 5ea1da1e6638 (owner: XDG Window)
[LOG] Registered signal for owner 5ea1da1e65d0: 5ea1da213858 -> 5ea1da1e6708 (owner: XDG Window)
[LOG] Registered signal for owner 5ea1da1e65d0: 5ea1da1e2fa8 -> 5ea1da1e65d0 (owner: XDG Window)
[types/xdg_shell/wlr_xdg_surface.c:169] A configure is scheduled for an uninitialized xdg_surface 0x5ea1da2137b0
[LOG] Searching for matching rules for foot (title: )
[LOG] Layout predicts size [Vector2D: x: 3199, y: 1799] for [Window 5ea1da1e65d0: title: ""]
[LOG] Registered signal for owner 5ea1da1e65d0: 5ea1da218330 -> 5ea1da1e6b80 (owner: Toplevel)
[LOG] Registered signal for owner 5ea1da1e65d0: 5ea1da218340 -> 5ea1da1e6be8 (owner: Toplevel)
[LOG] Registered signal for owner 5ea1da1e65d0: 5ea1da218350 -> 5ea1da1e6b18 (owner: Toplevel)
[LOG] Registered signal for owner 5ea1da1e6df0: 5ea1da1e2fe8 -> 5ea1da1e6e38 (owner: CWLSurface)
[LOG] Registered signal for owner 5ea1da1e6df0: 5ea1da1e2fa8 -> 5ea1da1e6ea0 (owner: CWLSurface)
[LOG] CWLSurface 5ea1da1e6df0 called init()
[LOG] Registered signal for owner 5ea1da1e65d0: 5ea1da1e2fc8 -> 5ea1da1e66a0 (owner: CWindow)
[LOG] Registered signal for owner 5ea1da1e5bd0: 5ea1da1e2fd8 -> 5ea1da1e5ca0 (owner: CSubsurface Head)
[LOG] Registered signal for owner 5ea1da1efd60: 5ea1da21a4a8 -> 5ea1da1efda8 (owner: CWLSurface)
[LOG] Registered signal for owner 5ea1da1efd60: 5ea1da21a468 -> 5ea1da1efe10 (owner: CWLSurface)
[LOG] CWLSurface 5ea1da1efd60 called init()
[LOG] Registered signal for owner 5ea1da1efb50: 5ea1da21a468 -> 5ea1da1efbb8 (owner: CSubsurface)
[LOG] Registered signal for owner 5ea1da1efb50: 5ea1da213a20 -> 5ea1da1efb50 (owner: CSubsurface)
[LOG] Registered signal for owner 5ea1da1efb50: 5ea1da21a498 -> 5ea1da1efc20 (owner: CSubsurface)
[LOG] Registered signal for owner 5ea1da1efb50: 5ea1da21a478 -> 5ea1da1efc88 (owner: CSubsurface)
[LOG] Registered signal for owner 5ea1da1efb50: 5ea1da21a488 -> 5ea1da1efcf0 (owner: CSubsurface)
[LOG] Registered signal for owner 5ea1da216180: 5ea1da213878 -> 5ea1da216300 (owner: CPopup Head)
[LOG] Searching for matching rules for foot (title: foot)
[LOG] Set keyboard focus to surface 5ea1da1e2cd0, with [Window 5ea1da1e65d0: title: "foot"]
[LOG] Searching for matching rules for foot (title: foot)
[LOG] Registered signal for owner 5ea1da1e65d0: 5ea1da1e96e8 -> 5ea1da1e6770 (owner: XDG Window Late)
[LOG] Registered signal for owner 5ea1da1e65d0: 5ea1da1e9678 -> 5ea1da1e6978 (owner: XDG Window Late)
[LOG] Registered signal for owner 5ea1da1e65d0: 5ea1da1e9698 -> 5ea1da1e6910 (owner: XDG Window Late)
[LOG] Registered signal for owner 5ea1da1e65d0: 5ea1da1e96a8 -> 5ea1da1e68a8 (owner: XDG Window Late)
[LOG] Registered signal for owner 5ea1da1e65d0: 5ea1da1e96b8 -> 5ea1da1e69e0 (owner: XDG Window Late)
[LOG] Registered signal for owner 5ea1da1e65d0: 5ea1da1e9688 -> 5ea1da1e6840 (owner: XDG Window Late)
[LOG] Registered signal for owner 5ea1da1e65d0: 5ea1da213898 -> 5ea1da1e6d88 (owner: XDG Window Late)
[LOG] Map request dispatched, monitor DP-2, window pos: [11920.00000, 8754.00000], window size: [3199.00000, 1765.00000]
[LOG] Searching for matching rules for foot (title: foot)
[LOG] cursorImage request: shape 9
[LOG] Searching for matching rules for foot (title: antoine@axion:~)
[LOG] Window 5ea1da1e65d0 set title to antoine@axion:~
[LOG] Keybind triggered, calling dispatcher (65, , 65363)
primalmotion commented 4 months ago

honestly there are so many things that fail and crash that I'm not sure what's wrong nor which crash report to send.

vaxerski commented 4 months ago

can't repro + mega old version

when you get crashes, please https://wiki.hyprland.org/Crashes-and-Bugs/#obtaining-a-debug-stacktrace

primalmotion commented 4 months ago

mega old version of what? I'll do the debug stacktrace next time it happens

vaxerski commented 4 months ago

Tag: v0.37.1

hyprland

primalmotion commented 4 months ago

ok it seems it does not matter what version of Hyprland I use. I realized I always have a random phantom monitor (Unknown-1) that pops up and basically breaks everything (it causes this bug and also making workspaces completely out of reach when plugging in and out external monitor)

According to @vaxerski, this is a kernel bug. I found a workaround by adding in my hyprland.conf

monitor=Unknown-1,disabled