https://bugs.kde.org/show_bug.cgi?id=479250

adam.br...@fenixhaven.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adam.br...@fenixhaven.com

--- Comment #12 from adam.br...@fenixhaven.com ---
This bug is plaguing me as well on my amd desktop (both cpu and gpu).

Since I have a spare computer, I used gdb when this happened, here's the slow
backtrace:

#0  0x000070d995a46b4d in clock_gettime ()                                      
#1  0x000070d9922f2e2d in __GI___clock_gettime (clock_id=<optimized out>,
tp=<optimized out>) at ../sysdeps/unix/sysv/linux/clock_gettime.c:42            
#2  0x000070d9924d2dd8 in std::chrono::_V2::steady_clock::now () at
/usr/src/debug/gcc/gcc/libstdc++-v3/src/c++11/chrono.cc:87                      
#3  0x000070d99294b456 in QElapsedTimer::durationElapsed (this=0x70d99574bc10
<KWin::AnimationEffect::s_clock>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qelapsedtimer.cpp:278         
#4  QElapsedTimer::elapsed (this=this@entry=0x70d99574bc10
<KWin::AnimationEffect::s_clock>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qelapsedtimer.cpp:312         
#5  0x000070d9951c1698 in KWin::AnimationEffect::clock () at
/usr/src/debug/kwin/kwin-6.0.4.1/src/effect/animationeffect.h:347               
#6  KWin::AnimationEffect::updateLayerRepaints (this=this@entry=0x55ad5de0d9c0)
at /usr/src/debug/kwin/kwin-6.0.4.1/src/effect/animationeffect.cpp:858          
#7  0x000070d9951c22eb in KWin::AnimationEffect::triggerRepaint
(this=0x55ad5de0d9c0) at
/usr/src/debug/kwin/kwin-6.0.4.1/src/effect/animationeffect.cpp:815             
#8  0x000070d9951c5bfb in KWin::AnimationEffect::p_animate
(this=this@entry=0x55ad5de0d9c0, w=w@entry=0x55ad5e889a00,
a=a@entry=KWin::AnimationEffect::Opacity, meta=<optimized out>,                 
    meta@entry=0, ms=150, to=..., curve=..., delay=0, from=...,
keepAtTarget=true, fullScreenEffect=false, keepAlive=false, shader=0x0) at
/usr/src/debug/kwin/kwin-6.0.4.1/src/effect/animationeffect.cp
p:283                                                                           
#9  0x000055ad31836079 in KWin::AnimationEffect::set                            
    (to=<optimized out>, from=<optimized out>,
a=KWin::AnimationEffect::Opacity, meta=0, delay=0, fullScreen=false,
keepAlive=false, shader=0x0, curve=..., ms=<optimized out>, w=0x55ad5e889a00,
this=0x
55ad5de0d9c0)
    at /usr/src/debug/kwin/kwin-6.0.4.1/src/effect/animationeffect.h:411        
#10 KWin::HighlightWindowEffect::startGhostAnimation
(this=this@entry=0x55ad5de0d9c0, window=<optimized out>,
window@entry=0x55ad5e889a00) at
/usr/src/debug/kwin/kwin-6.0.4.1/src/plugins/highlightwindo
w/highlightwindow.cpp:219
#11 0x000055ad31836265 in KWin::HighlightWindowEffect::prepareHighlighting
(this=this@entry=0x55ad5de0d9c0) at
/usr/src/debug/kwin/kwin-6.0.4.1/src/plugins/highlightwindow/highlightwindow.cpp:170
#12 0x000055ad31839c3a in KWin::HighlightWindowEffect::highlightWindows
(this=this@entry=0x55ad5de0d9c0, windows=...) at
/usr/src/debug/kwin/kwin-6.0.4.1/src/plugins/highlightwindow/highlightwindow.cpp
:209
#13 0x000055ad31839f13 in KWin::HighlightWindowEffect::highlightWindows
(windows=..., this=0x55ad5de0d9c0) at
/usr/src/debug/kwin/kwin-6.0.4.1/src/plugins/highlightwindow/highlightwindow.cpp:198
#14 KWin::HighlightWindowEffect::perform (feature=<optimized out>,
arguments=<optimized out>, this=0x55ad5de0d9c0) at
/usr/src/debug/kwin/kwin-6.0.4.1/src/plugins/highlightwindow/highlightwindow.cpp:27
3
#15 KWin::HighlightWindowEffect::perform (this=0x55ad5de0d9c0,
feature=<optimized out>, arguments=<optimized out>) at
/usr/src/debug/kwin/kwin-6.0.4.1/src/plugins/highlightwindow/highlightwindow.cpp:26
5
#16 0x000070d9951d758e in KWin::EffectsHandler::highlightWindows
(this=<optimized out>, windows=<optimized out>) at
/usr/src/debug/kwin/kwin-6.0.4.1/src/effect/effecthandler.cpp:1418
#17 0x000070d9954ef4fc in KWin::TabBox::TabBoxHandlerImpl::highlightWindows
(this=<optimized out>, window=<optimized out>, controller=0x55ad5e695a10) at
/usr/src/debug/kwin/kwin-6.0.4.1/src/tabbox/tabb
ox.cpp:274
#18 0x000070d9929a1e3e in QtPrivate::QSlotObjectBase::call (this=<optimized
out>, r=0x55ad5d1fa280, a=0x7ffe2bac8d98, this=<optimized out>, r=<optimized
out>, a=<optimized out>)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:469 
#19 doActivate<false> (sender=<optimized out>, signal_index=<optimized out>,
argv=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4078
#20 0x000070d9928d34d4 in QSingleShotTimer::timeout (this=0x55ad5de29e10) at
/usr/src/debug/qt6-base/build/src/corelib/Core_autogen/7GB2EGQPHR/moc_qsingleshottimer_p.cpp:139
#21 QSingleShotTimer::timerEvent (this=0x55ad5de29e10) at
/usr/src/debug/qt6-base/build/src/corelib/Core_autogen/7GB2EGQPHR/../../../../../qtbase/src/corelib/kernel/qsingleshottimer_p.h:116
#22 0x000070d99298c809 in QObject::event (this=0x55ad5de29e10,
e=0x7ffe2bac8f70) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:1423
#23 0x000070d993afc4dc in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x55ad5de29e10, e=0x7ffe2bac8f70) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3287
#24 0x000070d992945678 in QCoreApplication::notifyInternal2
(receiver=0x55ad5de29e10, event=0x7ffe2bac8f70) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1142
#25 0x000070d992ac4998 in QCoreApplication::sendEvent (receiver=<optimized
out>, event=0x7ffe2bac8f70) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1583
#26 QTimerInfoList::activateTimers (this=this@entry=0x55ad5cde4068) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qtimerinfo_unix.cpp:436
#27 0x000070d992ac70c8 in QEventDispatcherUNIXPrivate::activateTimers
(this=0x55ad5cde3f90) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_unix.cpp:196
#28 QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...,
flags@entry=...) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_unix.cpp:472
#29 0x000070d9935f8353 in QUnixEventDispatcherQPA::processEvents
(this=<optimized out>, flags=...) at
/usr/src/debug/qt6-base/qtbase/src/gui/platform/unix/qunixeventdispatcher.cpp:27
#30 0x000070d99294f94e in QEventLoop::processEvents (this=0x7ffe2bac9160,
flags=...) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:100
#31 QEventLoop::exec (this=0x7ffe2bac9160, flags=...) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:182
#32 0x000070d992949c9d in QCoreApplication::exec () at
/usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:74                   
#33 0x000070d993af837a in QApplication::exec () at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2555
#34 0x000055ad317e6dee in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/kwin/kwin-6.0.4.1/src/main_wayland.cpp:609

>From the backtrace I could read that it has something with previewing windows.
When I disabled previews in the window switcher in settings, the alt+tab was
swift again, however, this bug is not limited to that. The lag also occurs when
I hover over certain windows in the taskbar (you have to actually hover the
thumbnail, simply hovering the task bar is not enough). In my case the culprit
is brave that runs on wayland, as well as jetbrains products that use xwayland.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to