Bug 466622 - kwin_x11 entire desktop freeze, mouse still works, killing kwin_x11 fixes, seems to only be on kernels newer than 6.1.8 for me (intel i915)
Summary: kwin_x11 entire desktop freeze, mouse still works, killing kwin_x11 fixes, se...
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://gitlab.freedesktop.org/drm/in...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-28 21:13 UTC by Jason Straight
Modified: 2023-03-02 15:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Straight 2023-02-28 21:13:38 UTC
I'm not really sure if this is entirely upstream, because the only thing it seems to affect is kwin. No other programs freeze or crash.

My desktop will randomly freeze and require me to switch to a vtty and kill kwin_x11, which then gets restarted and everything is fine. The image is frozen - the desktop is not. So I'm _guessing_ it's related to compositor and effects.

Even though the desktop image is frozen, the audio continues to play, and I can click where the (now frozen) video controls are to pause and restart the audio.

I have filed this bug on the i915 drivers bug tracker here: https://gitlab.freedesktop.org/drm/intel/-/issues/8226

It only started happening after changes to i915 post 6.1.8. Linux 6.1.8 has been perfectly stable for me.

Originally, I thought it only happened during playing videos in a browser, but it has since happened while not doing that, but it seems to happen more (often) while playing videos. I might go a couple days, or I might have 2 freezes in 10 minutes.

Maybe someone can tell me what I might be able to do to enable some debugging logging for kwin and the compositor effects to help us pinpoint what's causing this?

Thanks.

Next time it happens, I'll try alt-shift-f12 before killing it. I tried that earlier today, but I had the key combo wrong I think.

Operating System: openSUSE Tumbleweed 20230227
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.2.0-1-default+ (64-bit)
Graphics Platform: X11
Processors: 20 × 12th Gen Intel® Core™ i9-12900H
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: ROG Strix G733ZW_G733ZW
System Version: 1.0
Comment 1 Nate Graham 2023-03-01 20:14:45 UTC
Thanks for the detailed bug report. Info from https://gitlab.freedesktop.org/drm/intel/-/issues/8226 indicates that it may even be a kernel bug. But I'll let the KWin developers handle this.

Does it happen when compositing it turned off?
Comment 2 Jason Straight 2023-03-02 12:46:50 UTC
(In reply to Nate Graham from comment #1)
> Thanks for the detailed bug report. Info from
> https://gitlab.freedesktop.org/drm/intel/-/issues/8226 indicates that it may
> even be a kernel bug. But I'll let the KWin developers handle this.
> 
> Does it happen when compositing it turned off?

Compositing turned off? Ewwwwe. lol

I was hoping there would be progress (an answer) before I had to resort to testing that. :D

I've been watching video (the thing that seems to make it most obvious) since you suggested it w/o issue, but that's not definitive yet. I'll continue to test and report back.
Comment 3 Jason Straight 2023-03-02 13:57:56 UTC
I was just about to call it quits to pack in to go to work and it froze again - compositing disabled.

It looks like maybe they've seen (figured something out?) over on the i915 bug page. So we'll see where it goes from there.


> Ville Syrjälä commented on a discussion:

> Looks like the vblank worker somehow got stuck.

> Let's try to add a timeout and some extra debugs: https://github.com/vsyrjala/linux.git vblank_work_debug
Comment 4 Nate Graham 2023-03-02 15:55:34 UTC
Cool, thanks for following up.