Closed Fymyte closed 7 months ago
bad news
Doesn't crash for me on -git.
Mmm ok I will start by installing the -git and check
Checked today, I still get the issue with the latest git. I will try to install the asan version
-git crash report?
i can reproduce,
Core was generated by `Hyprland'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007ffff73ae5bc in ?? () from /usr/lib64/libc.so.6
[Current thread is 1 (Thread 0x7ffff645eac0 (LWP 931160))]
(gdb) bt
#0 0x00007ffff73ae5bc in ??? () at /usr/lib64/libc.so.6
#1 0x00007ffff7360fc2 in raise () at /usr/lib64/libc.so.6
#2 0x00007ffff734a4e1 in abort () at /usr/lib64/libc.so.6
#3 0x00005555555e17a2 in handleUnrecoverableSignal (sig=6) at ../hyprland-source/src/Compositor.cpp:37
#4 0x00007ffff7361060 in <signal handler called> () at /usr/lib64/libc.so.6
#5 0x00007ffff73ae5bc in ??? () at /usr/lib64/libc.so.6
#6 0x00007ffff7360fc2 in raise () at /usr/lib64/libc.so.6
#7 0x00007ffff734a4e1 in abort () at /usr/lib64/libc.so.6
#8 0x00007ffff76db72b in std::__glibcxx_assert_fail(char const*, int, char const*, char const*) ()
at /usr/lib/gcc/x86_64-pc-linux-gnu/13/libstdc++.so.6
#9 0x0000555555679a48 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::back (this=0x7fffffffc890)
at /usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13/bits/basic_string.h:1341
#10 0x0000555555679e41 in operator() (__closure=0x7fffffffc610, pos=7) at ../hyprland-source/src/config/ConfigManager.cpp:2048
#11 0x000055555567a84c in CConfigManager::handleWindowRuleV2
(this=0x555555b599f0, command="windowrulev2", value="suppressevent maximize, class:")
at ../hyprland-source/src/config/ConfigManager.cpp:2055
#12 0x0000555555668726 in handleWindowRuleV2 (c=0x7fffffffcba0 "windowrulev2", v=0x555556837e50 "suppressevent maximize, class:")
at ../hyprland-source/src/config/ConfigManager.cpp:218
#13 0x00007ffff7a93ae2 in Hyprlang::CConfig::parseLine(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool) () at /usr/lib64/libhyprlang.so.2
#14 0x00007ffff7a94b5f in Hyprlang::CConfig::parseFile(char const*) () at /usr/lib64/libhyprlang.so.2
#15 0x00007ffff7a9573f in Hyprlang::CConfig::parse() () at /usr/lib64/libhyprlang.so.2
#16 0x00005555556696af in CConfigManager::reload (this=0x555555b599f0) at ../hyprland-source/src/config/ConfigManager.cpp:630
#17 0x000055555566fa88 in CConfigManager::tick (this=0x555555b599f0) at ../hyprland-source/src/config/ConfigManager.cpp:903
#18 0x000055555579e496 in handleTimer (data=0x555556493310) at ../hyprland-source/src/managers/ThreadManager.cpp:14
#19 0x00007ffff7f9bbfd in wl_event_loop_dispatch () at /usr/lib64/libwayland-server.so.0
#20 0x00007ffff7f9bdbe in wl_display_run () at /usr/lib64/libwayland-server.so.0
#21 0x00005555555e6957 in CCompositor::startCompositor (this=0x555555b53ca0) at ../hyprland-source/src/Compositor.cpp:630
#22 0x0000555555765c66 in main (argc=1, argv=0x7fffffffdc88) at ../hyprland-source/src/main.cpp:111
(gdb)
Thanks I didn't have the time to recrash 😅
this should fix it. Lmk.
Confirmed fixed on master :+1: thanks for this amazing wm and swiftness of response
Hyprland Version
System/Version info
```sh Hyprland, built from branch HEAD at commit 3875679755014997776e091ff8903acfb311dd2f (props: bump ver to 0.38.0). Date: Mon Apr 1 18:30:37 2024 Tag: v0.38.0 flags: (if any) System Information: System name: Linux Node name: bigarch Release: 6.8.2-arch2-1 Version: #1 SMP PREEMPT_DYNAMIC Thu, 28 Mar 2024 17:06:35 +0000 GPU information: 08:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] [1002:73df] (rev c0) (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: ```Bug or Regression?
Bug
Description
When I save hyprland.conf with a windowrule having an empty class property, hyprland crashes instantly
How to reproduce
hyprland.conf
with only this line:Crash reports, logs, images, videos
The backtrace is not really relevant for me, I didn't compile Hyprland myself with so the elf is stripped/no symbol.
At least it seems to crash in the constructor of
CConfigManager
Crash report
```sh -------------------------------------------- Hyprland Crash Report -------------------------------------------- Oops Hyprland received signal 6 (Aborted) Version: 3875679755014997776e091ff8903acfb311dd2f Tag: v0.38.0 System info: System name: Linux Node name: bigarch Release: 6.8.2-arch2-1 Version: #1 SMP PREEMPT_DYNAMIC Thu, 28 Mar 2024 17:06:35 +0000 GPU: 08:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] [1002:73df] (rev c0) (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 Backtrace: #0 | Hyprland(_Z12getBacktracev+0x62) [0x5d0cf0631c02] getBacktrace() ??:? #1 | Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x5b9) [0x5d0cf05de199] CrashReporter::createAndSaveCrash(int) ??:? #2 | Hyprland(_Z25handleUnrecoverableSignali+0x4c) [0x5d0cf056c5ec] handleUnrecoverableSignal(int) ??:? #3 | /usr/lib/libc.so.6(+0x3c770) [0x7e371ad6e770] ?? ??:0 #4 | /usr/lib/libc.so.6(+0x8d32c) [0x7e371adbf32c] main ??:? #5 | /usr/lib/libc.so.6(gsignal+0x18) [0x7e371ad6e6c8] ?? ??:0 #6 | /usr/lib/libc.so.6(abort+0xd7) [0x7e371ad564b8] ?? ??:0 #7 | /usr/lib/libstdc++.so.6(+0xdd3b2) [0x7e371b0dd3b2] CConfigManager::CConfigManager() ??:? #8 | Hyprland(+0xf5bf8) [0x5d0cf05cfbf8] CConfigManager::handleLayerRule(std::__cxx11::basic_string