Crash after plugging in external monitor #10307
-
|
Steps to reproduce:
I am able to plug the monitor after I unlock without any problems. Crash happens only when plugging monitor while suspended or locked. Even unplugging it while suspended works fine. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
crash report pls |
Beta Was this translation helpful? Give feedback.
-
|
Here it is: |
Beta Was this translation helpful? Give feedback.
-
|
I am still facing the same issue with hyprland v0.49.0 on asahi: Tested with a variety of HDMI monitors (mostly 4k resolution), and the crash is irrespective of whether the monitor is configured in hyprland (a. monitor unconfigured, b. mode It seems to be the same issue @Stanko2 reported here (monitor's supported modes are not recognized), but since v0.49.0 fixed it for @Stanko, possibly a distinct root cause. Crash log after system suspend and reattach of monitor: --------------------------------------------
Hyprland Crash Report
--------------------------------------------
Who tried dividing by zero?!
Hyprland received signal 11(SEGV)
Version: 9958d297641b5c84dcff93f9039d80a5ad37ab00
Tag: v0.49.0
Date: 2025-05-08
Flags:
System info:
System name: Linux
Release: 6.14.7-asahi
Version: #1-NixOS SMP PREEMPT_DYNAMIC Tue Jan 1 00:00:00 UTC 1980
GPU:
os-release:
ANSI_COLOR="0;38;2;126;186;228"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="25.11.20250530.490fa18"
CPE_NAME="cpe:/o:nixos:nixos:25.11"
DEFAULT_HOSTNAME=nixos
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
ID_LIKE=""
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 25.11 (Xantusia)"
SUPPORT_URL="https://nixos.org/community.html"
VARIANT=""
VARIANT_ID=""
VENDOR_NAME=NixOS
VENDOR_URL="https://nixos.org/"
VERSION="25.11 (Xantusia)"
VERSION_CODENAME=xantusia
VERSION_ID="25.11"
Backtrace:
# | /nix/store/6la7snzbnvd0akdyx19lhrsapy6060w8-hyprland-0.49.0/bin/Hyprland(_Z12getBacktracev+0x60) [0x808860]
getBacktrace()
??:?
#1 | /nix/store/6la7snzbnvd0akdyx19lhrsapy6060w8-hyprland-0.49.0/bin/Hyprland(_ZN14NCrashReporter18createAndSaveCrashEi+0x6e4) [0x70e6ac]
NCrashReporter::createAndSaveCrash(int)
??:?
#2 | /nix/store/6la7snzbnvd0akdyx19lhrsapy6060w8-hyprland-0.49.0/bin/Hyprland() [0x663c7c]
handleUnrecoverableSignal(int)
??:?
#3 | linux-vdso.so.1(__kernel_rt_sigreturn+0) [0xffff0d9309b0]
??
??:0
#4 | /nix/store/6la7snzbnvd0akdyx19lhrsapy6060w8-hyprland-0.49.0/bin/Hyprland(_ZN15CHyprOpenGLImpl22renderTexturePrimitiveEN9Hyprutils6Memory14CSharedPointerI8CTextureEERKNS0_4Math4CBoxE+0x760) [0xc1bd30]
CHyprOpenGLImpl::renderTexturePrimitive(Hyprutils::Memory::CSharedPointer<CTexture>, Hyprutils::Math::CBox const&)
??:?
#5 | /nix/store/6la7snzbnvd0akdyx19lhrsapy6060w8-hyprland-0.49.0/bin/Hyprland(_ZN15CHyprOpenGLImpl3endEv+0x574) [0xc1c474]
CHyprOpenGLImpl::end()
??:?
#6 | /nix/store/6la7snzbnvd0akdyx19lhrsapy6060w8-hyprland-0.49.0/bin/Hyprland(_ZN13CHyprRenderer9endRenderERKSt8functionIFvvEE+0x148) [0xc36ab8]
CHyprRenderer::endRender(std::function<void ()> const&)
??:?
#7 | /nix/store/6la7snzbnvd0akdyx19lhrsapy6060w8-hyprland-0.49.0/bin/Hyprland(_ZN13CHyprRenderer13renderMonitorEN9Hyprutils6Memory14CSharedPointerI8CMonitorEE+0xaf0) [0xc50538]
CHyprRenderer::renderMonitor(Hyprutils::Memory::CSharedPointer<CMonitor>)
??:?
#8 | /nix/store/6la7snzbnvd0akdyx19lhrsapy6060w8-hyprland-0.49.0/bin/Hyprland(_ZN8CMonitor14onMonitorFrameEv+0x49c) [0x81b17c]
CMonitor::onMonitorFrame()
??:?
#9 | /nix/store/6la7snzbnvd0akdyx19lhrsapy6060w8-hyprland-0.49.0/bin/Hyprland(_ZN11CCompositor12onNewMonitorEN9Hyprutils6Memory14CSharedPointerIN10Aquamarine7IOutputEEE+0x678) [0x681cbc]
CCompositor::onNewMonitor(Hyprutils::Memory::CSharedPointer<Aquamarine::IOutput>)
??:?
#1 | /nix/store/6la7snzbnvd0akdyx19lhrsapy6060w8-hyprland-0.49.0/bin/Hyprland(_ZN11CCompositor10initServerENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi+0x578) [0x688db8]
CCompositor::initServer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)
??:?
#11 | /nix/store/6la7snzbnvd0akdyx19lhrsapy6060w8-hyprland-0.49.0/bin/Hyprland(main+0x79c) [0x87bebc]
main
??:?
#12 | /nix/store/7kpxf47mzykkdn39lcnhj9z9ngpihamf-glibc-2.40-66/lib/libc.so.6(+0x262b4) [0xffff0b9062b4]
??
??:0
#13 | /nix/store/7kpxf47mzykkdn39lcnhj9z9ngpihamf-glibc-2.40-66/lib/libc.so.6(__libc_start_main+0x98) [0xffff0b906398]
??
??:0
#14 | /nix/store/6la7snzbnvd0akdyx19lhrsapy6060w8-hyprland-0.49.0/bin/Hyprland(_start+0x30) [0x6086f0]
_start
??:?
Log tail:
[LOG] Process Created with pid 46511
[LOG] Executing /nix/store/rn95vmivyasb341l4capfn50w6jc0y0m-dbus-1.14.10/bin/dbus-update-activation-environment --systemd DISPLAY HYPRLAND_INSTANCE_SIGNATURE WAYLAND_DISPLAY XDG_CURRENT_DESKTOP && systemctl --user stop hyprland-session.target && systemctl --user start hyprland-session.target
[LOG] Process Created with pid 46513
[LOG] Executing hyprshade auto
[LOG] Process Created with pid 46515
[LOG] Executing alacritty
[LOG] Process Created with pid 46519
[LOG] Executing /home/lederstrumpf/development-dirty-playground/ianny/build/src/ianny
[LOG] Process Created with pid 46522
[LOG] Executing SSH_AUTH_SOCK=/run/user/1000/gnupg/S.gpg-agent.ssh emacs
[LOG] Process Created with pid 46524
[LOG] Executing sleep 150 && unlock-local-key && pm-bridge-up
[LOG] Process Created with pid 46526
[LOG] Executing swayosd-server
[LOG] Process Created with pid 46528
[LOG] Executing wl-paste --type text --watch cliphist store
[LOG] Process Created with pid 46531
[LOG] Executing wl-paste --type image --watch cliphist store
[LOG] Process Created with pid 46533
[LOG] Applying monitor rule for eDP-1
[LOG] Not applying a new rule to eDP-1 because it's already applied!
[LOG] [CXDGOutputProtocol] updating all xdg_output heads
[LOG] [hookSystem] New hook event registered: render
[LOG] Monitor eDP-1 -> destroyed all render data
[LOG] Shaders initialized successfully.
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[ERR] [AQ] drm: Cannot commit when a page-flip is awaiting
[ERR] [AQ] drm: Cannot commit when a page-flip is awaiting
[WARN] FIXME: color management protocol is enabled and outputs changed, check preferred image description changes
[LOG] New output with name HDMI-A-1
[LOG] Applying monitor rule for HDMI-A-1
[ERR] Monitor HDMI-A-1 has NO PREFERRED MODE
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 3840, y: 2160] and format XR24 with modifier 0 aka LINEAR
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 3840, y: 2160] and format XR24 with modifier 0 aka LINEAR
[LOG] [AQ] Swapchain: Reconfigured a swapchain to [Vector2D: x: 3840, y: 2160] XR24 of length 2
[LOG] CMonitorState::ensureBufferPresent: no buffer or mismatched format, attaching one from the swapchain for modeset being possible
[LOG] [AQ] atomic drm request: failed to commit: Invalid argument, flags: ATOMIC_ALLOW_MODESET ATOMIC_TEST_ONLY
[ERR] Monitor HDMI-A-1: REJECTED custom mode [email protected]!
[ERR] Monitor HDMI-A-1 has NO FALLBACK MODES, and an INVALID one was requested: [email protected]
[LOG] [AQ] drm: Modesetting HDMI-A-1 with [email protected]
[ERR] [AQ] atomic drm request: failed to commit: Invalid argument, flags: ATOMIC_ALLOW_MODESET PAGE_FLIP_EVENT
[WARN] state.commit() failed in CMonitor::onCommit
[LOG] Added new monitor with name HDMI-A-1 at [-1, -1] with size [0, 0], pointer 15648210
[LOG] New monitor: WORKSPACEID 2, exists: 0
[LOG] checking if we have seen this monitor before: HDMI-A-1
[LOG] Monitor HDMI-A-1 was not on any workspace
[LOG] [IWaylandProtocol] Registered global [WLOutput (HDMI-A-1)]
[LOG] arrangeMonitors: 2 to arrange
[LOG] arrangeMonitors: eDP-1 auto [0, 0]
[LOG] arrangeMonitors: HDMI-A-1 auto [-1, -1]
[LOG] arrangeMonitors: eDP-1 xwayland [0, 0]
[LOG] arrangeMonitors: HDMI-A-1 xwayland [3456, 0]
[LOG] [CXDGOutputProtocol] updating all xdg_output heads
[LOG] Applying monitor rule for eDP-1
[LOG] Not applying a new rule to eDP-1 because it's already applied!
[LOG] Applying monitor rule for HDMI-A-1
[ERR] Monitor HDMI-A-1 has NO PREFERRED MODE
[LOG] [AQ] atomic drm request: failed to commit: Invalid argument, flags: ATOMIC_ALLOW_MODESET ATOMIC_TEST_ONLY
[ERR] Monitor HDMI-A-1: REJECTED custom mode [email protected]!
[ERR] Monitor HDMI-A-1 has NO FALLBACK MODES, and an INVALID one was requested: [email protected]
[LOG] [CXDGOutputProtocol] updating all xdg_output heads |
Beta Was this translation helpful? Give feedback.
check 0.49 should be fixed