-
Notifications
You must be signed in to change notification settings - Fork 283
Crashes when opening clients #4
Comments
Here I am again after a quick experiment, I just opened 5 instances of alacritty and this is the result: when switching client with focus following the mouse dwl crashes producing this output: |
Thanks for the report! Most of the text in that log is alacritty complaining that the compositor went down - the useful bit from dwl is assertion on the first line, which is coming from
|
oh, I didn't realize the logs from children processes would carry over, though that does make sense. |
I should also mention that the laptop I tested this on has a Ryzen 5 processor with Vega graphics, which unfortunately has given me a bit of a headache regarding stability (Xorg sometimes locks up under heavy load and I have to switch to a tty and back) so it might well be the video driver acting up and the compositor not being robust enough to recover from that gracefully? |
Ah, there's the key phrase: "window decorations." dwl isn't yet an expert at handling and/or killing client-side decorations (see #3), but it's more successful under wlroots-git than under wlroots-0.10.1. Alternatively, you can set window.decorations="none" in alacritty.yml. |
Or, actually... try the latest dwl commit with your current setup to see if it behaves better! |
well, that was fast! The CSD are still not rendered correctly, but they no longer cause crashes. To confirm your hypothesis, I also tried the old build with them off and it worked like a charm, I will now try wlroots-git to see if it makes a difference. |
No difference with wlroots-git, closing the issue |
…NULL Passing NULL to wlr_keyboard_set_keymap results in a segfault. Example: Thread 1 "dwl" received signal SIGSEGV, Segmentation fault. 0x00007ffff7e49b64 in xkb_keymap_ref () from /usr/lib/libxkbcommon.so.0 (gdb) bt #0 0x00007ffff7e49b64 in xkb_keymap_ref () at /usr/lib/libxkbcommon.so.0 djpohly#1 0x00007ffff7f06389 in wlr_keyboard_set_keymap () at /usr/lib/libwlroots.so.11 djpohly#2 0x000055555555bc54 in createkeyboard () djpohly#3 0x000055555555c283 in inputdevice () djpohly#4 0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0 djpohly#5 0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0 djpohly#6 0x00007ffff7edb52c in () at /usr/lib/libwlroots.so.11 djpohly#7 0x00007ffff7ee44b6 in () at /usr/lib/libwlroots.so.11 djpohly#8 0x000055555555fe66 in main ()
…NULL Passing NULL to wlr_keyboard_set_keymap results in a segfault. Example: Thread 1 "dwl" received signal SIGSEGV, Segmentation fault. 0x00007ffff7e49b64 in xkb_keymap_ref () from /usr/lib/libxkbcommon.so.0 (gdb) bt #0 0x00007ffff7e49b64 in xkb_keymap_ref () at /usr/lib/libxkbcommon.so.0 #1 0x00007ffff7f06389 in wlr_keyboard_set_keymap () at /usr/lib/libwlroots.so.11 #2 0x000055555555bc54 in createkeyboard () #3 0x000055555555c283 in inputdevice () #4 0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0 #5 0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0 #6 0x00007ffff7edb52c in () at /usr/lib/libwlroots.so.11 #7 0x00007ffff7ee44b6 in () at /usr/lib/libwlroots.so.11 #8 0x000055555555fe66 in main ()
I have experienced some crashes when opening clients (seems to happen more often if firefox is open). sadly 4 out of 5 times i was sending errors to /dev/null (that's not very helpful) but i recorded the last one, here it is:
dwl: types/xdg_shell/wlr_xdg_surface.c:15: wlr_xdg_surface_from_wlr_surface: Assertion `wlr_surface_is_xdg_surface(surface)' failed. thread 'thread 'mainmain' panicked at '' panicked at 'failed to read wayland events: Broken pipe (os error 32)failed to read wayland events: Broken pipe (os error 32)', ', <::std::macros::panic macros><::std::macros::panic macros>::55:6 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace thread ':main6 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ' panicked at 'failed to read wayland events: Broken pipe (os error 32)', <::std::macros::panic macros>:5:6 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace thread 'main' panicked at 'failed to read wayland events: Broken pipe (os error 32)', <::std::macros::panic macros>:5:6 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I will run it with
RUST_BACKTRACE
enabled as suggested, is there anything else I should provide?This is on arch linux, wlroots version 0.10.1-1 and wayland-protocols version 1.20-1
The text was updated successfully, but these errors were encountered: