Bug 500031 - KWin crashes in KWin::DrmPipeline::prepareAtomicPresentation on screen wake
Summary: KWin crashes in KWin::DrmPipeline::prepareAtomicPresentation on screen wake
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: generic-crash (show other bugs)
Version: 6.3.0
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
: 500942 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-02-13 21:30 UTC by kdebugs
Modified: 2025-03-03 14:41 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.3.2
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/99357/events/26e7313ecfcd4aceaaf85343e1815701/


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kdebugs 2025-02-13 21:30:38 UTC
Application: kwin_wayland (6.3.0)

ApplicationNotResponding [ANR]: false
Qt Version: 6.8.2
Frameworks Version: 6.10.0
Operating System: Linux 6.12.11-200.fc41.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora Linux 41 (KDE Plasma)"
DrKonqi: 6.3.0 [CoredumpBackend]

-- Information about the crash:
I have my monitors set to sleep after a certain amount of time. I also have the session set to log out a certain time after the screens are off. I came back to my computer today, after the night, and kwin crashed as soon as I moved the mouse to turn the screens back on.

I have a dual monitor system connected via display port, with one monitor rotated 90 degrees.

Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.12.11-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X3D 8-Core Processor
Memory: 127.0 GiB of RAM
Graphics Processor: AMD Radeon RX 6900 XT
Product Name: X570 Steel Legend

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: KWin (kwin_wayland), signal: Segmentation fault


This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.fedoraproject.org/>
Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal]
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.

warning: Can't open file /memfd:xwayland-shared (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:kwayland-shared (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:wayland-shm (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:gdk-wayland (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:wayland-cursor (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:JSVMStack:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /home/owner/.cache/plasma_theme_default.kcache (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:JITCode:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:JSGCHeap:QtQml (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:unknown-usage:QtQml (deleted) during file-backed mapping note processing
[New LWP 4776]
[New LWP 4848]
[New LWP 4879]
[New LWP 4851]
[New LWP 4883]
[New LWP 4849]
[New LWP 4850]
[New LWP 5810]
[New LWP 4826]
[New LWP 4878]
[New LWP 4882]
[New LWP 4888]
[New LWP 4847]
[New LWP 4886]
[New LWP 4842]
[New LWP 4889]
[New LWP 27453]
[New LWP 4840]
[New LWP 27454]
[New LWP 4843]
[New LWP 4884]
[New LWP 4887]
[New LWP 11234]
[New LWP 4841]
[New LWP 4844]
[New LWP 4845]
[New LWP 4846]
[New LWP 4881]
[New LWP 11233]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/bin/kwin_wayland --wayland-fd 7 --socket wayland-0 --xwayland-fd 8 --xwayl'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007efcbe280114 in __pthread_kill_implementation () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7efcb7fb8240 (LWP 4776))]
Cannot QML trace cores :(
/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:531: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
  boot_time = datetime.utcfromtimestamp(psutil.boot_time()).strftime('%Y-%m-%dT%H:%M:%S')
/usr/share/drkonqi/gdb/python/gdb_preamble/preamble.py:548: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
  'timestamp': datetime.utcnow().isoformat(),
[Current thread is 1 (Thread 0x7efcb7fb8240 (LWP 4776))]

Thread 29 (Thread 0x7efc0adc16c0 (LWP 11233)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 28 (Thread 0x7efc6cff96c0 (LWP 4881)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 27 (Thread 0x7efc927fc6c0 (LWP 4846)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 26 (Thread 0x7efc92ffd6c0 (LWP 4845)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 25 (Thread 0x7efc937fe6c0 (LWP 4844)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 24 (Thread 0x7efc995ff6c0 (LWP 4841)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 23 (Thread 0x7efc0a5c06c0 (LWP 11234)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 22 (Thread 0x7efc49ba16c0 (LWP 4887)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 21 (Thread 0x7efc4b7fe6c0 (LWP 4884)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 20 (Thread 0x7efc93fff6c0 (LWP 4843)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 19 (Thread 0x7efc25e226c0 (LWP 27454)):
#0  0x00007efcbe2fff1d in syscall () at /lib64/libc.so.6
#1  0x00007efcbeabc3cb in QSemaphore::release(int) () at /lib64/libQt6Core.so.6
#2  0x00007efcbf74f317 in QRunnable::QGenericRunnable::Helper<handleSpans<BlendSrcGeneric>(int, QT_FT_Span_ const*, QSpanData const*, Operator const&)::{lambda()#1}>::impl(QRunnable::QGenericRunnable::HelperBase::Op, QRunnable::QGenericRunnable::HelperBase*, void*) () at /lib64/libQt6Gui.so.6
#3  0x00007efcbeabfbf3 in QThreadPoolThread::run() () at /lib64/libQt6Core.so.6
#4  0x00007efcbeab67e9 in QThreadPrivate::start(void*) () at /lib64/libQt6Core.so.6
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 18 (Thread 0x7efca900b6c0 (LWP 4840)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 17 (Thread 0x7efc276256c0 (LWP 27453)):
#0  0x00007efcbe2fff1d in syscall () at /lib64/libc.so.6
#1  0x00007efcbeabc3cb in QSemaphore::release(int) () at /lib64/libQt6Core.so.6
#2  0x00007efcbf74f317 in QRunnable::QGenericRunnable::Helper<handleSpans<BlendSrcGeneric>(int, QT_FT_Span_ const*, QSpanData const*, Operator const&)::{lambda()#1}>::impl(QRunnable::QGenericRunnable::HelperBase::Op, QRunnable::QGenericRunnable::HelperBase*, void*) () at /lib64/libQt6Gui.so.6
#3  0x00007efcbeabfbf3 in QThreadPoolThread::run() () at /lib64/libQt6Core.so.6
#4  0x00007efcbeab67e9 in QThreadPrivate::start(void*) () at /lib64/libQt6Core.so.6
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 16 (Thread 0x7efc48a7c6c0 (LWP 4889)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 15 (Thread 0x7efc98dfe6c0 (LWP 4842)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 14 (Thread 0x7efc4a3a26c0 (LWP 4886)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 13 (Thread 0x7efc91ffb6c0 (LWP 4847)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d8c2 in pthread_cond_clockwait@GLIBC_2.30 () at /lib64/libc.so.6
#2  0x00007efcc18f1abf in KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}::operator()() const [clone .lto_priv.0] () at /lib64/libkwin.so.6
#3  0x00007efcc18f261a in std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> (), std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result<void>, std::__future_base::_Result_base::_Deleter>, std::thread::_Invoker<std::tuple<QThread::create<KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}>(KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}&&)::{lambda((auto:1&&)...)#1}> >, void> >::_M_invoke(std::_Any_data const&) () at /lib64/libkwin.so.6
#4  0x00007efcc18eb0f6 in std::__future_base::_State_baseV2::_M_do_set(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>*, bool*) () at /lib64/libkwin.so.6
#5  0x00007efcbe2834fb in __pthread_once_slow.isra.0 () at /lib64/libc.so.6
#6  0x00007efcbe283569 in pthread_once@GLIBC_2.2.5 () at /lib64/libc.so.6
#7  0x00007efcc18f2913 in std::__future_base::_Deferred_state<std::thread::_Invoker<std::tuple<QThread::create<KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}>(KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}&&)::{lambda((auto:1&&)...)#1}> >, void>::_M_complete_async() [clone .lto_priv.0] () at /lib64/libkwin.so.6
#8  0x00007efcbea194b7 in QThreadCreateThread::run() () at /lib64/libQt6Core.so.6
#9  0x00007efcbeab67e9 in QThreadPrivate::start(void*) () at /lib64/libQt6Core.so.6
#10 0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#11 0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 12 (Thread 0x7efc492b26c0 (LWP 4888)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 11 (Thread 0x7efc6d7fa6c0 (LWP 4882)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 10 (Thread 0x7efc6effd6c0 (LWP 4878)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 9 (Thread 0x7efcaa1ff6c0 (LWP 4826)):
#0  0x00007efcbe2f4930 in ppoll () at /lib64/libc.so.6
#1  0x00007efcbd3cb8a3 in g_main_context_iterate_unlocked.isra () at /lib64/libglib-2.0.so.0
#2  0x00007efcbd36c783 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007efcbebef2b3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6
#4  0x00007efcbe900993 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6
#5  0x00007efcbea19095 in QThread::exec() () at /lib64/libQt6Core.so.6
#6  0x00007efcbfa69581 in QDBusConnectionManager::run() () at /lib64/libQt6DBus.so.6
#7  0x00007efcbeab67e9 in QThreadPrivate::start(void*) () at /lib64/libQt6Core.so.6
#8  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#9  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 8 (Thread 0x7efc16dff6c0 (LWP 5810)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 7 (Thread 0x7efc6ffff6c0 (LWP 4850)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efcbe4416c0 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () at /lib64/libstdc++.so.6
#3  0x00007efcc18f1dfb in KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}::operator()() const [clone .lto_priv.0] () at /lib64/libkwin.so.6
#4  0x00007efcc18f261a in std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> (), std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result<void>, std::__future_base::_Result_base::_Deleter>, std::thread::_Invoker<std::tuple<QThread::create<KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}>(KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}&&)::{lambda((auto:1&&)...)#1}> >, void> >::_M_invoke(std::_Any_data const&) () at /lib64/libkwin.so.6
#5  0x00007efcc18eb0f6 in std::__future_base::_State_baseV2::_M_do_set(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>*, bool*) () at /lib64/libkwin.so.6
#6  0x00007efcbe2834fb in __pthread_once_slow.isra.0 () at /lib64/libc.so.6
#7  0x00007efcbe283569 in pthread_once@GLIBC_2.2.5 () at /lib64/libc.so.6
#8  0x00007efcc18f2913 in std::__future_base::_Deferred_state<std::thread::_Invoker<std::tuple<QThread::create<KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}>(KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}&&)::{lambda((auto:1&&)...)#1}> >, void>::_M_complete_async() [clone .lto_priv.0] () at /lib64/libkwin.so.6
#9  0x00007efcbea194b7 in QThreadCreateThread::run() () at /lib64/libQt6Core.so.6
#10 0x00007efcbeab67e9 in QThreadPrivate::start(void*) () at /lib64/libQt6Core.so.6
#11 0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#12 0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 6 (Thread 0x7efc90ff96c0 (LWP 4849)):
#0  0x00007efcbe2ca713 in clock_nanosleep@GLIBC_2.2.5 () at /lib64/libc.so.6
#1  0x00007efcbe2d6807 in nanosleep () at /lib64/libc.so.6
#2  0x00007efcc18f1f4f in KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}::operator()() const [clone .lto_priv.0] () at /lib64/libkwin.so.6
#3  0x00007efcc18f261a in std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> (), std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result<void>, std::__future_base::_Result_base::_Deleter>, std::thread::_Invoker<std::tuple<QThread::create<KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}>(KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}&&)::{lambda((auto:1&&)...)#1}> >, void> >::_M_invoke(std::_Any_data const&) () at /lib64/libkwin.so.6
#4  0x00007efcc18eb0f6 in std::__future_base::_State_baseV2::_M_do_set(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>*, bool*) () at /lib64/libkwin.so.6
#5  0x00007efcbe2834fb in __pthread_once_slow.isra.0 () at /lib64/libc.so.6
#6  0x00007efcbe283569 in pthread_once@GLIBC_2.2.5 () at /lib64/libc.so.6
#7  0x00007efcc18f2913 in std::__future_base::_Deferred_state<std::thread::_Invoker<std::tuple<QThread::create<KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}>(KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}&&)::{lambda((auto:1&&)...)#1}> >, void>::_M_complete_async() [clone .lto_priv.0] () at /lib64/libkwin.so.6
#8  0x00007efcbea194b7 in QThreadCreateThread::run() () at /lib64/libQt6Core.so.6
#9  0x00007efcbeab67e9 in QThreadPrivate::start(void*) () at /lib64/libQt6Core.so.6
#10 0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#11 0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 5 (Thread 0x7efc6e7fc6c0 (LWP 4883)):
#0  0x00007efcbe2f4930 in ppoll () at /lib64/libc.so.6
#1  0x00007efcbd3cb8a3 in g_main_context_iterate_unlocked.isra () at /lib64/libglib-2.0.so.0
#2  0x00007efcbd36c783 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007efcbebef2b3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6
#4  0x00007efcbe900993 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6
#5  0x00007efcbea19095 in QThread::exec() () at /lib64/libQt6Core.so.6
#6  0x00007efcbeab67e9 in QThreadPrivate::start(void*) () at /lib64/libQt6Core.so.6
#7  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#8  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 4 (Thread 0x7efc6f7fe6c0 (LWP 4851)):
#0  0x00007efcbe2f4930 in ppoll () at /lib64/libc.so.6
#1  0x00007efcbd3cb8a3 in g_main_context_iterate_unlocked.isra () at /lib64/libglib-2.0.so.0
#2  0x00007efcbd36c783 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007efcbebef2b3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6
#4  0x00007efcbe900993 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6
#5  0x00007efcbea19095 in QThread::exec() () at /lib64/libQt6Core.so.6
#6  0x00007efcbeab67e9 in QThreadPrivate::start(void*) () at /lib64/libQt6Core.so.6
#7  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#8  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 3 (Thread 0x7efc4bfff6c0 (LWP 4879)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efca16faa2d in cnd_wait () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#3  0x00007efca16c584b in util_queue_thread_func () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#4  0x00007efca16fa95c in impl_thrd_routine () at /usr/lib64/dri-freeworld/libgallium-24.3.4.so
#5  0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#6  0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 2 (Thread 0x7efc917fa6c0 (LWP 4848)):
#0  0x00007efcbe27a7e9 in __futex_abstimed_wait_common () at /lib64/libc.so.6
#1  0x00007efcbe27d239 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007efcbe4416c0 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () at /lib64/libstdc++.so.6
#3  0x00007efcc18f1dfb in KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}::operator()() const [clone .lto_priv.0] () at /lib64/libkwin.so.6
#4  0x00007efcc18f261a in std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> (), std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result<void>, std::__future_base::_Result_base::_Deleter>, std::thread::_Invoker<std::tuple<QThread::create<KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}>(KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}&&)::{lambda((auto:1&&)...)#1}> >, void> >::_M_invoke(std::_Any_data const&) () at /lib64/libkwin.so.6
#5  0x00007efcc18eb0f6 in std::__future_base::_State_baseV2::_M_do_set(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>*, bool*) () at /lib64/libkwin.so.6
#6  0x00007efcbe2834fb in __pthread_once_slow.isra.0 () at /lib64/libc.so.6
#7  0x00007efcbe283569 in pthread_once@GLIBC_2.2.5 () at /lib64/libc.so.6
#8  0x00007efcc18f2913 in std::__future_base::_Deferred_state<std::thread::_Invoker<std::tuple<QThread::create<KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}>(KWin::DrmCommitThread::DrmCommitThread(KWin::DrmGpu*, QString const&)::{lambda()#1}&&)::{lambda((auto:1&&)...)#1}> >, void>::_M_complete_async() [clone .lto_priv.0] () at /lib64/libkwin.so.6
#9  0x00007efcbea194b7 in QThreadCreateThread::run() () at /lib64/libQt6Core.so.6
#10 0x00007efcbeab67e9 in QThreadPrivate::start(void*) () at /lib64/libQt6Core.so.6
#11 0x00007efcbe27e168 in start_thread () at /lib64/libc.so.6
#12 0x00007efcbe30214c in __clone3 () at /lib64/libc.so.6

Thread 1 (Thread 0x7efcb7fb8240 (LWP 4776)):
[KCrash Handler]
#4  0x00007efcc19124f3 in KWin::DrmPipeline::prepareAtomicPresentation(KWin::DrmAtomicCommit*, std::shared_ptr<KWin::OutputFrame> const&) () at /lib64/libkwin.so.6
#5  0x00007efcc1914408 in KWin::DrmPipeline::present(std::shared_ptr<KWin::OutputFrame> const&) () at /lib64/libkwin.so.6
#6  0x00007efcc19160e7 in KWin::DrmOutput::present(std::shared_ptr<KWin::OutputFrame> const&) () at /lib64/libkwin.so.6
#7  0x00007efcc16607d3 in KWin::WaylandCompositor::composite(KWin::RenderLoop*) () at /lib64/libkwin.so.6
#8  0x00007efcbe95a26e in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt6Core.so.6
#9  0x00007efcc1675aa4 in KWin::RenderLoop::frameRequested(KWin::RenderLoop*) () at /lib64/libkwin.so.6
#10 0x00007efcc167a1d2 in KWin::RenderLoopPrivate::dispatch() () at /lib64/libkwin.so.6
#11 0x00007efcbe95a26e in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt6Core.so.6
#12 0x00007efcbe96a02d in QTimer::timeout(QTimer::QPrivateSignal) () at /lib64/libQt6Core.so.6
#13 0x00007efcbe94b935 in QObject::event(QEvent*) () at /lib64/libQt6Core.so.6
#14 0x00007efcbfc3d9b8 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt6Widgets.so.6
#15 0x00007efcbe8f3590 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt6Core.so.6
#16 0x00007efcbeab4e28 in QTimerInfoList::activateTimers() () at /lib64/libQt6Core.so.6
#17 0x00007efcbeab929b in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6
#18 0x00007efcbf6ca7b2 in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Gui.so.6
#19 0x00007efcbe900993 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6
#20 0x00007efcbe8fbf6e in QCoreApplication::exec() () at /lib64/libQt6Core.so.6
#21 0x0000563c4a798793 in main ()

Reported using DrKonqi
Comment 1 cwo 2025-02-16 23:57:31 UTC
*** Bug 500139 has been marked as a duplicate of this bug. ***
Comment 2 cwo 2025-02-17 00:00:01 UTC
*** Bug 500094 has been marked as a duplicate of this bug. ***
Comment 3 Bug Janitor Service 2025-02-20 14:41:27 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/7205
Comment 4 Zamundaaa 2025-02-25 00:33:53 UTC
Git commit 9dd70310eb016625313a0e81b6b49e98e64fff6a by Xaver Hugl.
Committed on 24/02/2025 at 21:49.
Pushed by zamundaaa into branch 'master'.

backends/drm: reject output configurations that can't be powered at all

Just disabling pipelines doesn't work, as the outputs are still enabled in that
case and will try to present on the disabled pipeline, causing crashes.

This fixes https://crash-reports.kde.org/share/issue/bbe74a0e4b494c929f8f52bca6a0953b

M  +3    -4    src/backends/drm/drm_gpu.cpp

https://invent.kde.org/plasma/kwin/-/commit/9dd70310eb016625313a0e81b6b49e98e64fff6a
Comment 5 Zamundaaa 2025-02-25 00:34:02 UTC
Git commit 0d05df00b04d7913800bd7e10d3594a3fea8ecd2 by Xaver Hugl.
Committed on 24/02/2025 at 21:49.
Pushed by zamundaaa into branch 'master'.

workspace: better deal with having more outputs than the GPU can drive

Instead of just giving up, when generating a new output configuration we just disable
outputs one by one. This *should* result in an output configuration that can actually
be enabled, and it's up to the user to then change the set of enabled outputs to what
they like to have.

M  +10   -4    src/backends/drm/drm_backend.cpp
M  +1    -1    src/backends/drm/drm_backend.h
M  +5    -1    src/backends/drm/drm_gpu.cpp
M  +1    -0    src/backends/drm/drm_pipeline.h
M  +2    -2    src/core/outputbackend.cpp
M  +1    -1    src/core/outputbackend.h
M  +6    -0    src/effect/globals.h
M  +6    -2    src/wayland/outputmanagement_v2.cpp
M  +62   -33   src/workspace.cpp
M  +1    -1    src/workspace.h

https://invent.kde.org/plasma/kwin/-/commit/0d05df00b04d7913800bd7e10d3594a3fea8ecd2
Comment 6 Zamundaaa 2025-02-25 15:52:52 UTC
Git commit 7d5864caf3334ac9bd90dd1568680e05bcb20e6b by Xaver Hugl.
Committed on 25/02/2025 at 13:55.
Pushed by zamundaaa into branch 'Plasma/6.3'.

backends/drm: reject output configurations that can't be powered at all

Just disabling pipelines doesn't work, as the outputs are still enabled in that
case and will try to present on the disabled pipeline, causing crashes.

This fixes https://crash-reports.kde.org/share/issue/bbe74a0e4b494c929f8f52bca6a0953b
(cherry picked from commit 9dd70310eb016625313a0e81b6b49e98e64fff6a)

M  +3    -4    src/backends/drm/drm_gpu.cpp

https://invent.kde.org/plasma/kwin/-/commit/7d5864caf3334ac9bd90dd1568680e05bcb20e6b
Comment 7 Zamundaaa 2025-02-25 15:53:00 UTC
Git commit a23949582f05c1db7c9bb3bf7fd0292b7120045d by Xaver Hugl.
Committed on 25/02/2025 at 13:55.
Pushed by zamundaaa into branch 'Plasma/6.3'.

workspace: better deal with having more outputs than the GPU can drive

Instead of just giving up, when generating a new output configuration we just disable
outputs one by one. This *should* result in an output configuration that can actually
be enabled, and it's up to the user to then change the set of enabled outputs to what
they like to have.
(cherry picked from commit 0d05df00b04d7913800bd7e10d3594a3fea8ecd2)

M  +10   -4    src/backends/drm/drm_backend.cpp
M  +1    -1    src/backends/drm/drm_backend.h
M  +5    -1    src/backends/drm/drm_gpu.cpp
M  +1    -0    src/backends/drm/drm_pipeline.h
M  +2    -2    src/core/outputbackend.cpp
M  +1    -1    src/core/outputbackend.h
M  +6    -0    src/effect/globals.h
M  +6    -2    src/wayland/outputmanagement_v2.cpp
M  +62   -33   src/workspace.cpp
M  +1    -1    src/workspace.h

https://invent.kde.org/plasma/kwin/-/commit/a23949582f05c1db7c9bb3bf7fd0292b7120045d
Comment 8 Filip 2025-03-02 18:30:48 UTC
*** Bug 500942 has been marked as a duplicate of this bug. ***
Comment 9 Filip 2025-03-02 18:32:12 UTC
Looks like this issue is still reproducible Plasma 6.3.2

https://bugs.kde.org/show_bug.cgi?id=500942
Comment 10 Henrik 2025-03-02 20:05:04 UTC
(In reply to Filip from comment #9)
> Looks like this issue is still reproducible Plasma 6.3.2
> 
> https://bugs.kde.org/show_bug.cgi?id=500942

For me (reporting in 500942), the issue even started with 6.3.2. It did not appear before the upgrade to 6.3.2 today (2 march 2025).
I had run updates less than a week before that.
Comment 11 Henrik 2025-03-03 07:23:45 UTC
(In reply to Henrik from comment #10)
> (In reply to Filip from comment #9)
> > Looks like this issue is still reproducible Plasma 6.3.2
> > 
> For me (reporting in 500942), the issue even started with 6.3.2. It did not
> appear before the upgrade to 6.3.2 today (2 march 2025).
> I had run updates less than a week before that.

According to the version history shown at the link below, it seems that the previous version that worked was 6.3.0-3, so what worked in 6.3.0 broke when upgrading to 6.3.2-1.
https:// packages. fedoraproject. org/pkgs/kwin/kwin/fedora-41-updates.html
Comment 12 Michal Hlavac 2025-03-03 07:25:38 UTC
I have same problem on plasma 6.3.2 when connected DELL dock station to my XPS 9560 laptop. Using latest openSUSE Tumbleweed.
Let's reopen this issue.
Comment 13 Michal Hlavac 2025-03-03 07:27:24 UTC
Operating System: openSUSE Tumbleweed 20250301
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.4-1-default (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-7700HQ CPU @ 2.80GHz
Memory: 31,2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 630
Manufacturer: Dell Inc.
Product Name: XPS 15 9560
Comment 14 Zamundaaa 2025-03-03 14:41:42 UTC
The regression is slightly different from the original bug report, and tracked in bug 500819. Let's leave this original issue as fixed