dwl icon indicating copy to clipboard operation
dwl copied to clipboard

Output freezes

Open ofwinterpassed opened this issue 3 years ago • 10 comments

Hi when I'm using dwl sometimes the whole wayland output stops updating. Switching to a virtual terminal and back again unfreezes it.

ofwinterpassed avatar Apr 24 '21 15:04 ofwinterpassed

Yeah that's a bug that all wlroots compositor have, the only difference is compositor with damage tracking doesn't have freeze when this bugs occurs

novakne avatar Apr 26 '21 14:04 novakne

@novakne Interesting. What part of the damage tracking code handles the pageflip error?

djpohly avatar Apr 28 '21 03:04 djpohly

Tbh I don't know exactly why damage tracking hide this bug, It seems that damage tracking scheduled a new frame even whith output commit failure. That's why there is a workaround like, take a screenshot every second or so. Not great on the cpu though

I found this bug in dwl, river, sway and even tinywl so it looks like its a bug from wlroots drm backend but I don't have the knowledge to debug this Also looks like that people with an integrated intel graphics chip, and maybe laptop are the most affected

novakne avatar Apr 28 '21 05:04 novakne

I'm experiencing occasional freezes as well. Wasn't able to narrow it down, yet, but it alway seems to happen with mpv running - no freezes running sway, though...

manfred3000 avatar Nov 12 '21 15:11 manfred3000

Looks like this bug is being tracked by the wlroots team here: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/2937. Though there hasn't been any action over there in quite a while

thavelick avatar Dec 09 '21 01:12 thavelick

Hey @ofwinterpassed, with scenegraph we have damage tracking, is it still happening?

sevz17 avatar Mar 22 '22 04:03 sevz17

Sorry for the slow answer. I'm haven't had time to look into this for some time. I've used damage tracking in my build for some time and that took care of the problem up until I integrated latest master a couple of months ago which made me try without the changes for damage tracking. On that build I have definitely had very few freezes and the once I've had has been different (I used to be able to switch to a terminal and back to dwl and it unfroze. Now it's completely frozen and the only way to get out of it is the powerbutton that triggers a shutdown)

ofwinterpassed avatar Apr 07 '22 07:04 ofwinterpassed

I'm running dwl wlroots-next branch with wlroots git, I pull/rebuild mostly daily, and I'm experiencing the nastier version of freezes described by @ofwinterpassed: unable to recover the session switching to vt and back, simply freezed.

I'm running an home-brewed aarch64 CRUX Linux on a pinebook pro, with a bit outdated toolchain (glibc 2.32, gcc 10.4.0, binutils 2.35.2).

I've experienced the same issue with identical behavior, even before switching to the CRUX rootfs, on the stock Manjaro with dwl master branch and wlroots 0.15.1

I started using wayland/dwl a pair of weeks ago, no other wayland/wlroots experience before, so I don't precisely know what to do to provide more informations about this issure, I'd be glad to help (dwl rocks).

gamodri avatar Nov 27 '22 09:11 gamodri

Is there something I can do to fix/patch this? Currently dwl freezes every 30m/1h and I have to power off my system to stop it. I've tried running the wlroots-next branch with wlroots-git but it doesn't change anything.

leg7 avatar May 04 '23 18:05 leg7

@leg7, it is likely a different issue, can you check https://github.com/djpohly/dwl#status-information and try what it says.

sevz17 avatar May 26 '23 04:05 sevz17