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
Alacritty window randomly disappears on sway/wayland #2978
Comments
|
You were already told on P.s. |
|
@kchibisov I'll upload a copy of the log later (I'm on a different computer now). But just to comment on this note:
I have 3 different computers running sway + alacritty and it only happens on one, the main relevant difference being Some additional info: I've recently formatted my disk and completely reinstalled everything on that computer but the problem remains. I've also tried both |
|
So, it's likely a nouveau thing. I'm using only i915 and amdgpu drivers, so can't test it. |
|
Yeah, I think it's related to My guess is that it's a combination of factors, something Alacritty is doing is creating a specific interaction with the driver that causes the texture upload to fail, which then causes wlroot to close the window, even though Alacritty continues to run in the background (it doesn't crash) and nothing shows up on Alacritty log, even with debug level. Anyway, I'll try to reproduce the issue with |
Do you use any other application which uses OpenGL? If your GPU is never used, chances are you won't run into a lot of GPU related bugs. |
|
I run some software that use hardware acceleration (stream, discord, firefox, etc) plus some games without any issue. Also, I believe sway itself uses the GPU for composition and such. Yesterday, I've enabled WAYLAND_DEBUG=client but I wasn't able to reproduce the issue. I'll keep trying and upload the log as soon as I manage to. |
|
This has been tricky to reproduce and it has been happening way less frequently. I thought it was resolved and stopped running Alacritty with When I've checked the log, I noticed a different output that might help point this to the root cause: The symbols seems to be stripped. Is there a way to compile a release build with symbols untouched? I'll enable |
Yes, see the main |
|
I have the exact same problem, but I am using amdgpu. |
|
This issue has been happening more rarely but today it happened again. Unfortunately, the change suggested by @chrisduerr did not work. I've cloned the repository, set But the backtrace still does not include the symbols. Is there anything else I need to do? |
|
An executable compiled from source without stripping it definitely should include debug symbols. How big is the binary for you? |
|
|
@kchibisov I am trying to reproduce the issue with Btw, I figured out the symbols issues. My I'll try to capture the issue again when it happens. |
|
Alright, I have finally been able to reproduce the issue while having a backtrace and wayland debug enabled. The log is really long since the session was running for a while before it crashed but here are the 1000 most recent lines: https://gist.github.com/divoxx/164cb2f06e654657c158c5fe13a8a3d4 |
|
Can you post this log to your sway issue referenced here? |
|
I'll add it there if you think it's relevant. That said, I do want to point out one thing that has changed since when this issue and the other one was reported. The issue seems to be the same (triggering a It's obviously possible that I am wrong about this, since I am not familiar with the internals of either sway or alacritty, but my guess is that the issue is likely on Alacritty and not on sway. Nonetheless, I'll upload the logs there as well. |
|
Just wanted to add that I seem to have the same issue with Alacritty on Sway/Wayland, but in my case it’s with Intel graphics (running NixOS). If that’s useful I could try to obtain logs but as others wrote it’s a bit hard to reproduce since it happens randomly after a couple of days (sometimes weeks) and suspend/resume cycles. |
|
I've also been having the same problem with alacritty and sway. However, it usually happens when I reload the sway config file. It doesn't happen every time but it does happen quite frequently. I've also seen it happen after resuming from suspend. Other programs such as Firefox (Wayland), GNOME Terminal (Wayland), urxvt (XWayland) do not crash. I am running an AMD GPU. |
|
I have had the same issue on Sway in NixOS. It appears to happen during DPMS. I've seen it on Intel and AMD graphics. I believe it happens when no Sway outputs are available, but that is hard to test because the only reason no Sway outputs would be available in my setup is a Sway bug. See swaywm/sway#5728. I have also seen Alacritty windows text become fuzzy, as if reverting to XWayland, under the same conditions that they might disappear. |
|
I wonder if something changes with our master? |
I think it is more likely that something changed in Sway/Wayland to make the circumstances that cause this more frequent. I have experienced this bug on a commit a few before 0.5 and on 0.5 . One of my machines experienced it on Sway 1.4 (NixOS 20.03) and the other machine only started experiencing it on Sway 1.5 (NixOS 20.09). |
|
I've just looked at some of the things you've mentioned, and fuzzy thing may be solved by master. |
I just tested master, and I couldn't reproduce the fuzziness issue. Also, I couldn't reproduce Alacritty windows disappearing on 0.5 or master. However, that was always harder to reproduce. I honestly can't say if master fixed windows disappearing, something I recently did with Sway fixed it, or if I just can't easily reproduce it. P.S. I was previously able to reproduce the fuzziness issue with |
|
we can't really fix windows disappearing ( it looks like mesa thing), but we can do something about fuzziness. |
|
The same issue happens to me (NixOS 20.09; Alacritty 0.5.0; Sway 1.5; AMD GPU RX550; dual monitor setup). I do not observe any correlation with DPMS. I suspect that it is correlated with runtime of single terminal window (the longer it is running the more likely it is to disappear). Is there any issue on Mesa side which can be followed? Is there any way I can help solving this issue (I can do some basic debugging / collecting information however I do not know Alacritty's codebase nor Mesa's)? I can reproduce this issue pretty frequently on my setup |
Also, if you'be able to repro on weston or other compositor it'll be interesting, since if you get wlroots errors as the original author it could identify who is at fault. |
|
I had issue reproducing it now. Before I wanted to reproduce it it would happen every hour or so and now I had to wait several days. I failed to reproduce it exactly on Weston (it is not my main environment and I had not time to experiment with it) however it seems that I misinterpreted my issue. Actually I encountered two different problems and it seems that both of them are already fixed on master :) My problems (just for reference and future readers):
It seems to be the same problem as #4384 thus I assume that it is fixed.
It looks like it is fixed on master too (#4358). Thank you! |
|
Yeah, in general, if you don't see an output from either sway/wlroots or mesa it's likely a different issue, which could also be fixed on the latest master. |
|
I'll close this since it's likely fixed on either sway or alacritty side, but I've never seen this issue myself in the wild on sway due to the reason initial report has. |
When using Alacritty under Sway/Wayland and nouveau driver, the window randomly disappears from sway but the process does not get kill and continues to run in the background.
I initially reported this issue on sway (swaywm/sway#4435) but I want to cross report it here since the issue is likely being triggered by something Alacritty is doing.
Whenever the issue happens, this is what I see on the logs:
The issue is hard to reproduce but it happens multiple times a day when using the terminal intensively.
Let me know if there is any other information I can provide to help debug this issue.
The text was updated successfully, but these errors were encountered: