-
Notifications
You must be signed in to change notification settings - Fork 281
firefox based browsers randomly cause system hang #253
Comments
Happens to me too, few times a day, having to restart every time. Firefox indeed seems to be the culprit. I'd be happy to help debug, no idea where to start though. |
You could SSH in, and run this command EDIT: dwl must be compiled with debug info ( |
Thank you very much, and sorry for the wait. I keep running a version compiled with those flags since you posted them, but the freeze hasn't happened since. The rate went from solid 3-4/day to literally 0/week. I'll still keep an eye on this, but perhaps it was a bug with Firefox. |
Yeah, probably it was a bug from Firefox, but... just to make sure can you build dwl with your normal cflags and just add |
I have been running into the same problem. My system freezes multiple times a day. I am also using firefox, so that might be related. I am on: To help debugging this behavior, I followed your suggestion of compiling
Edit: A second freeze, that is somewhat reproducible happens when I drag and drop a file from nemo into a chromium-based browser. Firefox has not been started at this point. Stack:
|
Sorry for the long delay. commit 5d164c1568504282fe3edac112164aee24c159fc
Author: Leonardo Hernández Hernández <leohdz172@protonmail.com>
Date: Thu Dec 1 22:21:10 2022 -0600
Revert "force line-buffered stdout if stdout is not a tty"
This reverts commit deb48ff48b186ff77a7e9d3b3ab724ff4c3c340f.
diff --git a/dwl.c b/dwl.c
index 3f6db50..9af43c0 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1664,6 +1664,7 @@ printstatus(void)
sel, urg);
printf("%s layout %s\n", m->wlr_output->name, m->lt[m->sellt]->symbol);
}
+ fflush(stdout);
}
void
@@ -1942,9 +1943,6 @@ setsel(struct wl_listener *listener, void *data)
void
setup(void)
{
- /* Force line-buffered stdout */
- setvbuf(stdout, NULL, _IOLBF, 0);
-
/* The Wayland display is managed by libwayland. It handles accepting
* clients from the Unix socket, manging Wayland globals, and so on. */
dpy = wl_display_create();
|
Thanks for getting back to me on this, @sevz17! 🙂 |
No freezes ever since, while I had ~3 freezes per day before. I am pretty confident your patch solved the issue 🙂 Thank you! |
This reverts commit deb48ff. Fixes: djpohly/dwl#253
Info
dwl's commit: 8076b47
wlroots version: 0.15.1-5
Description
Any interaction with the browser has a chance in resulting with the system not responding to input from the keyboard and freezes the screen however audio started before hand continues to play even within the browser. Certain interactions like clicking a link, playing a video, and opening a new tab rarely result in the system hanging while dragging a tab from one window to another almost always results in the system hanging. Shutting down the system is the only thing possible after the hang.
The text was updated successfully, but these errors were encountered: