Bug 472509

Summary: Kwin_wayland can randomly crash if you are alt-tabbing from Apex Legends while PROTON_LOG=1 is set
Product: [Plasma] kwin Reporter: Antti Savolainen <antti.savo>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kde, nate
Priority: NOR    
Version First Reported In: 5.27.6   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Backtrace
tail --lines 50 steam-1172470.log
Full backtrace

Description Antti Savolainen 2023-07-22 20:08:10 UTC
Created attachment 160453 [details]
Backtrace

SUMMARY
***
Reopening an alt-tabbed Apex Legends game can crash kwin_wayland. Previously when I did this, the game itself crashed and it froze the desktop for a couple of seconds but after setting PROTON_LOG=1 the game took kwin_wayland with it. It takes quite a while, a couple of games and many alt-tabs to repro this. The most opportune time to alt-tab seems to be in the pick screen and then connecting back when the dropship is in view.
Backtrace seems to point here: https://invent.kde.org/plasma/kwin/-/blob/v5.27.6/src/libkwineffects/kwinanimationeffect.cpp#L735

STEPS TO REPRODUCE
1. Set PROTON_LOG=1 in steam for Apex Legends
2. Play the game, occasionally alt-tabbing to the desktop

OBSERVED RESULT
Crash after about 5 games played


SOFTWARE/OS VERSIONS
Linux: Arch Linux
(available in About System)
KDE Plasma Version: 5.17.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Comment 1 Antti Savolainen 2023-07-22 20:09:04 UTC
Created attachment 160454 [details]
tail --lines 50 steam-1172470.log
Comment 2 David Edmundson 2023-07-22 21:47:24 UTC
#0  0x00007fc6fb67ac1b in KWin::AnimationEffect::postPaintScreen() (this=0x556178fc1bc0) at /usr/src/debug/kwin/kwin-5.27.6/src/libkwineffects/kwinanimationeffect.cpp:735
#1  0x00007fc6fb00ba58 in KWin::EffectsHandlerImpl::postPaintScreen() (this=0x556178bee6b0) at /usr/src/debug/kwin/kwin-5.27.6/src/effects.cpp:406
Comment 3 Antti Savolainen 2023-07-22 22:33:47 UTC
Created attachment 160457 [details]
Full backtrace
Comment 4 Antti Savolainen 2023-07-23 07:38:18 UTC
Also of note that I'm on Nvidia
Comment 5 Nate Graham 2023-09-08 19:17:38 UTC

*** This bug has been marked as a duplicate of bug 450933 ***