-
-
Notifications
You must be signed in to change notification settings - Fork 880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hyprland crash: events/Windows.cpp #6601
Comments
does adding a nullcheck fix it? |
Gonna close for now, hasn't crashed last couple times coming back and I think I saw a couple commits that might have protected against it. I'll reopen if I see it again. |
I played around debugging this a bit and adding some null checks and debugging statements. I can keep moving the crash further back but it seems like it stems from my 'on-created-empty' workspace rule that opens an application as a floating window during a workspace shuffle from one monitor to another. The application that opens has some windowrules for arranging it how i like. After I remove the on-created-empty rule that spawns that application, I was able to avoid the crash on turning one monitor off and back on. My patch for the debug statements: a93779b Hyprland Crash Report--------------------------------------------
Hyprland Crash Report
--------------------------------------------
I tried so hard, and got so far...
Hyprland received signal 11(SEGV)
Version: 5c99b0635905fba154459624e50ad4a6cf0af41a
Tag:
System info:
System name: Linux
Node name: khanelinix
Release: 6.9.7
Version: #1-NixOS SMP PREEMPT_DYNAMIC Thu Jun 27 11:52:32 UTC 2024
GPU:
05:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA102 [GeForce RTX 3080] [10de:2206] (rev a1) (prog-if 00 [VGA controller])
0d:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Device [1002:744c] (rev c8) (prog-if 00 [VGA controller])
os-release:
ANSI_COLOR="1;34"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="24.11.20240629.2741b4b"
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.11 (Vicuna)"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="24.11 (Vicuna)"
VERSION_CODENAME=vicuna
VERSION_ID="24.11"
Backtrace:
# | /etc/profiles/per-user/khaneliman/bin/Hyprland(_Z12getBacktracev+0x48) [0x6bdf88]
getBacktrace()
/build/source/src/helpers/MiscFunctions.cpp:792
#1 | /etc/profiles/per-user/khaneliman/bin/Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x998) [0x635078]
std::filesystem::__cxx11::path::path<char [15], std::filesystem::__cxx11::path>(char const (&) [15], std::filesystem::__cxx11::path::format)
/nix/store/hdhz1am7jpgkh3sq7sfqwz041pf01mnd-gcc-13.3.0/include/c++/13.3.0/bits/fs_path.h:331 (discriminator 1)
#2 | /etc/profiles/per-user/khaneliman/bin/Hyprland(_Z25handleUnrecoverableSignali+0x5f) [0x5b861f]
handleUnrecoverableSignal(int)
/build/source/src/Compositor.cpp:64
#3 | /nix/store/dbwp0scbb0rk78m636sb7cvycz8xzgyh-glibc-2.39-52/lib/libc.so.6(+0x3ff40) [0x7fd260c51f40]
??
??:0
#4 | /etc/profiles/per-user/khaneliman/bin/Hyprland(_ZN8CMonitor8isMirrorEv+0) [0x6c5110]
CMonitor::isMirror()
/build/source/src/helpers/Monitor.cpp:386
#5 | /etc/profiles/per-user/khaneliman/bin/Hyprland(_ZN13CHyprRenderer13damageMonitorEP8CMonitor+0x5b) [0x8843ab]
CHyprRenderer::damageMonitor(CMonitor*)
/build/source/src/render/Renderer.cpp:1762 (discriminator 3)
#6 | /etc/profiles/per-user/khaneliman/bin/Hyprland() [0x5b9f3b]
CCompositor::changeWindowZOrder(Hyprutils::Memory::CSharedPointer<CWindow>, bool)::{lambda(Hyprutils::Memory::CSharedPointer<CWindow>, bool)#1}::operator()(Hyprutils::Memory::CSharedPointer<CWindow>, bool) const
/build/source/src/Compositor.cpp:1299
#7 | /etc/profiles/per-user/khaneliman/bin/Hyprland(_ZN11CCompositor18changeWindowZOrderEN9Hyprutils6Memory14CSharedPointerI7CWindowEEb+0xcc) [0x5ce38c]
Hyprutils::Memory::CSharedPointer<CWindow>::~CSharedPointer()
/nix/store/iqc95z9jw49gj6jsfrsxgxymwyvvfbab-hyprutils-0.pre+date=2024-06-25_1f6bbec-dev/include/hyprutils/memory/SharedPtr.hpp:172
#8 | /etc/profiles/per-user/khaneliman/bin/Hyprland(_ZN6Events18listener_mapWindowEPvS0_+0x2083) [0x6b1363]
Hyprutils::Memory::CSharedPointer<CWindow>::~CSharedPointer()
/nix/store/iqc95z9jw49gj6jsfrsxgxymwyvvfbab-hyprutils-0.pre+date=2024-06-25_1f6bbec-dev/include/hyprutils/memory/SharedPtr.hpp:172
#9 | /etc/profiles/per-user/khaneliman/bin/Hyprland() [0x673b09]
std::any::has_value() const
/nix/store/hdhz1am7jpgkh3sq7sfqwz041pf01mnd-gcc-13.3.0/include/c++/13.3.0/any:328
#1 | /nix/store/4122p3jfrwq3ha55w1qrbw1ypvdgsv4i-hyprutils-0.pre+date=2024-06-25_1f6bbec/lib/libhyprutils.so.0(_ZN9Hyprutils6Signal15CSignalListener4emitESt3any+0x57) [0x7fd2612650d7]
??
??:0
#11 | /nix/store/4122p3jfrwq3ha55w1qrbw1ypvdgsv4i-hyprutils-0.pre+date=2024-06-25_1f6bbec/lib/libhyprutils.so.0(_ZN9Hyprutils6Signal7CSignal4emitESt3any+0x34e) [0x7fd261265b5e]
??
??:0
#12 | /etc/profiles/per-user/khaneliman/bin/Hyprland() [0x81c358]
std::_Function_handler<void (std::any), CXDGSurfaceResource::CXDGSurfaceResource(Hyprutils::Memory::CSharedPointer<CXdgSurface>, Hyprutils::Memory::CSharedPointer<CXDGWMBase>, Hyprutils::Memory::CSharedPointer<CWLSurfaceResource>)::{lambda(std::any)#2}>::_M_invoke(std::_Any_data const&, std::any&&)
/build/source/src/protocols/XDGShell.cpp:347 (discriminator 1)
#13 | /nix/store/4122p3jfrwq3ha55w1qrbw1ypvdgsv4i-hyprutils-0.pre+date=2024-06-25_1f6bbec/lib/libhyprutils.so.0(_ZN9Hyprutils6Signal15CSignalListener4emitESt3any+0x57) [0x7fd2612650d7]
??
??:0
#14 | /nix/store/4122p3jfrwq3ha55w1qrbw1ypvdgsv4i-hyprutils-0.pre+date=2024-06-25_1f6bbec/lib/libhyprutils.so.0(_ZN9Hyprutils6Signal7CSignal4emitESt3any+0x34e) [0x7fd261265b5e]
??
??:0
#15 | /etc/profiles/per-user/khaneliman/bin/Hyprland() [0x82e074]
std::any::has_value() const
/nix/store/hdhz1am7jpgkh3sq7sfqwz041pf01mnd-gcc-13.3.0/include/c++/13.3.0/any:328
#16 | /etc/profiles/per-user/khaneliman/bin/Hyprland(_ZN18CWLSurfaceResource8bfHelperESt6vectorIN9Hyprutils6Memory14CSharedPointerIS_EESaIS4_EESt8functionIFvS4_RKNS1_4Math8Vector2DEPvEESC_+0x5d3) [0x831cb3]
Hyprutils::Memory::CSharedPointer<CWLSurfaceResource>::~CSharedPointer()
/nix/store/iqc95z9jw49gj6jsfrsxgxymwyvvfbab-hyprutils-0.pre+date=2024-06-25_1f6bbec-dev/include/hyprutils/memory/SharedPtr.hpp:172
#17 | /etc/profiles/per-user/khaneliman/bin/Hyprland(_ZN18CWLSurfaceResource12breadthfirstESt8functionIFvN9Hyprutils6Memory14CSharedPointerIS_EERKNS1_4Math8Vector2DEPvEES9_+0x135) [0x832625]
std::vector<Hyprutils::Memory::CSharedPointer<CWLSurfaceResource>, std::allocator<Hyprutils::Memory::CSharedPointer<CWLSurfaceResource> > >::~vector()
/nix/store/hdhz1am7jpgkh3sq7sfqwz041pf01mnd-gcc-13.3.0/include/c++/13.3.0/bits/stl_vector.h:735
#18 | /etc/profiles/per-user/khaneliman/bin/Hyprland() [0x833169]
std::function<void (Hyprutils::Memory::CSharedPointer<CWLSurfaceResource>, Hyprutils::Math::Vector2D const&, void*)>::~function()
/nix/store/hdhz1am7jpgkh3sq7sfqwz041pf01mnd-gcc-13.3.0/include/c++/13.3.0/bits/std_function.h:334
#19 | /etc/profiles/per-user/khaneliman/bin/Hyprland() [0x8f53af]
_CWlSurfaceCommit(wl_client*, wl_resource*)
/build/source/protocols/wayland.cpp:1786
#2 | /nix/store/nj9g42fdsm8l2z43kfcahch3px2q209a-libffi-3.4.6/lib/libffi.so.8(+0xa052) [0x7fd2610cc052]
??
??:0
#21 | /nix/store/nj9g42fdsm8l2z43kfcahch3px2q209a-libffi-3.4.6/lib/libffi.so.8(+0x7ee5) [0x7fd2610c9ee5]
??
??:0
#22 | /nix/store/nj9g42fdsm8l2z43kfcahch3px2q209a-libffi-3.4.6/lib/libffi.so.8(ffi_call+0xd8) [0x7fd2610caad8]
??
??:0
#23 | /nix/store/p70yz972riakl5l0k7nzakyybi5r8481-wayland-1.22.0/lib/libwayland-server.so.0(+0xd841) [0x7fd26199c841]
??
??:0
#24 | /nix/store/p70yz972riakl5l0k7nzakyybi5r8481-wayland-1.22.0/lib/libwayland-server.so.0(+0x8c4b) [0x7fd261997c4b]
??
??:0
#25 | /nix/store/p70yz972riakl5l0k7nzakyybi5r8481-wayland-1.22.0/lib/libwayland-server.so.0(wl_event_loop_dispatch+0xa2) [0x7fd26199a8f2]
??
??:0
#26 | /nix/store/p70yz972riakl5l0k7nzakyybi5r8481-wayland-1.22.0/lib/libwayland-server.so.0(wl_display_run+0x25) [0x7fd261998455]
??
??:0
#27 | /etc/profiles/per-user/khaneliman/bin/Hyprland(_ZN17CEventLoopManager9enterLoopEP10wl_displayP13wl_event_loop+0x51) [0x749d61]
std::__new_allocator<char>::allocate(unsigned long, void const*)
/nix/store/hdhz1am7jpgkh3sq7sfqwz041pf01mnd-gcc-13.3.0/include/c++/13.3.0/bits/new_allocator.h:151
#28 | /etc/profiles/per-user/khaneliman/bin/Hyprland(main+0x81d) [0x57c3fd]
main
/build/source/src/main.cpp:118 (discriminator 1)
#29 | /nix/store/dbwp0scbb0rk78m636sb7cvycz8xzgyh-glibc-2.39-52/lib/libc.so.6(+0x2a10e) [0x7fd260c3c10e]
??
??:0
#3 | /nix/store/dbwp0scbb0rk78m636sb7cvycz8xzgyh-glibc-2.39-52/lib/libc.so.6(__libc_start_main+0x89) [0x7fd260c3c1c9]
??
??:0
#31 | /etc/profiles/per-user/khaneliman/bin/Hyprland(_start+0x25) [0x5b84c5]
_start
??:?
Log tail:
[LOG] Window 36033f60 set class to virt-manager
[LOG] Searching for matching rules for virt-manager (title: Virtual Machine Manager)
[LOG] Window rule size 1000 1330 -> class:^(virt-manager)$, title:^(Virtual Machine Manager)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Window rule float -> class:^(virt-manager)$, title:^(Virtual Machine Manager)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Window rule move 80% 6% -> class:^(virt-manager)$, title:^(Virtual Machine Manager)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Window rule workspace 8 silent -> class:^(virt-manager|qemu)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Searching for matching rules for virt-manager (title: Virtual Machine Manager)
[LOG] Window rule size 1000 1330 -> class:^(virt-manager)$, title:^(Virtual Machine Manager)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Window rule float -> class:^(virt-manager)$, title:^(Virtual Machine Manager)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Window rule move 80% 6% -> class:^(virt-manager)$, title:^(Virtual Machine Manager)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Window rule workspace 8 silent -> class:^(virt-manager|qemu)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Searching for matching rules for virt-manager (title: Virtual Machine Manager)
[LOG] Window rule size 1000 1330 -> class:^(virt-manager)$, title:^(Virtual Machine Manager)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Window rule float -> class:^(virt-manager)$, title:^(Virtual Machine Manager)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Window rule move 80% 6% -> class:^(virt-manager)$, title:^(Virtual Machine Manager)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Window rule workspace 8 silent -> class:^(virt-manager|qemu)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Layout predicts size [Vector2D: x: 1000, y: 1330] for [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] [XDGShell] xdg_surface 35c36420 requests geometry 0x0 1000x1330
[LOG] [WLCompositor] New wl_region with id 34 at 3604d140
[LOG] New window contains HL_INITIAL_WORKSPACE_TOKEN: 59f1d428-8454-43f9-8db5-4b238b6afe3d
[LOG] HL_INITIAL_WORKSPACE_TOKEN 59f1d428-8454-43f9-8db5-4b238b6afe3d -> 3
[LOG] Searching for matching rules for virt-manager (title: Virtual Machine Manager)
[LOG] Window rule size 1000 1330 -> class:^(virt-manager)$, title:^(Virtual Machine Manager)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Window rule float -> class:^(virt-manager)$, title:^(Virtual Machine Manager)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Window rule move 80% 6% -> class:^(virt-manager)$, title:^(Virtual Machine Manager)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Window rule workspace 8 silent -> class:^(virt-manager|qemu)$ matched [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Rule workspace matched by [Window 36033f60: title: "Virtual Machine Manager"], class:^(virt-manager|qemu)$ applied.
[LOG] [Troubleshoot] Monitor is null for ID: 0
[LOG] [Troubleshoot] pWorkspace retrieved successfully.
[LOG] [Troubleshoot] pWorkspace is not a special workspace.
[LOG] [Troubleshoot] workspaceSilent remains true.
[LOG] WINDOW BEFORE:
[LOG] Monitor : 0
[LOG] Workspace : 8
[LOG] Floating : true
[LOG] Title : Virtual Machine Manager
[LOG] Class: virt-manager
[LOG] WINDOW AFTER:
[LOG] Monitor : 0
[LOG] Workspace : 8
[LOG] Floating : true
[LOG] Title : Virtual Machine Manager
[LOG] Class: virt-manager
[LOG] Window is floating, calling onWindowCreatedFloating
[ERR] [Window 36033f60: title: "Virtual Machine Manager", monitor: 0] has an invalid monitor in onWindowCreatedFloating!!!
[LOG] Rule size, applying to [Window 36033f60: title: "Virtual Machine Manager"]
[LOG] Rule move, applying to [Window 36033f60: title: "Virtual Machine Manager"] |
Regression?
No
System Info and Version
System/Version info
Description
Hyprland crash after coming back to computer. From other crashes I've seen while trying to test some things, it's when it wakes back up and each monitor is waking up. This is the first debug log i have that pointed to the line it crashed on.
Looks like it's crashing on
How to reproduce
For me it's been happening whenever DPMS triggers and I come back to my computer. I think I was able to do it with just unplugging and plugging in monitors, too.
Crash reports, logs, images, videos
The text was updated successfully, but these errors were encountered: