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
19.28k stars 801 forks source link

Hyprland crashes with waybar and fcitx5 #2146

Open lenianiva opened 1 year ago

lenianiva commented 1 year ago

Steps to reproduce the bug:

  1. Install archlinux, hyprland (or hyprland-git, both will crash)
  2. Install waybar-hyprland-git
  3. Install fcitx5
  4. Start waybar and then fcitx5
  5. Hover the cursor over to the fcitx5 icon. hyprland crashes the moment the cursor enters the bounding box of fcitx5 icon.

Configuration: https://pastebin.com/0U1vta8T

Hyprland log: https://pastebin.com/vTTDGL8j

Crash report:

--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
Maybe you should try dusting your PC in the meantime?

Hyprland received signal 11 (Segmentation fault)

Version: e195a51cd4dd1cb15a04d9b67e3aec67199c5bea

System info:
    System name: Linux
    Node name: Mellite
    Release: 6.2.11-arch1-1
    Version: #1 SMP PREEMPT_DYNAMIC Thu, 13 Apr 2023 16:59:24 +0000

GPU:
    0a:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104 [GeForce GTX 1070] [10de:1b81] (rev a1) (prog-if 00 [VGA controller])
0b:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104 [GeForce GTX 1080] [10de:1b80] (rev a1) (prog-if 00 [VGA controller])
43:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX] [1002:744c] (rev c8) (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://bugs.archlinux.org/"
    PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
    LOGO=archlinux-logo

Backtrace:
    #0 | Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x82e) [0x561ea8716eae]
        ??
        ??:0
    #1 | Hyprland(_Z25handleUnrecoverableSignali+0x3c) [0x561ea86b215c]
        ??
        ??:0
    #2 | /usr/lib/libc.so.6(+0x38f50) [0x7f6637169f50]
        ??
        ??:0
    #3 | /home/hsv/Downloads/aur/hyprland-git/src/hyprland/subprojects/wlroots/build/libwlroots.so.12032(wlr_text_input_v3_send_leave+0x1d) [0x7f6637d6921d]
        ??
        ??:0
    #4 | Hyprland(_ZN17CInputMethodRelay15onKeyboardFocusEP11wlr_surface+0x109) [0x561ea879f809]
        ??
        ??:0
    #5 | Hyprland(+0x1869ae) [0x561ea879f9ae]
        ??
        ??:0
    #6 | Hyprland(_ZN18CHookSystemManager4emitEPKSt6vectorI14SCallbackFNPtrSaIS1_EESt3any+0x2a0) [0x561ea8773a90]
        ??
        ??:0
    #7 | Hyprland(_ZN11CCompositor12focusSurfaceEP11wlr_surfaceP7CWindow+0x1cf) [0x561ea86b5bcf]
        ??
        ??:0
    #8 | Hyprland(_ZN13CInputManager16mouseMoveUnifiedEjb+0x1611) [0x561ea87945b1]
        ??
        ??:0
    #9 | Hyprland(_ZN13CInputManager12onMouseMovedEP24wlr_pointer_motion_event+0x126) [0x561ea8794ec6]
        ??
        ??:0
    #10 | /usr/lib/libwayland-server.so.0(wl_signal_emit_mutable+0x7e) [0x7f6637bd101e]
        ??
        ??:0
    #11 | /usr/lib/libwayland-server.so.0(wl_signal_emit_mutable+0x7e) [0x7f6637bd101e]
        ??
        ??:0
    #12 | /home/hsv/Downloads/aur/hyprland-git/src/hyprland/subprojects/wlroots/build/libwlroots.so.12032(+0x5ac64) [0x7f6637d23c64]
        ??
        ??:0
    #13 | /home/hsv/Downloads/aur/hyprland-git/src/hyprland/subprojects/wlroots/build/libwlroots.so.12032(+0x59beb) [0x7f6637d22beb]
        ??
        ??:0
    #14 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0xa2) [0x7f6637bd2ae2]
        ??
        ??:0
    #15 | /usr/lib/libwayland-server.so.0(wl_display_run+0x27) [0x7f6637bd32d7]
        ??
        ??:0
    #16 | Hyprland(main+0x49b) [0x561ea86a336b]
        ??
        ??:0
    #17 | /usr/lib/libc.so.6(+0x23790) [0x7f6637154790]
        ??
        ??:0
    #18 | /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7f663715484a]
        ??
        ??:0
    #19 | Hyprland(_start+0x25) [0x561ea86b2005]
        ??
        ??:0

Log tail:
[LOG] LayerSurface 561eaab92a98 arranged: x: 1895 y: 1082 w: 50 h: 40 with margins: t: 0 l: 0 r: 0 b: 0
[LOG] Monitor DP-1 layers arranged: reserved: 0.000000 45.000000 0.000000 0.000000
[LOG] LayerSurface 561eaab92a90 arranged: x: 0 y: 0 w: 3840 h: 45 with margins: t: 0 l: 0 r: 0 b: 0
[LOG] LayerSurface 561eaaa80f70 arranged: x: 0 y: 0 w: 3840 h: 2160 with margins: t: 0 l: 0 r: 0 b: 0
[LOG] LayerSurface 561eaab92a98 arranged: x: 960 y: 670 w: 1920 h: 864 with margins: t: 0 l: 0 r: 0 b: 0
[LOG] Monitor DP-1 layers arranged: reserved: 0.000000 45.000000 0.000000 0.000000
[LOG] New TextInput added!
[LOG] Registered signal for owner 561eaab97bb0: 561eaab5e328 -> 561eaab97bc8 (owner: textInput)
[LOG] Registered signal for owner 561eaab97bb0: 561eaab5e338 -> 561eaab97c98 (owner: textInput)
[LOG] Registered signal for owner 561eaab97bb0: 561eaab5e348 -> 561eaab97c30 (owner: textInput)
[LOG] Registered signal for owner 561eaab97bb0: 561eaab5e358 -> 561eaab97d00 (owner: textInput)
[LOG] LayerSurface 561eaac785a0 mapped
[LOG] Registered signal for owner 561eaa6aecd8: 561eaa9bb2b8 -> 561eaa6aece0 (owner: CWLSurface)
[LOG] CWLSurface 561eaa6aecd8 called init()
[LOG] LayerSurface 561eaab92a90 arranged: x: 0 y: 0 w: 3840 h: 45 with margins: t: 0 l: 0 r: 0 b: 0
[LOG] LayerSurface 561eaaa80f70 arranged: x: 0 y: 0 w: 3840 h: 2160 with margins: t: 0 l: 0 r: 0 b: 0
[LOG] LayerSurface 561eaab92a98 arranged: x: 960 y: 670 w: 1920 h: 864 with margins: t: 0 l: 0 r: 0 b: 0
[LOG] Monitor DP-1 layers arranged: reserved: 0.000000 45.000000 0.000000 0.000000
[LOG] Set keyboard focus to surface 561eaa9bafd0
[LOG] LayerSurface 561eaac785a0 unmapped
[LOG]  [hookSystem] New hook event registered: closeLayer
[LOG] Framebuffer created, status 36053
[LOG] Callback 561eaa6aed08 -> 561eaa6aed00, CWLSurface removed.
[LOG] CWLSurface 561eaa6aecd8 called destroy()
[LOG]  [hookSystem] New hook event registered: activeWindow
[LOG] LayerSurface 561eaac785a0 destroyed
[LOG] Callback 561eaa6aeec0 -> 561eaa6aeeb8, layerSurface removed.
[LOG] Callback 561eaa6aed88 -> 561eaa6aed80, layerSurface removed.
[LOG] Callback 561eaa6aedf0 -> 561eaa6aede8, layerSurface removed.
[LOG] Callback 561eaa6aee58 -> 561eaa6aee50, layerSurface removed.
[LOG] Callback 561eaa6aef28 -> 561eaa6aef20, layerSurface removed.
[LOG] LayerSurface 561eaab92a90 arranged: x: 0 y: 0 w: 3840 h: 45 with margins: t: 0 l: 0 r: 0 b: 0
[LOG] LayerSurface 561eaaa80f70 arranged: x: 0 y: 0 w: 3840 h: 2160 with margins: t: 0 l: 0 r: 0 b: 0
[LOG] Monitor DP-1 layers arranged: reserved: 0.000000 45.000000 0.000000 0.000000
[LOG] Registered signal for owner 561eaabbacf0: 561eaab94ce8 -> 561eaabbacf8 (owner: Keyboard)
[LOG] Registered signal for owner 561eaabbacf0: 561eaab94cd8 -> 561eaabbad60 (owner: Keyboard)
[LOG] Registered signal for owner 561eaabbacf0: 561eaab94bb8 -> 561eaabbae30 (owner: Keyboard)
[LOG] Registered signal for owner 561eaabbacf0: 561eaab94cf8 -> 561eaabbadc8 (owner: Keyboard)
[LOG] ApplyConfigToKeyboard for "wlr_virtual_keyboard_v1", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "wlr_virtual_keyboard_v1"
[LOG] New virtual keyboard created, pointers Hypr: 561eaabbacf0 and WLR: 561eaab94ba0
[LOG] New IME added!
[LOG] Registered signal for owner 561eaa51c5a0: 561eaab85650 -> 561eaa51c648 (owner: IMERelay)
[LOG] Registered signal for owner 561eaa51c5a0: 561eaab85680 -> 561eaa51c6b0 (owner: IMERelay)
[LOG] Registered signal for owner 561eaa51c5a0: 561eaab85670 -> 561eaa51c718 (owner: IMERelay)
[LOG] Registered signal for owner 561eaa51c5a0: 561eaab85660 -> 561eaa51c780 (owner: IMERelay)
[LOG]  [hookSystem] New hook event registered: mouseMove
[LOG] Cleanup: destroyed a layersurface
[LOG] Set keyboard focus to surface 561eaaa0afc0
vaxerski commented 1 year ago

can't repro, odd.

mustardfrog commented 1 year ago

On EndeavourOS with waybar(master), hyprland installed from package manager.

  1. Start waybar and then fcitx5

I tried starting them in either order, hyprland started freezing and eventually crashed.

Sway seems to work fine.

mustardfrog commented 1 year ago

Edit: This seems to be the issue because of the fresh install fcitx.

I tried it sway and then started it again on hyprland, it works fine.

lenianiva commented 1 year ago

On EndeavourOS with waybar(master), hyprland installed from package manager.

  1. Start waybar and then fcitx5

I tried starting them in either order, hyprland started freezing and eventually crashed.

Sway seems to work fine.

so the solution is to first run fcitx5 in some other wayland environment and then run it in hypr?

lenianiva commented 1 year ago

I executed sudo pacman -S fcitx5 (reinstall), and now the behaviour is this:

  1. Execute fcitx5 in a terminal
  2. Now hovering into the tray icon region is fine
  3. Kill fcitx5 by C-c. hyprland crashes immediately

or

  1. Right click the fcitx5 tray icon and click configure. hyprland crashes immediately.

Below is the crash report. I also tried fcitx -d and it crashes hyprland immediately upon execution.

--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
Oops

Hyprland received signal 11 (Segmentation fault)

Version: e195a51cd4dd1cb15a04d9b67e3aec67199c5bea

System info:
    System name: Linux
    Node name: Mellite
    Release: 6.2.11-arch1-1
    Version: #1 SMP PREEMPT_DYNAMIC Thu, 13 Apr 2023 16:59:24 +0000

GPU:
    0a:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104 [GeForce GTX 1070] [10de:1b81] (rev a1) (prog-if 00 [VGA controller])
0b:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP104 [GeForce GTX 1080] [10de:1b80] (rev a1) (prog-if 00 [VGA controller])
43:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX] [1002:744c] (rev c8) (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://bugs.archlinux.org/"
    PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
    LOGO=archlinux-logo

Backtrace:
    #0 | Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x82e) [0x558afebcdeae]
        ??
        ??:0
    #1 | Hyprland(_Z25handleUnrecoverableSignali+0x3c) [0x558afeb6915c]
        ??
        ??:0
    #2 | /usr/lib/libc.so.6(+0x38f50) [0x7f7fab851f50]
        ??
        ??:0
    #3 | Hyprland(_Z11addWLSignalP9wl_signalP11wl_listenerPvRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x30) [0x558afebfca00]
        ??
        ??:0
    #4 | Hyprland(_ZN17CInputMethodRelay17setPendingSurfaceEP10STextInputP11wlr_surface+0x9b) [0x558afec5667b]
        ??
        ??:0
    #5 | Hyprland(+0x186af4) [0x558afec56af4]
        ??
        ??:0
    #6 | Hyprland(_Z13handleWrappedP11wl_listenerPv+0x3c) [0x558afec0a5bc]
        ??
        ??:0
    #7 | /usr/lib/libwayland-server.so.0(wl_signal_emit_mutable+0x7e) [0x7f7fac31101e]
        ??
        ??:0
    #8 | /home/hsv/Downloads/aur/hyprland-git/src/hyprland/subprojects/wlroots/build/libwlroots.so.12032(+0x8dabc) [0x7f7fac496abc]
        ??
        ??:0
    #9 | /home/hsv/Downloads/aur/hyprland-git/src/hyprland/subprojects/wlroots/build/libwlroots.so.12032(wlr_input_method_v2_send_unavailable+0x23) [0x7f7fac497023]
        ??
        ??:0
    #10 | /usr/lib/libwayland-server.so.0(wl_signal_emit_mutable+0x7e) [0x7f7fac31101e]
        ??
        ??:0
    #11 | /home/hsv/Downloads/aur/hyprland-git/src/hyprland/subprojects/wlroots/build/libwlroots.so.12032(+0x79b19) [0x7f7fac482b19]
        ??
        ??:0
    #12 | /usr/lib/libwayland-server.so.0(+0xb9ba) [0x7f7fac3129ba]
        ??
        ??:0
    #13 | /usr/lib/libwayland-server.so.0(wl_client_destroy+0xab) [0x7f7fac3130db]
        ??
        ??:0
    #14 | /usr/lib/libwayland-server.so.0(+0xc60e) [0x7f7fac31360e]
        ??
        ??:0
    #15 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0xa2) [0x7f7fac312ae2]
        ??
        ??:0
    #16 | /usr/lib/libwayland-server.so.0(wl_display_run+0x27) [0x7f7fac3132d7]
        ??
        ??:0
    #17 | Hyprland(main+0x49b) [0x558afeb5a36b]
        ??
        ??:0
    #18 | /usr/lib/libc.so.6(+0x23790) [0x7f7fab83c790]
        ??
        ??:0
    #19 | /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7f7fab83c84a]
        ??
        ??:0
    #20 | Hyprland(_start+0x25) [0x558afeb69005]
        ??
        ??:0

Log tail:
[LOG] Searching for matching rules for Alacritty (title: ~)
[LOG] Window 558b000a3940 set title to ~
[LOG] Searching for matching rules for Alacritty (title: fcitx5  ~)
[LOG] Window 558b000a3940 set title to fcitx5  ~
[LOG] Registered signal for owner 558b00058900: 558b00092728 -> 558b00058908 (owner: Keyboard)
[LOG] Registered signal for owner 558b00058900: 558b00092718 -> 558b00058970 (owner: Keyboard)
[LOG] Registered signal for owner 558b00058900: 558b000925f8 -> 558b00058a40 (owner: Keyboard)
[LOG] Registered signal for owner 558b00058900: 558b00092738 -> 558b000589d8 (owner: Keyboard)
[LOG] ApplyConfigToKeyboard for "wlr_virtual_keyboard_v1", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "wlr_virtual_keyboard_v1"
[LOG] New virtual keyboard created, pointers Hypr: 558b00058900 and WLR: 558b000925e0
[LOG] New IME added!
[LOG] Registered signal for owner 558affa2f3c0: 558b0015ae00 -> 558affa2f468 (owner: IMERelay)
[LOG] Registered signal for owner 558affa2f3c0: 558b0015ae30 -> 558affa2f4d0 (owner: IMERelay)
[LOG] Registered signal for owner 558affa2f3c0: 558b0015ae20 -> 558affa2f538 (owner: IMERelay)
[LOG] Registered signal for owner 558affa2f3c0: 558b0015ae10 -> 558affa2f5a0 (owner: IMERelay)
[LOG] New layer popup created from surface 558affc51b00
[LOG] Registered signal for owner 558b0015a280: 558b00168430 -> 558b0015a310 (owner: HyprPopup)
[LOG] Registered signal for owner 558b0015a280: 558b00168460 -> 558b0015a378 (owner: HyprPopup)
[LOG] Registered signal for owner 558b0015a280: 558b00168470 -> 558b0015a3e0 (owner: HyprPopup)
[LOG] Registered signal for owner 558b0015a280: 558b00168450 -> 558b0015a2a8 (owner: HyprPopup)
[LOG] Registered signal for owner 558b0015a280: 558b001682d8 -> 558b0015a448 (owner: HyprPopup)
[LOG] Popup: Unconstrained from lx ly: 0.000000 0.000000, pHyprPopup lx ly: 0.000000 0.000000
[LOG] New XDG Popup mapped at 0 0
[LOG] Registered signal for owner 558b0017ca80: 558b001682f8 -> 558b0017ca88 (owner: CWLSurface)
[LOG] CWLSurface 558b0017ca80 called init()
[LOG] Registered signal for owner 558b0015cbd0: 558b001682e8 -> 558b0015cc48 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 558b0015cbd0: 558b001682d8 -> 558b0015ccb0 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 558b0015cbd0: 558b001682f8 -> 558b0015cd18 (owner: SurfaceTreeNode)
[LOG] Creating a surfaceTree Root! (pWindow: 0)
[LOG] XDG Popup got assigned a surfaceTreeNode 558b0015cbd0
[LOG] XDG Popup unmapped
[LOG] Callback 558b0015ccd8 -> 558b0015ccd0, SurfaceTreeNode removed.
[LOG] Callback 558b0015cd40 -> 558b0015cd38, SurfaceTreeNode removed.
[LOG] Callback 558b0015cc70 -> 558b0015cc68, SurfaceTreeNode removed.
[LOG] SurfaceTree Node removed
[LOG] Callback 558b0017cab0 -> 558b0017caa8, CWLSurface removed.
[LOG] CWLSurface 558b0017ca80 called destroy()
[LOG] Destroyed popup XDG 558b0015a280
[LOG] Callback 558b0015a470 -> 558b0015a468, HyprPopup removed.
[LOG] Callback 558b0015a408 -> 558b0015a400, HyprPopup removed.
[LOG] Callback 558b0015a3a0 -> 558b0015a398, HyprPopup removed.
[LOG] Callback 558b0015a338 -> 558b0015a330, HyprPopup removed.
[LOG] Callback 558b0015a2d0 -> 558b0015a2c8, HyprPopup removed.
[LOG] Callback 558affa2f4f8 -> 558affa2f4f0, IMERelay removed.
[LOG] Callback 558affa2f490 -> 558affa2f488, IMERelay removed.
[LOG] Callback 558affa2f560 -> 558affa2f558, IMERelay removed.
[LOG] Callback 558affa2f5c8 -> 558affa2f5c0, IMERelay removed.
[LOG] IME Destroy
mustardfrog commented 1 year ago

This seems to be the bug for hyprland + waybar + fcitx5.

hyprland crashes every time I run fcitx5 from command line. Firstly tested this with foot terminal. If no other window is open, it work. But somekind of window like firefox, brave, discord, and then run fcitx5 again in terminal, it crashes.

It seems that most terminal will crashes immediately after running fcitx5. I tested it with kitty, wezTerm and alacritty it all crashes except foot terminal.

If foot terminal is the only window, i can run fcitx5.

lenianiva commented 1 year ago

This seems to be the bug for hyprland + waybar + fcitx5.

hyprland crashes every time I run fcitx5 from command line. Firstly tested this with foot terminal. If no other window is open, it work. But somekind of window like firefox, brave, discord, and then run fcitx5 again in terminal, it crashes.

It seems that most terminal will crashes immediately after running fcitx5. I tested it with kitty, wezTerm and alacritty it all crashes except foot terminal.

If foot terminal is the only window, i can run fcitx5.

It seems like if I run fcitx5 from wofi, hyprland immediately crashes too

yadex commented 1 year ago

Same issue here. Auto start fcitx5 at launch works for me

mustardfrog commented 1 year ago

This seems to be the bug for hyprland + waybar + fcitx5.

I tried using Sway and fcitx5 for a few days. It is more of wayland + waybar + fcitx5 issue.

I encountered a weird bug with fcitx5 and waybar on Sway. I don't even know where I should open the issue. waybar? sway? fcitx5?

proycon commented 1 year ago

I have what looks like this same issue.

Crash report (nice new feature btw!):

--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
Sorry, didn't mean to...

Hyprland received signal 11 (Segmentation fault)

Version: 79791c9ed4a9f78d8a444006e2cdd4a63d1a5862

System info:
    System name: Linux
    Node name: mhysa
    Release: 6.2.13-arch1-1
    Version: #1 SMP PREEMPT_DYNAMIC Wed, 26 Apr 2023 20:50:14 +0000

GPU:
    03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6600/6600 XT/6600M] [1002:73ff] (rev c1) (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://bugs.archlinux.org/"
    PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
    LOGO=archlinux-logo

Backtrace:
    #0 | Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x82e) [0x56077005ad6e]
        ??
        ??:0
    #1 | Hyprland(_Z25handleUnrecoverableSignali+0x3c) [0x56076fff493c]
        ??
        ??:0
    #2 | /usr/lib/libc.so.6(+0x38f50) [0x7fbb18f69f50]
        ??
        ??:0
    #3 | /usr/lib/libwlroots.so.12032(wlr_text_input_v3_send_leave+0x1d) [0x7fbb19b8603d]
        ??
        ??:0
    #4 | Hyprland(_ZN17CInputMethodRelay15onKeyboardFocusEP11wlr_surface+0x109) [0x5607700e4f99]
        ??
        ??:0
    #5 | Hyprland(+0x18e13e) [0x5607700e513e]
        ??
        ??:0
    #6 | Hyprland(_ZN18CHookSystemManager4emitEPKSt6vectorI14SCallbackFNPtrSaIS1_EESt3any+0x2a0) [0x5607700b8fb0]
        ??
        ??:0
    #7 | Hyprland(_ZN11CCompositor12focusSurfaceEP11wlr_surfaceP7CWindow+0x1cf) [0x56076fff83af]
        ??
        ??:0
    #8 | Hyprland(_ZN11CCompositor11focusWindowEP7CWindowP11wlr_surface+0x112) [0x56076ffff1b2]
        ??
        ??:0
    #9 | Hyprland(_ZN13CInputManager16mouseMoveUnifiedEjb+0x1295) [0x5607700d91e5]
        ??
        ??:0
    #10 | Hyprland(_ZN13CInputManager12onMouseMovedEP24wlr_pointer_motion_event+0x126) [0x5607700d9ef6]
        ??
        ??:0
    #11 | /usr/lib/libwayland-server.so.0(wl_signal_emit_mutable+0x7e) [0x7fbb19a9c01e]
        ??
        ??:0
    #12 | /usr/lib/libwayland-server.so.0(wl_signal_emit_mutable+0x7e) [0x7fbb19a9c01e]
        ??
        ??:0
    #13 | /usr/lib/libwlroots.so.12032(+0x5ba64) [0x7fbb19b40a64]
        ??
        ??:0
    #14 | /usr/lib/libwlroots.so.12032(+0x5a9eb) [0x7fbb19b3f9eb]
        ??
        ??:0
    #15 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0xa2) [0x7fbb19a9dae2]
        ??
        ??:0
    #16 | /usr/lib/libwayland-server.so.0(wl_display_run+0x27) [0x7fbb19a9e2d7]
        ??
        ??:0
    #17 | Hyprland(main+0x49b) [0x56076ffe5b4b]
        ??
        ??:0
    #18 | /usr/lib/libc.so.6(+0x23790) [0x7fbb18f54790]
        ??
        ??:0
    #19 | /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7fbb18f5484a]
        ??
        ??:0
    #20 | Hyprland(_start+0x25) [0x56076fff47e5]
        ??
        ??:0

Log tail:
[LOG] Registered signal for owner 560773ae6f90: 560773b74228 -> 560773ae7078 (owner: textInput)
[LOG] Registered signal for owner 560773ae6f90: 560773b74238 -> 560773ae7010 (owner: textInput)
[LOG] Registered signal for owner 560773ae6f90: 560773b74248 -> 560773ae70e0 (owner: textInput)
[LOG] New XDG Surface created. (class: foot)
[LOG] Registered signal for owner 560773b81350: 560773b7c0a0 -> 560773b813b8 (owner: XDG Window)
[LOG] Registered signal for owner 560773b81350: 560773b7c070 -> 560773b81488 (owner: XDG Window)
[LOG] Registered signal for owner 560773b81350: 560771b08d70 -> 560773b81968 (owner: Toplevel)
[LOG] Registered signal for owner 560773b81350: 560771b08d80 -> 560773b819d0 (owner: Toplevel)
[LOG] Registered signal for owner 560773b81350: 560771b08d90 -> 560773b81900 (owner: Toplevel)
[LOG] Registered signal for owner 560773b81aa0: 560773b7bea8 -> 560773b81aa8 (owner: CWLSurface)
[LOG] CWLSurface 560773b81aa0 called init()
[LOG] Registered signal for owner 560773b81350: 560773b7c0b0 -> 560773b81420 (owner: CWindow)
[LOG] Searching for matching rules for foot (title: foot)
[LOG] Set keyboard focus to surface 560773b7bbc0, with window name: foot
[LOG] Window got assigned a surfaceTreeNode 0
[LOG] Registered signal for owner 560773b81350: 560773b7be88 -> 560773b81350 (owner: XDG Window Late)
[LOG] Registered signal for owner 560773b81350: 560773b67660 -> 560773b814f0 (owner: XDG Window Late)
[LOG] Registered signal for owner 560773b81350: 560773b7c090 -> 560773b81628 (owner: XDG Window Late)
[LOG] Registered signal for owner 560773b81350: 560773b675f0 -> 560773b81760 (owner: XDG Window Late)
[LOG] Registered signal for owner 560773b81350: 560773b67610 -> 560773b816f8 (owner: XDG Window Late)
[LOG] Registered signal for owner 560773b81350: 560773b67620 -> 560773b81690 (owner: XDG Window Late)
[LOG] Registered signal for owner 560773b81350: 560773b67630 -> 560773b817c8 (owner: XDG Window Late)
[LOG] Registered signal for owner 560773b81350: 560773b67600 -> 560773b815c0 (owner: XDG Window Late)
[LOG] Registered signal for owner 560773b70e70: 560773b7be98 -> 560773b70ee8 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 560773b70e70: 560773b7be88 -> 560773b70f50 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner 560773b70e70: 560773b7bea8 -> 560773b70fb8 (owner: SurfaceTreeNode)
[LOG] Added a new subsurface 560773b7b450
[LOG] Registered signal for owner 560773b6f870: 560773b7b4e8 -> 560773b6f888 (owner: Subsurface)
[LOG] Registered signal for owner 560773b6f870: 560773b7b4f8 -> 560773b6f8f0 (owner: Subsurface)
[LOG] Registered signal for owner 560773b6f870: 560773b7b4d8 -> 560773b6f958 (owner: Subsurface)
[LOG] Creating a surfaceTree Root! (pWindow: 560773b81350)
[LOG] Map request dispatched, monitor DP-3, xywh: 4278.000046 1681.000000 1721.000000 2128.000000
[LOG] Searching for matching rules for foot (title: proycon@mhysa:~)
[LOG] Window 560773b81350 set title to proycon@mhysa:~
[LOG] Searching for matching rules for foot (title: fcitx5)
[LOG] Window 560773b81350 set title to fcitx5
[LOG] Registered signal for owner 560771aec490: 560773b85488 -> 560771aec498 (owner: Keyboard)
[LOG] Registered signal for owner 560771aec490: 560773b85478 -> 560771aec500 (owner: Keyboard)
[LOG] Registered signal for owner 560771aec490: 560773b85358 -> 560771aec5d0 (owner: Keyboard)
[LOG] Registered signal for owner 560771aec490: 560773b85498 -> 560771aec568 (owner: Keyboard)
[LOG] ApplyConfigToKeyboard for "wlr_virtual_keyboard_v1", hasconfig: 0
[LOG] Attempting to create a keymap for layout proylatin,proyeo,proyru,proyar with variant  (rules: , model: , options: lv3:ralt_switch,caps:ctrl_modifier,grp:alt_shift_toggle)
[LOG] Set the keyboard layout to proylatin,proyeo,proyru,proyar and variant to  for keyboard "wlr_virtual_keyboard_v1"
[LOG] New virtual keyboard created, pointers Hypr: 560771aec490 and WLR: 560773b85340
[LOG] New IME added!
[LOG] Registered signal for owner 56077118c0d0: 560773b3dc90 -> 56077118c178 (owner: IMERelay)
[LOG] Registered signal for owner 56077118c0d0: 560773b3dcc0 -> 56077118c1e0 (owner: IMERelay)
[LOG] Registered signal for owner 56077118c0d0: 560773b3dcb0 -> 56077118c248 (owner: IMERelay)
[LOG] Registered signal for owner 56077118c0d0: 560773b3dca0 -> 56077118c2b0 (owner: IMERelay)
[LOG] Set keyboard focus to surface 560771b0a7e0, with window name: Hyprland crashes with waybar and fcitx5 · Issue #2146 · hyprwm/Hyprland — Mozilla Firefox

And a gdb backtrace on the core dump just in case it helps:

(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007fbb18fb8953 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2  0x00007fbb18f69ea8 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007fbb18f5353d in __GI_abort () at abort.c:79
#4  0x000056076fff4941 in  ()
#5  0x00007fbb18f69f50 in <signal handler called> () at /usr/lib/libc.so.6
#6  0x00007fbb19b8603d in wlr_text_input_v3_send_leave () at /usr/lib/libwlroots.so.12032
#7  0x00005607700e4f99 in CInputMethodRelay::onKeyboardFocus(wlr_surface*) ()
#8  0x00005607700e513e in std::_Function_handler<void (void*, std::any), CInputMethodRelay::CInputMethodRelay()::{lambda(void*, std::any)#1}>::_M_invoke(std::_Any_data const&, void*&&, std::any&&) ()
#9  0x00005607700b8fb0 in CHookSystemManager::emit(std::vector<SCallbackFNPtr, std::allocator<SCallbackFNPtr> > const*, std::any)
    ()
#10 0x000056076fff83af in CCompositor::focusSurface(wlr_surface*, CWindow*) ()
#11 0x000056076ffff1b2 in CCompositor::focusWindow(CWindow*, wlr_surface*) ()
#12 0x00005607700d91e5 in CInputManager::mouseMoveUnified(unsigned int, bool) ()
#13 0x00005607700d9ef6 in CInputManager::onMouseMoved(wlr_pointer_motion_event*) ()
#14 0x00007fbb19a9c01e in wl_signal_emit_mutable (signal=<optimized out>, data=0x7fffe70b3730)
    at ../wayland-1.22.0/src/wayland-server.c:2241
#15 0x00007fbb19a9c01e in wl_signal_emit_mutable (signal=<optimized out>, data=0x7fffe70b3730)
    at ../wayland-1.22.0/src/wayland-server.c:2241
#16 0x00007fbb19b40a64 in handle_pointer_motion () at /usr/lib/libwlroots.so.12032
#17 0x00007fbb19b3f9eb in handle_libinput_readable () at /usr/lib/libwlroots.so.12032
#18 0x00007fbb19a9dae2 in wl_event_loop_dispatch (loop=0x560770642e80, timeout=timeout@entry=-1)
    at ../wayland-1.22.0/src/event-loop.c:1027
#19 0x00007fbb19a9e2d7 in wl_display_run (display=0x560770642d90) at ../wayland-1.22.0/src/wayland-server.c:1493
#20 0x000056076ffe5b4b in main ()
vaxerski commented 1 year ago

Yeah, I realize. I run fcitx5 on a daily. Starting it with exec-once will prevent this crash. dunno why you'd want to start fcitx in the middle of a session tho

lenianiva commented 1 year ago

Yeah, I realize. I run fcitx5 on a daily. Starting it with exec-once will prevent this crash. dunno why you'd want to start fcitx in the middle of a session tho

Yes. The problem doesn't really impact usage but its curious how it crashes

proycon commented 1 year ago

Starting it with exec-once will prevent this crash. dunno why you'd want to start fcitx in the middle of a session tho

Ha! I just gave that a try. Back when running Xorg I was so used to running fcitx only when needed (for 汉字), as it was interfering with my normal xkb keymaps which I used for all other scripts. Most notably the dead keys for diacritics didn't work properly with fcitx running so I had to turn it off completely again. I never thought to reconsider this old habit after switching to wayland, but it seems it's no longer necessary indeed, everything just works fine with fcitx constantly running, even when using the normal xkb keymaps. If this holds stable it provides a good workaround (still, hyprland shouldn't crash of course).

jacekpoz commented 1 year ago

for me it always crashes with exec-once=fcitx5 -d after about 2 seconds, when it's off and I later run the same command in a terminal it's fine until I exit it from the systray icon, that's when it crashes

log: https://0x0.st/Hj3T.log coredump: https://0x0.st/Hj3c.txt

jacekpoz commented 1 year ago

here's what happens when I have exec-once=fcitx5 -d in my config

log: https://0x0.st/Hj3S.log coredump: https://0x0.st/Hj3Q.txt

config in both cases is the same, can be found here https://codeberg.org/jacekpoz/niksos/src/commit/cb241a262b64e45d4c778e75305579746d878f5c/homes/jacek/gui/hypr/default.nix

vaxerski commented 1 year ago

patch.txt try this @jacekpoz

jacekpoz commented 1 year ago

as you saw on matrix I'm having some trouble applying the patch on nixos, I'm gonna do that tomorrow but I just remembered that it only happens when I load this plugin https://github.com/duckonaut/split-monitor-workspaces

although I remember it also happening without it when running the gui for fcitx5, I'll check that tomorrow though

jacekpoz commented 1 year ago

nevermind it's definitely fcitx5, the plugin doesn't do shit now

vikoprez commented 1 year ago

Hyprland also crashes randomly while having Waybar on, having Fcitx5 on startup, and typing with it using another input method than the default in Chromium and Electron applications. #2926

jacekpoz commented 1 year ago

patch.txt try this @jacekpoz

with this patch it crashes every time but with varying time since launch

didn't get any crash reports, here are some logs: https://0x0.st/HLBu.log1 https://0x0.st/HLBS.log2 https://0x0.st/HLBQ.log3

jacekpoz commented 1 year ago

here's the output of it while crashing https://0x0.st/HLBL.txt

c0001 commented 10 months ago

Same with here, I encounter this every time using fcitx5 in alacritty on Hyprland, the crash made me using back on swaywm temporarily, hope for fixing.

muei commented 9 months ago

When I have a meeting, suddenly crashed, then boss fired me, so sad...

vincentaxhe commented 7 months ago

I run fcitx with ExecStart=/usr/bin/fcitx5 -D in user service file ,restart it or replace it or kill it often make hyprland crashes

mslxl commented 6 months ago

I tried to add exec-once = fcitx5 -d, but it still crashes when I focus any window with latest commit 1ed4f1cb254ce4b4e55727d972998be1ef4baf22 on NixOS

hope for fixing soon

Crash Report ``` -------------------------------------------- Hyprland Crash Report -------------------------------------------- Maybe you should try dusting your PC in the meantime? Hyprland received signal 11 (Segmentation fault) Version: v0.32.3 Tag: System info: System name: Linux Node name: mslxl-xiaoxinpro16-2021 Release: 6.1.75 Version: #1-NixOS SMP PREEMPT_DYNAMIC Thu Jan 25 23:27:52 UTC 2024 GPU: 05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c5) (prog-if 00 [VGA controller]) os-release: BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues" BUILD_ID="24.05.20240131.b8b232a" DOCUMENTATION_URL="https://nixos.org/learn.html" HOME_URL="https://nixos.org/" ID=nixos IMAGE_ID="" IMAGE_VERSION="" LOGO="nix-snowflake" NAME=NixOS PRETTY_NAME="NixOS 24.05 (Uakari)" SUPPORT_URL="https://nixos.org/community.html" VERSION="24.05 (Uakari)" VERSION_CODENAME=uakari VERSION_ID="24.05" Backtrace: #0 | /etc/profiles/per-user/mslxl/bin/Hyprland(_Z12getBacktracev+0x48) [0x56bad8] _Z12getBacktracev ??:? #1 | /etc/profiles/per-user/mslxl/bin/Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x59f) [0x525b3f] _ZN13CrashReporter18createAndSaveCrashEi ??:? #2 | /etc/profiles/per-user/mslxl/bin/Hyprland(_Z25handleUnrecoverableSignali+0x3f) [0x49cbdf] _Z25handleUnrecoverableSignali ??:? #3 | /nix/store/j6mwswpa6zqhdm1lm2lv9iix3arn774g-glibc-2.38-27/lib/libc.so.6(+0x3da70) [0x7fa69ca30a70] ?? ??:0 #4 | /nix/store/b37hkrr92fj1ig2zjmbi9d61dnllxfpd-wayland-1.22.0/lib/libwayland-server.so.0(wl_resource_post_event+0x87) [0x7fa69d6adfb7] ?? ??:0 #5 | /nix/store/6w74qcd3ii5bs696wam287hkwna975gd-wlroots-hyprland-0.17.0-dev/lib/libwlroots.so.12(wlr_text_input_v3_send_leave+0x27) [0x7fa69d623797] ?? ??:0 #6 | /etc/profiles/per-user/mslxl/bin/Hyprland(_ZN17CInputMethodRelay15onKeyboardFocusEP11wlr_surface+0x192) [0x5eecc2] _ZN17CInputMethodRelay15onKeyboardFocusEP11wlr_surface ??:? #7 | /etc/profiles/per-user/mslxl/bin/Hyprland() [0x5eee0b] _ZNSt17_Function_handlerIFvPvR13SCallbackInfoSt3anyEZN17CInputMethodRelayC4EvEUlS0_S2_S3_E_E9_M_invokeERKSt9_Any_dataOS0_S2_OS3_ ??:? #8 | /etc/profiles/per-user/mslxl/bin/Hyprland(_ZN18CHookSystemManager4emitEPKSt6vectorI14SCallbackFNPtrSaIS1_EER13SCallbackInfoSt3any+0x30e) [0x5b960e] _ZN18CHookSystemManager4emitEPKSt6vectorI14SCallbackFNPtrSaIS1_EER13SCallbackInfoSt3any ??:? #9 | /etc/profiles/per-user/mslxl/bin/Hyprland(_ZN11CCompositor12focusSurfaceEP11wlr_surfaceP7CWindow+0x2e2) [0x4ad292] _ZN11CCompositor12focusSurfaceEP11wlr_surfaceP7CWindow ??:? #10 | /etc/profiles/per-user/mslxl/bin/Hyprland(_ZN13CInputManager16mouseMoveUnifiedEjb+0x157c) [0x5df29c] _ZN13CInputManager16mouseMoveUnifiedEjb ??:? #11 | /etc/profiles/per-user/mslxl/bin/Hyprland(_ZN13CInputManager21simulateMouseMovementEv+0xba) [0x5df82a] _ZN13CInputManager21simulateMouseMovementEv ??:? #12 | /etc/profiles/per-user/mslxl/bin/Hyprland(_ZN15CKeybindManager15changeworkspaceENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x74d) [0x5c179d] _ZN15CKeybindManager15changeworkspaceENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE ??:? #13 | /etc/profiles/per-user/mslxl/bin/Hyprland(_ZNSt17_Function_handlerIFvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEPS6_E9_M_invokeERKSt9_Any_dataOS5_+0x5f) [0x5cc2bf] _ZNSt17_Function_handlerIFvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEPS6_E9_M_invokeERKSt9_Any_dataOS5_ ??:? #14 | /etc/profiles/per-user/mslxl/bin/Hyprland(_ZN15CKeybindManager14handleKeybindsERKjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES1_RKibj+0x6c3) [0x5c88d3] _ZN15CKeybindManager14handleKeybindsERKjRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES1_RKibj ??:? #15 | /etc/profiles/per-user/mslxl/bin/Hyprland(_ZN15CKeybindManager10onKeyEventEP22wlr_keyboard_key_eventP9SKeyboard+0x7c7) [0x5caf77] _ZN15CKeybindManager10onKeyEventEP22wlr_keyboard_key_eventP9SKeyboard ??:? #16 | /etc/profiles/per-user/mslxl/bin/Hyprland(_ZN13CInputManager13onKeyboardKeyEP22wlr_keyboard_key_eventP9SKeyboard+0xa1) [0x5e02f1] _ZN13CInputManager13onKeyboardKeyEP22wlr_keyboard_key_eventP9SKeyboard ??:? #17 | /etc/profiles/per-user/mslxl/bin/Hyprland(_ZN15CHyprWLListener4emitEPv+0x3b) [0x58423b] _ZN15CHyprWLListener4emitEPv ??:? #18 | /etc/profiles/per-user/mslxl/bin/Hyprland(_Z13handleWrappedP11wl_listenerPv+0x3a) [0x5859da] _Z13handleWrappedP11wl_listenerPv ??:? #19 | /nix/store/b37hkrr92fj1ig2zjmbi9d61dnllxfpd-wayland-1.22.0/lib/libwayland-server.so.0(wl_signal_emit_mutable+0x7c) [0x7fa69d6afa1c] ?? ??:0 #20 | /nix/store/6w74qcd3ii5bs696wam287hkwna975gd-wlroots-hyprland-0.17.0-dev/lib/libwlroots.so.12(wlr_keyboard_notify_key+0x20) [0x7fa69d612f90] ?? ??:0 #21 | /nix/store/6w74qcd3ii5bs696wam287hkwna975gd-wlroots-hyprland-0.17.0-dev/lib/libwlroots.so.12(+0x5f1c1) [0x7fa69d5e41c1] ?? ??:0 #22 | /nix/store/6w74qcd3ii5bs696wam287hkwna975gd-wlroots-hyprland-0.17.0-dev/lib/libwlroots.so.12(+0x5e2cb) [0x7fa69d5e32cb] ?? ??:0 #23 | /nix/store/b37hkrr92fj1ig2zjmbi9d61dnllxfpd-wayland-1.22.0/lib/libwayland-server.so.0(wl_event_loop_dispatch+0xa2) [0x7fa69d6b18f2] ?? ??:0 #24 | /nix/store/b37hkrr92fj1ig2zjmbi9d61dnllxfpd-wayland-1.22.0/lib/libwayland-server.so.0(wl_display_run+0x25) [0x7fa69d6af455] ?? ??:0 #25 | /etc/profiles/per-user/mslxl/bin/Hyprland(main+0xb29) [0x4888d9] main ??:? #26 | /nix/store/j6mwswpa6zqhdm1lm2lv9iix3arn774g-glibc-2.38-27/lib/libc.so.6(+0x27fce) [0x7fa69ca1afce] ?? ??:0 #27 | /nix/store/j6mwswpa6zqhdm1lm2lv9iix3arn774g-glibc-2.38-27/lib/libc.so.6(__libc_start_main+0x89) [0x7fa69ca1b089] ?? ??:0 #28 | /etc/profiles/per-user/mslxl/bin/Hyprland(_start+0x25) [0x49ca45] _start ??:? Log tail: [LOG] Registered signal for owner 19750d0: 19808c0 -> 1975888 (owner: XWayland Window) [LOG] Registered signal for owner 19750d0: 1980830 -> 1975208 (owner: XWayland Window) [LOG] Registered signal for owner 19750d0: 1980960 -> 19757b8 (owner: XWayland Window) [LOG] Registered signal for owner 19750d0: 1980840 -> 1975618 (owner: XWayland Window) [LOG] Registered signal for owner 180e980: 1972048 -> 180e988 (owner: Keyboard) [LOG] Registered signal for owner 180e980: 1972038 -> 180e9f0 (owner: Keyboard) [LOG] Registered signal for owner 180e980: 1971f18 -> 180eac0 (owner: Keyboard) [LOG] Registered signal for owner 180e980: 1972058 -> 180ea58 (owner: Keyboard) [LOG] ApplyConfigToKeyboard for "wlr_virtual_keyboard_v1", hasconfig: 0 [LOG] Attempting to create a keymap for layout us with variant (rules: , model: , options: ) [LOG] Set the keyboard layout to us and variant to for keyboard "wlr_virtual_keyboard_v1" [LOG] New virtual keyboard created, pointers Hypr: 180e980 and WLR: 1971f00 [LOG] New IME added! [LOG] Registered signal for owner 10ae690: 2bdc340 -> 10ae738 (owner: IMERelay) [LOG] Registered signal for owner 10ae690: 2bdc370 -> 10ae7a0 (owner: IMERelay) [LOG] Registered signal for owner 10ae690: 2bdc360 -> 10ae808 (owner: IMERelay) [LOG] Registered signal for owner 10ae690: 2bdc350 -> 10ae870 (owner: IMERelay) [LOG] FractionalScaleManager bound successfully! [LOG] Callback 10ae998 -> 10ae990, CWLSurface removed. [LOG] CWLSurface 10ae958 called destroy() [LOG] Registered signal for owner 2be2180: 2bd9bc0 -> 2be2370 (owner: layerSurface) [LOG] Registered signal for owner 2be2180: 2bdc7f8 -> 2be2238 (owner: layerSurface) [LOG] Registered signal for owner 2be2180: 2bd9bd0 -> 2be22a0 (owner: layerSurface) [LOG] Registered signal for owner 2be2180: 2bd9be0 -> 2be2308 (owner: layerSurface) [LOG] Registered signal for owner 2be2180: 2bdc808 -> 2be23d8 (owner: layerSurface) [LOG] LayerSurface 2bdc730 (namespace notifications layer 3) created on monitor eDP-1 [LOG] LayerSurface 13e8f30 arranged: x: 0 y: 14 w: 2560 h: 37 with margins: t: 14 l: 0 r: 0 b: 0 [LOG] LayerSurface 18884e0 arranged: x: 0 y: 0 w: 2560 h: 1600 with margins: t: 0 l: 0 r: 0 b: 0 [LOG] LayerSurface 2bc65d0 arranged: x: 1125.5 y: 81 w: 309 h: 123 with margins: t: 30 l: 0 r: 0 b: 30 [LOG] Monitor eDP-1 layers arranged: reserved: [0.00000, 51.00000] [0.00000, 0.00000] [LOG] LayerSurface 2bdc730 mapped [LOG] Registered signal for owner 2be21a0: 2bd9c00 -> 2be21b8 (owner: CWLSurface) [LOG] CWLSurface 2be21a0 called init() [LOG] LayerSurface 13e8f30 arranged: x: 0 y: 14 w: 2560 h: 37 with margins: t: 14 l: 0 r: 0 b: 0 [LOG] LayerSurface 18884e0 arranged: x: 0 y: 0 w: 2560 h: 1600 with margins: t: 0 l: 0 r: 0 b: 0 [LOG] LayerSurface 2bc65d0 arranged: x: 1125.5 y: 81 w: 309 h: 123 with margins: t: 30 l: 0 r: 0 b: 30 [LOG] Monitor eDP-1 layers arranged: reserved: [0.00000, 51.00000] [0.00000, 0.00000] [LOG] LayerSurface 13e8f30 arranged: x: 0 y: 14 w: 2560 h: 37 with margins: t: 14 l: 0 r: 0 b: 0 [LOG] LayerSurface 18884e0 arranged: x: 0 y: 0 w: 2560 h: 1600 with margins: t: 0 l: 0 r: 0 b: 0 [LOG] LayerSurface 2bc65d0 arranged: x: 1125.5 y: 81 w: 309 h: 71 with margins: t: 30 l: 0 r: 0 b: 30 [LOG] Monitor eDP-1 layers arranged: reserved: [0.00000, 51.00000] [0.00000, 0.00000] [LOG] Registered signal for owner 10ae958: 2a58030 -> 10ae970 (owner: CWLSurface) [LOG] CWLSurface 10ae958 called init() [LOG] Callback 10ae998 -> 10ae990, CWLSurface removed. [LOG] CWLSurface 10ae958 called destroy() [LOG] Registered signal for owner 10ae958: 2a58030 -> 10ae970 (owner: CWLSurface) [LOG] CWLSurface 10ae958 called init() [LOG] Keybind triggered, calling dispatcher (64, , 50) [LOG] [hookSystem] New hook event registered: workspace [LOG] Set keyboard focus to surface 2ac9cf0 ```

Here is my config: hyprland.conf and hyprland.nix


Edited: I do not know why, but if you are using exec-once = foot -s in config and crash on every startup, just remove this line. This works for me.

It's strange that foot server did not create any windows, but it would leads to hyprland crash with waybar and fcitx5

reinux commented 6 months ago

Yes. The problem doesn't really impact usage but its curious how it crashes

Not exactly a use case per se, but this whole time I was starting it in a terminal because I was worried I'd have to deal with a crash loop if I'd put it in startup. Ironic that that would have fixed the problem from the start lol

RossComputerGuy commented 4 months ago

I've also ran into Hyprland crashing when I activate fcitx5, though I don't use waybar (I use AGS).

$ hyprctl version
Hyprland, built from branch  at commit c4365f20ed8ff0dd480b7ed7cf1bfff1a0b6911a  ().
Date: 2024-01-17
Tag:

flags: (if any)
legacyrenderer

On NixOS 23.11 running with Asahi patches on M1 Pro.

Canvis-Me commented 4 months ago

Got Hyprland, eww and fcitx5 in FreeBSD 14. When attended to change the workplace by press SUPER+NUM, it crashed from time to time.

reinux commented 3 months ago

For me this seems to happen once or twice a day. Same setup, fcitx5 and waybar.

vaxerski commented 3 months ago

post debug stacktrace, many things have changed https://wiki.hyprland.org/Crashes-and-Bugs/#obtaining-a-debug-stacktrace

Canvis-Me commented 3 months ago

After daily usage for a day, Hyprland worked well with fcitx5 and waybar. No crash happened until now.

SuceV587 commented 2 months ago

I've also ran into Hyprland crashing when I activate fcitx5, though I don't use waybar (I use AGS).

$ hyprctl version
Hyprland, built from branch  at commit c4365f20ed8ff0dd480b7ed7cf1bfff1a0b6911a  ().
Date: 2024-01-17
Tag:

flags: (if any)
legacyrenderer

On NixOS 23.11 running with Asahi patches on M1 Pro.

It happend for me