Skip to content
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

Segfault after connecting monitor before resuming from sleep #2846

Open
spikespaz opened this issue Jul 30, 2023 · 2 comments
Open

Segfault after connecting monitor before resuming from sleep #2846

spikespaz opened this issue Jul 30, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@spikespaz
Copy link
Contributor

spikespaz commented Jul 30, 2023

Hyprland Version

Branch main at commit 1ec0b7b59a84a07f97c3ebee9f6694bc4a1b1dcd

Bug or Regression?

Bug

Description

I have the ThinkPad Basic Dock (40AG0090US) (and a ThinkPad P14s Gen 1) which provides DisplayPort (Passive) over USB-C and/or a proprietary connector.

This does not happen if the laptop is connected to HDMI directly.

When the laptop is asleep, I sometimes connect it to the dock and then wake it up from sleep. Every time I do this, Hyprland crashes.

How to reproduce

  1. Run systemctl hibernate.
  2. Connect monitor (details above).
  3. Wake up laptop.
  4. Observe getting kicked to TTY.

Crash reports, logs, images, videos

--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
Who tried dividing by zero?!

Hyprland received signal 11 (Segmentation fault)

Version: 1ec0b7b59a84a07f97c3ebee9f6694bc4a1b1dcd
Tag: ?

System info:
	System name: Linux
	Node name: intrepid
	Release: 6.4.3
	Version: #1-NixOS SMP PREEMPT_DYNAMIC Tue Jul 11 04:31:05 UTC 2023

GPU:
	08:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [1002:1636] (rev d1) (prog-if 00 [VGA controller])


os-release:
	BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
	BUILD_ID="23.11.20230720.5df4d78"
	DOCUMENTATION_URL="https://nixos.org/learn.html"
	HOME_URL="https://nixos.org/"
	ID=nixos
	LOGO="nix-snowflake"
	NAME=NixOS
	PRETTY_NAME="NixOS 23.11 (Tapir)"
	SUPPORT_URL="https://nixos.org/community.html"
	VERSION="23.11 (Tapir)"
	VERSION_CODENAME=tapir
	VERSION_ID="23.11"
	


Backtrace:
	#0 | /nix/store/r158p2yxg2ir0agis3ffi9khr2hmcv2z-hyprland-0.27.2+date=2023-07-20_1ec0b7b/bin/Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x839) [0x5696c9]
		_ZN13CrashReporter18createAndSaveCrashEi
		??:?
	#1 | /nix/store/r158p2yxg2ir0agis3ffi9khr2hmcv2z-hyprland-0.27.2+date=2023-07-20_1ec0b7b/bin/Hyprland(_Z25handleUnrecoverableSignali+0x3f) [0x47636f]
		_Z25handleUnrecoverableSignali
		??:?
	#2 | /nix/store/ayg065nw0xi1zsyi8glfh5pn4sfqd8xg-glibc-2.37-8/lib/libc.so.6(+0x38d30) [0x7f504cda4d30]
		??
		??:0
	#3 | /nix/store/3y9pj04f7xfwfs6h9rvgd70cqi105g54-wayland-1.22.0/lib/libwayland-server.so.0(wl_event_loop_dispatch+0xa0) [0x7f504d9bb8f0]
		??
		??:0
	#4 | /nix/store/3y9pj04f7xfwfs6h9rvgd70cqi105g54-wayland-1.22.0/lib/libwayland-server.so.0(wl_display_run+0x25) [0x7f504d9b9455]
		??
		??:0
	#5 | /nix/store/r158p2yxg2ir0agis3ffi9khr2hmcv2z-hyprland-0.27.2+date=2023-07-20_1ec0b7b/bin/Hyprland(main+0x9ac) [0x469cec]
		main
		??:?
	#6 | /nix/store/ayg065nw0xi1zsyi8glfh5pn4sfqd8xg-glibc-2.37-8/lib/libc.so.6(+0x23ace) [0x7f504cd8face]
		??
		??:0
	#7 | /nix/store/ayg065nw0xi1zsyi8glfh5pn4sfqd8xg-glibc-2.37-8/lib/libc.so.6(__libc_start_main+0x89) [0x7f504cd8fb89]
		??
		??:0
	#8 | /nix/store/r158p2yxg2ir0agis3ffi9khr2hmcv2z-hyprland-0.27.2+date=2023-07-20_1ec0b7b/bin/Hyprland(_start+0x25) [0x476225]
		_start
		??:?


Log tail:
[LOG] Callback 3d23270 -> 3d23268, XWayland Window removed.
[LOG] Callback 3d232d8 -> 3d232d0, XWayland Window removed.
[LOG] Callback 3d23340 -> 3d23338, XWayland Window removed.
[ERR] onWindowRemovedTiling node null?
[LOG] Unmapped window 3d22b60 removed instantly
[LOG] Window 3bb4700 destroyed, queueing. (class )
[LOG] XWayland class raw: (null)
[LOG] Callback 3bb4860 -> 3bb4858, XWayland Window removed.
[LOG] Callback 3bb4c70 -> 3bb4c68, XWayland Window removed.
[LOG] Callback 3bb4e10 -> 3bb4e08, XWayland Window removed.
[LOG] Callback 3bb4e78 -> 3bb4e70, XWayland Window removed.
[LOG] Callback 3bb4ee0 -> 3bb4ed8, XWayland Window removed.
[ERR] onWindowRemovedTiling node null?
[LOG] Unmapped window 3bb4700 removed instantly
[LOG] Window 3cfcd50 destroyed, queueing. (class )
[LOG] XWayland class raw: Tidal-hifi
[LOG] Callback 3cfceb0 -> 3cfcea8, XWayland Window removed.
[LOG] Callback 3cfd2c0 -> 3cfd2b8, XWayland Window removed.
[LOG] Callback 3cfd460 -> 3cfd458, XWayland Window removed.
[LOG] Callback 3cfd4c8 -> 3cfd4c0, XWayland Window removed.
[LOG] Callback 3cfd530 -> 3cfd528, XWayland Window removed.
[ERR] onWindowRemovedTiling node null?
[LOG] Unmapped window 3cfcd50 removed instantly
[LOG] Window 3cb0f60 destroyed, queueing. (class )
[LOG] XWayland class raw: (null)
[LOG] Callback 3cb10c0 -> 3cb10b8, XWayland Window removed.
[LOG] Callback 3cb14d0 -> 3cb14c8, XWayland Window removed.
[LOG] Callback 3cb1670 -> 3cb1668, XWayland Window removed.
[LOG] Callback 3cb16d8 -> 3cb16d0, XWayland Window removed.
[LOG] Callback 3cb1740 -> 3cb1738, XWayland Window removed.
[ERR] onWindowRemovedTiling node null?
[LOG] Unmapped window 3cb0f60 removed instantly
[LOG] Window 37c59e0 destroyed, queueing. (class )
[LOG] XWayland class raw: (null)
[LOG] Callback 37c5b40 -> 37c5b38, XWayland Window removed.
[LOG] Callback 37c5f50 -> 37c5f48, XWayland Window removed.
[LOG] Callback 37c60f0 -> 37c60e8, XWayland Window removed.
[LOG] Callback 37c6158 -> 37c6150, XWayland Window removed.
[LOG] Callback 37c61c0 -> 37c61b8, XWayland Window removed.
[ERR] onWindowRemovedTiling node null?
[LOG] Unmapped window 37c59e0 removed instantly
[LOG] Window 37c4540 destroyed, queueing. (class )
[LOG] XWayland class raw: Dunst
[LOG] Callback 37c46a0 -> 37c4698, XWayland Window removed.
[LOG] Callback 37c4ab0 -> 37c4aa8, XWayland Window removed.
[LOG] Callback 37c4c50 -> 37c4c48, XWayland Window removed.
[LOG] Callback 37c4cb8 -> 37c4cb0, XWayland Window removed.
[LOG] Callback 37c4d20 -> 37c4d18, XWayland Window removed.
[LOG] Cleanup: destroyed a window
[LOG] Cleanup: destroyed a window
@spikespaz spikespaz added the bug Something isn't working label Jul 30, 2023
@spikespaz
Copy link
Contributor Author

Different--but similar--circumstances: #2825

@spikespaz
Copy link
Contributor Author

Same circumstances: #804 (comment)

Leaving this issue open because monitor is not mentioned in that issue description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant