-
Notifications
You must be signed in to change notification settings - Fork 777
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
Chromium "freezing" every interaction with i3. #1720
Comments
With Chrome (43.0.2357.73 beta) I don't seem to be able to reproduce this. Even a |
Hm, I'm not sure what's causing this. Xorg.0.log has no messages in it since it's startup. |
I also tried it with Chromium (42.0.2311.135) now and can't repro it there either. The log file covers 22 minutes and is ober 26k lines long. It could be helpful if you could upload a log file where you boot your system, instantly reproduce this and then take the log. Unless someone als can repro it, maybe you can also try an older i3 to see if the problem exists there as well. If not, you can run a git bisect. |
I also tried with Chromium 43.0.2357.65 and the script posted by @Airblader. I cannot reproduce the issue. |
Hm, I tried your script and it didn't fail either. But when I started vim (which relates to the "serious work part") it did fail, after I focusing vim while executing the script. Only a shot in the dark though. This log only covers a few minutes (first executed script with only terminal + Chromium, then with vim in terminal + Chromium, which froze it): The problem existed in a build I ran ~ a month ago. I updated to the latest version to see if it was fixed there but forgot to note the old build version. EDIT: It's not very common though. Sometimes I could boot and ran the script even with 1000 instead of 100 and it didnt fail for several times. |
I still can't repro it using vim, unfortunately. I also can't see anything suspicious in the logs. Maybe running a xtrace on Chromium would reveal more? It sounds like a bad case of race condition. by the way, just to be sure: so i3 itself works just fine and only Chromium is broken, right? |
It's difficult to figure it out as only the combination Chromium + i3 ain't working. Chromium + anything else works, Anything else + i3 works, too. I could post this to the Chromium bugtracker too but what makes me suspicious is that killing Chromium still doesn't solve the problem. Maybe the root of the problem is a freezing Chromium but i3 doesn't handle it properly. I can't remember any problem before January at least, but since then both, Chromium and i3 received many updates. I've got a second machine here and will try it on this one, too. Xtrace might be a good idea too. Bisect is a bit difficult because my hardware is rather old that even rebuilding i3 takes some time. If the issue persists I still will try that ofcourse – but there's still the problem of missing the relevant commit as there's no 100%-way of crashing the setup, it sometimes happens, and sometimes not. |
Even on my 7-year old ThinkPad X200, building i3 just takes a couple of seconds. Bisect converges very quickly, so this might be more feasible than you think :). |
Hmm, it takes a couple of minutes for me, not much, but tracing back still requires some rebuilds. But the bigger doubt for me is that I just ran the script with 1 to 1000 and it crashed after the 15th attempt... . So I stilly might miss the commit, which would be sad ^^. Currently testing (xtrace on Chromium) for ~1h with nothing bad happening. Before it sometimes happened almost instantly. It really is strange |
Well, with some bad luck, xtracing it makes it slow enough to eliminate the race condition. |
Hah, just got it ;-). Only a minute after writing this... Chromium log (xtrace was empty, no messages EDIT: see later comments)
|
Ok, I just checked out the code at 69dd8ce (UPDATE: and the error recurs,) but I'm 99% sure that the issue did not occure back then. So the issue is probably caused by Chromium in a later revision (I won't build that tho^^ my poor intel Centrino laptop just howled so much (while executing the test script), I almost felt pity for it...). I tested via the posted script but just with 15000 to make things super sure. But still, I think a Chromium-crash / freeze should not cause a whole session to break down. If anyone has any hints on what logs I could supply or how to help in any other way, I will do so. |
Ok, just got an xtrace, made the fault of more or less blindly following a instruction with "-display" which chromium does not support. Using DISPLAY ofcourse worked. |
Sorry, I don't follow – why does this mean that Chromium causes the issue? |
Oh, just realized the comment was incomplete. I mean to say: |
Oh, okay. I'm not convinced that this puts i3 out of blame, though. For one, race conditions can start popping up for the weirdest (and unrelated) reasons, but also other window managers not having this problem could just mean that an update of Chromium surfaced this problem in i3. We should keep treating this as a potential bug in i3. |
Hm, this could be like this, too. I just looked onto the xtrace and literally do not understand anything – ok, I know what opcodes are etc, but have no clue what these mean... . Much hex is dumped and I fear it is binary and of no value at all :/ |
I attached gdb to Chromium but nothing. Just notifications like new thread, new opened tab. No errors at all. |
I think I can confirm that this sadly is a compton problem. Without compton I could run 100.000 switches without anything happening. Will see to that though. An as I know you don't support compositors this probably can be closed. Maybe the thing did not happen on LXQt+compton because I could not switch that fast on LXQt as on i3wm. |
After killing compton when freezed I shortly see flickering of the workspace again, like it should be, but then i3wm exits. Why that? |
This time i3 did not crash after compton got killed – confirming: compton is the issue. I'm still wondering why i3 crashed last time when I killed compton, but it works now for me. |
Hm, small follow up:
If anyone has any idea what's that. |
That’s a crash in your X server, not i3-related. |
Ok, thanks. I just thought it was i3 because it only happened there. Turns out that compton – again :P – was the problematic part, though it's unclear (for me) whether the bug is in compton or in a X-lib it uses. Thanks for any help and poiniting me in the right direction. |
That's interesting. I've managed to run into the same problem as you @leonardkoenig. My first guess was Not only for Chromium, but all blink-based (electron) programs Edit: ST3 was a false positive, it is running into some other problems. |
I am also having what I assume is the same issue. I do not run |
Please open a new issue with as much information as possible. |
The main thing I suspect is hardware acceleration having some troubles with certain gpu drivers that occur with blink-based software. I can post more once I investigate further. |
@ohfill @KubaJastrz I've been having the exact same issue for the past 2–3 months (but never before then). For example, Chromium-based qutebrowser "froze" four times while I was writing this post, requiring a |
Zero progress on a 4 year old issue that was closed. Please open a new issue with as much information as possible. |
i3 version: i3 version 4.10.2-171-ga4fab76 (2015-05-25, branch "makepkg")
chromium version: tested dev, continuous and stable
OS: Arch
Compositor: compton (yes, I know, not supported, but I'm not sure whether it relates to this problem :P)
Debug log: http://logs.i3wm.org/logs/5700239927279616.bz2
How to reproduce:
Switch often and fast between a "Chromium-workspace" and a "non-Chromium-workspace" (eg. the terminal). Seems only to happen when one is about to do serious work ^^.
Bug occures only on switching workspace and the frozen state will only show the Chromium workspace, not the other one.
Description:
One can still interact with the windows but one does not see any reaction just the mousepointer changing, the fan loudness changing (when one blindly quits a hungry application) or just blindly executing "reboot" in terminal.
Changing to the tty and back just results in the whole screen now being completely black/grey. One can still interact but does not even see the "frozen" chromium window.
Restarting i3 in place or killing any apps does not solve the problem.
I hope I expressed it in a understandable way, it seems to be a really weird bug. It does not happen on LXQt + Compton, not on Plasma or awesome, but it also does not happen with Firefox. So the problem cannot only be i3, nor only be Chromium nor compton.
The text was updated successfully, but these errors were encountered: