Open zjeffer opened 2 months ago
Apparantly the return value of wd_find_head is NULL
If I add this on line 64:
if (head == NULL) {
printf("No head found for output %s\n", output->name);
return;
}
then Hyprland completely crashes, here are the last lines in the logfile:
Figured it out: it only happens when one of my monitors is mirroring another one. If I disconnect my mirrored monitor, it doesn't segfault.
Does wdisplays
not support mirroring?
I've been using wdisplays for a couple of weeks/months but today it crashed at startup:
Backtrace
``` (gdb) bt #0 0x000055555556885c in resize (output=0x5555558ece00) at ../src/overlay.c:65 #1 0x0000555555568b73 in window_map (widget=0x5555558ed390 [GtkWindow], data=0x5555558ece00) at ../src/overlay.c:138 #2 0x00007ffff6cfe64a in g_closure_invoke (closure=0x5555558ee020, return_value=0x0, n_param_values=1, param_values=0x7fffffffc120, invocation_hint=0x7fffffffc070) at ../glib/gobject/gclosure.c:834 #3 0x00007ffff6d2ece5 in signal_emit_unlocked_R.isra.0 (node=node@entry=0x7fffffffc1f0, detail=detail@entry=0, instance=instance@entry=0x5555558ed390, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7fffffffc120) at ../glib/gobject/gsignal.c:3888 #4 0x00007ffff6d1f5dc in signal_emit_valist_unlocked (instance=instance@entry=0x5555558ed390, signal_id=signal_id@entry=71, detail=detail@entry=0, var_args=var_args@entry=0x7fffffffc360) at ../glib/gobject/gsignal.c:3520 #5 0x00007ffff6d1f842 in g_signal_emit_valist (instance=0x5555558ed390, signal_id=71, detail=0, var_args=var_args@entry=0x7fffffffc360) at ../glib/gobject/gsignal.c:3263 #6 0x00007ffff6d1f904 in g_signal_emit (instance=Using Hyprland on Arch:
output of `hyprctl systeminfo`
``` Hyprland, built from branch main at commit 337422911895bb55099e00208bff929651dcb5d2 (core: remove unused includes and fix warn). Date: Fri May 10 04:20:26 2024 Tag: v0.40.0-50-g33742291, commits: 4656 flags: (if any) System Information: System name: Linux Node name: zjeffer Release: 6.8.9-arch1-2 Version: #1 SMP PREEMPT_DYNAMIC Tue, 07 May 2024 21:35:54 +0000 GPU information: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] [10de:24dd] (rev a1) (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: split-monitor-workspaces by Duckonaut ver 1.1.0 ```Happens both on latest release (
wdisplays
arch package) and latest master (manual build)