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

            Bug ID: 516940
           Summary: kwin_wayland crashes in
                    KWin::BackendOutput::refreshRate() while
                    screenshotting a dialog using the "Dialog Parent"
                    effect to dim the parent window
    Classification: Plasma
           Product: kwin
      Version First 6.6.80
       Reported In:
          Platform: KDE Linux
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

STEPS TO REPRODUCE
1. Open Kate, create a new file, type random characters
2. Ctrl+W to close it
3. While the "Save or discard changes?" dialog is visible and the parent window
is darkened, press Print Screen


OBSERVED RESULT
kwin_wayland crashes 100% of the time with this backtrace:

#2  0x00007fdfd4a28e65 in KCrash::defaultCrashHandler(int) () at
/usr/lib/libKF6Crash.so.6
#3  0x00007fdfd1c3e2d0 in <signal handler called> () at /usr/lib/libc.so.6
#4  0x00007fdfd4c489b4 in KWin::BackendOutput::refreshRate() const () at
/usr/lib/libkwin.so.6
#5  0x00007fdfd4d09be3 in KWin::TimeLine::advance(KWin::RenderView const*) ()
at /usr/lib/libkwin.so.6
#6  0x00007fdfd4ccddd8 in
KWin::AnimationEffect::prePaintWindow(KWin::RenderView*, KWin::EffectWindow*,
KWin::WindowPrePaintData&) () at /usr/lib/libkwin.so.6
#7  0x00007fdfd4cd47e3 in
KWin::EffectsHandler::prePaintWindow(KWin::RenderView*, KWin::EffectWindow*,
KWin::WindowPrePaintData&) () at /usr/lib/libkwin.so.6
#8  0x00007fdfd4ccde10 in
KWin::AnimationEffect::prePaintWindow(KWin::RenderView*, KWin::EffectWindow*,
KWin::WindowPrePaintData&) () at /usr/lib/libkwin.so.6
#9  0x00007fdfd4cd47e3 in
KWin::EffectsHandler::prePaintWindow(KWin::RenderView*, KWin::EffectWindow*,
KWin::WindowPrePaintData&) () at /usr/lib/libkwin.so.6
#10 0x00007fdfd4ccde10 in
KWin::AnimationEffect::prePaintWindow(KWin::RenderView*, KWin::EffectWindow*,
KWin::WindowPrePaintData&) () at /usr/lib/libkwin.so.6
#11 0x00007fdfd4cd47e3 in
KWin::EffectsHandler::prePaintWindow(KWin::RenderView*, KWin::EffectWindow*,
KWin::WindowPrePaintData&) () at /usr/lib/libkwin.so.6
#12 0x0000556fad3d30e9 in ??? ()
#13 0x00007fdfd4cd47e3 in
KWin::EffectsHandler::prePaintWindow(KWin::RenderView*, KWin::EffectWindow*,
KWin::WindowPrePaintData&) () at /usr/lib/libkwin.so.6
#14 0x00007fdfd4e14cd0 in KWin::WorkspaceScene::preparePaintSimpleScreen() ()
at /usr/lib/libkwin.so.6
#15 0x00007fdfd4e15866 in KWin::WorkspaceScene::prePaint(KWin::SceneView*) ()
at /usr/lib/libkwin.so.6
#16 0x00007fdf8406087d in ??? () at
/usr/lib/qt6/plugins/kwin/plugins/screenshot.so
#17 0x00007fdf84060ec0 in ??? () at
/usr/lib/qt6/plugins/kwin/plugins/screenshot.so
#18 0x00007fdf84063552 in ??? () at
/usr/lib/qt6/plugins/kwin/plugins/screenshot.so
#19 0x00007fdf84063fad in ??? () at
/usr/lib/qt6/plugins/kwin/plugins/screenshot.so
#20 0x00007fdfd281ebb1 in ??? () at /usr/lib/libQt6DBus.so.6
#21 0x00007fdfd281f952 in ??? () at /usr/lib/libQt6DBus.so.6
#22 0x00007fdfd2822c07 in ??? () at /usr/lib/libQt6DBus.so.6
#23 0x00007fdfd2823fca in ??? () at /usr/lib/libQt6DBus.so.6
#24 0x00007fdfd2369474 in QObject::event(QEvent*) () at
/usr/lib/libQt6Core.so.6
#25 0x00007fdfd340a380 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() at /usr/lib/libQt6Widgets.so.6
#26 0x00007fdfd230ef48 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() at /usr/lib/libQt6Core.so.6
#27 0x00007fdfd230f320 in QCoreApplicationPrivate::sendPostedEvents(QObject*,
int, QThreadData*) () at /usr/lib/libQt6Core.so.6
#28 0x00007fdfd24d30cd in
QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /usr/lib/libQt6Core.so.6
#29 0x00007fdfd313acf3 in
QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
() at /usr/lib/libQt6Gui.so.6
#30 0x00007fdfd2319cf6 in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at
/usr/lib/libQt6Core.so.6
#31 0x00007fdfd23139f1 in QCoreApplication::exec() () at
/usr/lib/libQt6Core.so.6
#32 0x0000556fad39ad7d in ??? ()
#33 0x00007fdfd1c276c1 in ??? () at /usr/lib/libc.so.6
#34 0x00007fdfd1c277f9 in __libc_start_main () at /usr/lib/libc.so.6
#35 0x0000556fad39fe25 in ??? ()

In addition, a dangling `/usr/bin/spectacle --dbus` process is left hanging and
prevents running Spectacle again until it is manually terminated. This may be a
separate bug.


EXPECTED RESULT
Spectacle takes a screenshot 


SOFTWARE/OS VERSIONS
Operating System: KDE Linux 2026-02-28
KDE Plasma Version: 6.6.80
KDE Frameworks Version: 6.24.0
Qt Version: 6.10.2
Kernel Version: 6.18.13-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon™ 780M Graphics
Memory: 17 GB of RAM (16.0 GB usable)
Graphics Processor: AMD Radeon 780M Graphics


ADDITIONAL INFORMATION
Disabling the Dialog Parent effect prevents the crash.

Since KWin is in KWin::BackendOutput::refreshRate, if it's relevant, my screen
has a 120Hz refresh rate. Its scale factor is 175%.

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

Reply via email to