| Summary: | Freezing due to out of memory while importing an mbox file into Clawsmail | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | kdgiid.dcz |
| Component: | generic-crash | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | crash | CC: | kdedev |
| Priority: | NOR | ||
| Version First Reported In: | 6.4.4 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Crash dump
kwin log |
||
|
Description
kdgiid.dcz
2025-11-10 14:55:35 UTC
Thanks for the crash report. As the message at the top of the summary says, if something crashed, we need a backtrace of it so we can figure out what's going on. Can you please attach a backtrace of the crash using the coredumpctl command-line program, as detailed in https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl ? If there is no coredump, this isn't a crash, it's a freeze. In that case: can you check kwin's logs for the timeframe when the hard freeze occurs? journalctl --boot --user-unit plasma-kwin_wayland > ~/log.txt Also, could you retrieve kwin's backtrace when the hard freeze occurs? You would need to ssh from another computer and attach a debugger to kwin process, e.g. sudo gdb -p $(pidof kwin_wayland) then type bt then press 'c' if it asks you if you want to continue paging Then copy-and-paste the output here. Thanks! Created attachment 187156 [details]
Crash dump
There is no core dump because it's an out of memory condition and I don't have 40GiB disk space free :) I tried to dump core manually, but a file truncated due to lack of space doesn't load again. Looking at the backtrace, I'm guessing that kwin handles the out of memory failure correctly but crashes when trying to reallocate the invalid pointer? I could be wrong. Thanks for confirming this isn't a crash, and for the backtrace. Can you also check kwin's logs for the timeframe when the hard freeze occurs? journalctl --boot --user-unit plasma-kwin_wayland > ~/log.txt Created attachment 187167 [details]
kwin log
Note that there should be 2 kwin crashes - first crash because of lack of disk pace that I haven't reported yet. I only captured the backtrace because after the first crash, triggering another doesn't lose me anything.
I couldn't reliably find the separate crashes because of the noise from maliit... crashes (and I'm not even using it).
Another important detail: I took the backtrace on SIGSEGV, but I didn't capture that part in the logs. This is why I keep referring to this as a crash - I see sigsegv as a sufficient condition for that description. Thanks for the logs. I misunderstood what you said about the coredump, my apologies. I understand from your attachment that kwin_wayland did dump core and crash. Relevant section of the backtrace Stack trace of thread 1853: #0 0x0000000000000000 n/a (n/a + 0x0) #1 0x00007f28a652a311 _ZN16pthreadTimedLock4lockEv (libKF6CoreAddons.so.6 + 0x17311) #2 0x00007f28a652fba6 _ZN16KSharedDataCache7Private11CacheLocker12cautiousLockEv (libKF6CoreAddons.so.6 + 0x1cba6) #3 0x00007f28a6530e38 _ZNK16KSharedDataCache4findERK7QStringP10QByteArray (libKF6CoreAddons.so.6 + 0x1de38) #4 0x00007f28a891ea98 _ZN4KSvg15ImageSetPrivate11findInCacheERK7QStringR7QPixmapj (libKF6Svg.so.6 + 0x2aa98) #5 0x00007f28a8900710 _ZN4KSvg15FrameSvgPrivate18generateBackgroundERK14QSharedPointerINS_9FrameDataEE (libKF6Svg.so.6 + 0xc710) #6 0x00007f28a8902214 _ZN4KSvg15FrameSvgPrivate9alphaMaskEv (libKF6Svg.so.6 + 0xe214) #7 0x00007f28a890243d _ZNK4KSvg8FrameSvg4maskEv (libKF6Svg.so.6 + 0xe43d) #8 0x00007f2861914bab _ZN4KSvg12FrameSvgItem18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPv (libcorebindingsplugin.so + 0x9bab) #9 0x00007f28619174c2 _ZN4KSvg12FrameSvgItem11qt_metacallEN11QMetaObject4CallEiPPv (libcorebindingsplugin.so + 0xc4c2) #10 0x00007f28a53068a1 _ZNK13QMetaProperty4readEPK7QObject (libQt6Core.so.6 + 0x1068a1) #11 0x00007f28a5352215 _ZNK7QObject8propertyEPKc (libQt6Core.so.6 + 0x152215) #12 0x00007f2861549f6f _ZNK11PlasmaQuick16DialogBackground4maskEv.isra.0 (libPlasmaQuick.so.6 + 0x59f6f) #13 0x00007f2861508e95 _ZN11PlasmaQuick13DialogPrivate11updateThemeEv (libPlasmaQuick.so.6 + 0x18e95) #14 0x00007f2861509b22 _ZN11PlasmaQuick13DialogPrivate18syncToMainItemSizeEv (libPlasmaQuick.so.6 + 0x19b22) #15 0x00007f286150cedd _ZN11PlasmaQuick13DialogPrivate16updateVisibilityEb (libPlasmaQuick.so.6 + 0x1cedd) #16 0x00007f286150e60a _ZN11PlasmaQuick6Dialog5eventEP6QEvent (libPlasmaQuick.so.6 + 0x1e60a) #17 0x00007f28a663d9b8 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt6Widgets.so.6 + 0x3d9b8) #18 0x00007f28a52f3f30 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt6Core.so.6 + 0xf3f30) #19 0x00007f28a5b4ebc9 _ZN14QWindowPrivate10setVisibleEb (libQt6Gui.so.6 + 0x14ebc9) #20 0x00007f286150a6a8 _ZThn40_N11PlasmaQuick6Dialog17componentCompleteEv (libPlasmaQuick.so.6 + 0x1a6a8) #21 0x00007f28a710e231 _ZN17QQmlObjectCreator8finalizeER26QQmlInstantiationInterrupt (libQt6Qml.so.6 + 0x30e231) #22 0x00007f28a70d51fc _ZN20QQmlIncubatorPrivate8incubateER26QQmlInstantiationInterrupt (libQt6Qml.so.6 + 0x2d51fc) #23 0x00007f28a70d5fbf _ZN17QQmlEnginePrivate8incubateER13QQmlIncubatorRK14QQmlRefPointerI15QQmlContextDataE (libQt6Qml.so.6 + 0x2d5fbf) #24 0x00007f28a4639b4a _ZN24QQmlDelegateModelPrivate6objectEN18QQmlListCompositor5GroupEiN13QQmlIncubator14IncubationModeE (libQt6QmlModels.so.6 + 0x69b4a) #25 0x00007f28a45eacd6 _ZN23QQmlInstantiatorPrivate11modelObjectEib (libQt6QmlModels.so.6 + 0x1acd6) #26 0x00007f28a45eb815 _ZN23QQmlInstantiatorPrivate10regenerateEv (libQt6QmlModels.so.6 + 0x1b815) #27 0x00007f28a70694bc _ZN14GenericBindingILi1EE5writeERKN3QV45ValueEb6QFlagsIN16QQmlPropertyData9WriteFlagEE (libQt6Qml.so.6 + 0x2694bc) #28 0x00007f28a70617e1 _ZN11QQmlBinding8doUpdateERKN24QQmlJavaScriptExpression13DeleteWatcherE6QFlagsIN16QQmlPropertyData9WriteFlagEERN3QV45ScopeE (libQt6Qml.so.6 + 0x2617e1) #29 0x00007f28a70654f8 _ZN11QQmlBinding6updateE6QFlagsIN16QQmlPropertyData9WriteFlagEE (libQt6Qml.so.6 + 0x2654f8) #30 0x00007f28a710b295 _ZN12QQmlNotifier10emitNotifyEP20QQmlNotifierEndpointPPv (libQt6Qml.so.6 + 0x30b295) #31 0x00007f28a535a6ed _Z10doActivateILb0EEvP7QObjectiPPv (libQt6Core.so.6 + 0x15a6ed) #32 0x00007f28a843e44a _ZN4KWin6TabBox6TabBox4showEv (libkwin.so.6 + 0x43e44a) #33 0x00007f28a535ad2e _Z10doActivateILb0EEvP7QObjectiPPv (libQt6Core.so.6 + 0x15ad2e) #34 0x00007f28a536abad _ZN6QTimer7timeoutENS_14QPrivateSignalE (libQt6Core.so.6 + 0x16abad) #35 0x00007f28a534c415 _ZN7QObject5eventEP6QEvent (libQt6Core.so.6 + 0x14c415) #36 0x00007f28a663d9b8 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt6Widgets.so.6 + 0x3d9b8) #37 0x00007f28a52f3f30 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt6Core.so.6 + 0xf3f30) #38 0x00007f28a54b8628 _ZN14QTimerInfoList14activateTimersEv (libQt6Core.so.6 + 0x2b8628) #39 0x00007f28a54bcad3 _ZN20QEventDispatcherUNIX13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x2bcad3) #40 0x00007f28a60cd6b2 _ZN23QUnixEventDispatcherQPA13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Gui.so.6 + 0x6cd6b2) #41 0x00007f28a5301313 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x101313) #42 0x00007f28a52fc90e _ZN16QCoreApplication4execEv (libQt6Core.so.6 + 0xfc90e) #43 0x00005600a6181d97 main (kwin_wayland + 0xfd97) #44 0x00007f28a4c10448 __libc_start_call_main (libc.so.6 + 0x3448) #45 0x00007f28a4c1050b __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x350b) #46 0x00005600a6187fa5 _start (kwin_wayland + 0x15fa5) No worries, I'm glad that you figured out the miscommunication. By the way, the stack trace you quoted is *not* the same as the one that I captured manually (gdb.txt). It's likely that it's from the first crash from running out of space. The one from importing emails crashes in #0 0x00007f874629a9c8 in __memmove_sse2_unaligned_erms () at /lib64/libc.so.6 #1 0x00007f874965577a in QArrayDataPointer<KWin::Window*>::reallocateAndGrow(QArrayData::GrowthPosition, long long, QArrayDataPointer<KWin::Window*>*) () at /lib64/libkwin.so.6 ... Thanks for clarifying Searchable backtrace for the original issue: #0 0x00007f874629a9c8 in __memmove_sse2_unaligned_erms () at /lib64/libc.so.6 #1 0x00007f874965577a in QArrayDataPointer<KWin::Window*>::reallocateAndGrow(QArrayData::GrowthPosition, long long, QArrayDataPointer<KWin::Window*>*) () at /lib64/libkwin.so.6 #2 0x00007f87497410ee in KWin::Workspace::raiseWindow(KWin::Window*, bool) () at /lib64/libkwin.so.6 #3 0x00007f87496573f7 in KWin::Workspace::activateNextWindow(KWin::Window*) () at /lib64/libkwin.so.6 #4 0x00007f87498881a6 in KWin::Workspace::removeWaylandWindow(KWin::Window*) () at /lib64/libkwin.so.6 #5 0x00007f874695ad2e in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt6Core.so.6 #6 0x00007f87498560a4 in KWin::WaylandServer::windowRemoved(KWin::Window*) () at /lib64/libkwin.so.6 #7 0x00007f87498a6873 in KWin::XdgSurfaceWindow::destroyWindow() () at /lib64/libkwin.so.6 #8 0x00007f874695ad2e in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt6Core.so.6 #9 0x00007f8749a254f1 in KWin::XdgToplevelInterface::~XdgToplevelInterface() () at /lib64/libkwin.so.6 #10 0x00007f8749a70707 in QtWaylandServer::xdg_toplevel::destroy_func(wl_resource*) () at /lib64/libkwin.so.6 #11 0x00007f8747a10788 in remove_and_destroy_resource () at /lib64/libwayland-server.so.0 #12 0x00007f8745142056 in ffi_call_unix64 () at /lib64/libffi.so.8 #13 0x00007f874513d74d in ffi_call_int.lto_priv () at /lib64/libffi.so.8 #14 0x00007f874514064e in ffi_call () at /lib64/libffi.so.8 #15 0x00007f8747a0cb8c in wl_closure_invoke.constprop () at /lib64/libwayland-server.so.0 #16 0x00007f8747a118e8 in wl_client_connection_data () at /lib64/libwayland-server.so.0 #17 0x00007f8747a0fdc2 in wl_event_loop_dispatch () at /lib64/libwayland-server.so.0 #18 0x00007f874997f599 in KWin::Display::dispatchEvents() () at /lib64/libkwin.so.6 #19 0x00007f874695ad2e in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt6Core.so.6 #20 0x00007f874696935d in QSocketNotifier::activated(QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal) () at /lib64/libQt6Core.so.6 #21 0x00007f8746969b4b in QSocketNotifier::event(QEvent*) () at /lib64/libQt6Core.so.6 #22 0x00007f8747c3d9b8 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt6Widgets.so.6 #23 0x00007f87468f3f30 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt6Core.so.6 #24 0x00007f8746abc306 in QEventDispatcherUNIXPrivate::activateSocketNotifiers() () at /lib64/libQt6Core.so.6 #25 0x00007f8746abcc8c in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6 #26 0x00007f87476cd6b2 in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Gui.so.6 #27 0x00007f8746901313 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6 #28 0x00007f87468fc90e in QCoreApplication::exec() () at /lib64/libQt6Core.so.6 #29 0x00005582bec0bd97 in main () warning: Currently logging to gdb.txt. Turn the logging off and on to make the new setting effective. #0 0x00007f874629a9c8 in __memmove_sse2_unaligned_erms () at /lib64/libc.so.6 #1 0x00007f874965577a in QArrayDataPointer<KWin::Window*>::reallocateAndGrow(QArrayData::GrowthPosition, long long, QArrayDataPointer<KWin::Window*>*) () at /lib64/libkwin.so.6 #2 0x00007f87497410ee in KWin::Workspace::raiseWindow(KWin::Window*, bool) () at /lib64/libkwin.so.6 #3 0x00007f87496573f7 in KWin::Workspace::activateNextWindow(KWin::Window*) () at /lib64/libkwin.so.6 #4 0x00007f87498881a6 in KWin::Workspace::removeWaylandWindow(KWin::Window*) () at /lib64/libkwin.so.6 #5 0x00007f874695ad2e in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt6Core.so.6 #6 0x00007f87498560a4 in KWin::WaylandServer::windowRemoved(KWin::Window*) () at /lib64/libkwin.so.6 #7 0x00007f87498a6873 in KWin::XdgSurfaceWindow::destroyWindow() () at /lib64/libkwin.so.6 #8 0x00007f874695ad2e in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt6Core.so.6 #9 0x00007f8749a254f1 in KWin::XdgToplevelInterface::~XdgToplevelInterface() () at /lib64/libkwin.so.6 #10 0x00007f8749a70707 in QtWaylandServer::xdg_toplevel::destroy_func(wl_resource*) () at /lib64/libkwin.so.6 #11 0x00007f8747a10788 in remove_and_destroy_resource () at /lib64/libwayland-server.so.0 #12 0x00007f8745142056 in ffi_call_unix64 () at /lib64/libffi.so.8 #13 0x00007f874513d74d in ffi_call_int.lto_priv () at /lib64/libffi.so.8 #14 0x00007f874514064e in ffi_call () at /lib64/libffi.so.8 #15 0x00007f8747a0cb8c in wl_closure_invoke.constprop () at /lib64/libwayland-server.so.0 #16 0x00007f8747a118e8 in wl_client_connection_data () at /lib64/libwayland-server.so.0 #17 0x00007f8747a0fdc2 in wl_event_loop_dispatch () at /lib64/libwayland-server.so.0 #18 0x00007f874997f599 in KWin::Display::dispatchEvents() () at /lib64/libkwin.so.6 #19 0x00007f874695ad2e in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt6Core.so.6 #20 0x00007f874696935d in QSocketNotifier::activated(QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal) () at /lib64/libQt6Core.so.6 #21 0x00007f8746969b4b in QSocketNotifier::event(QEvent*) () at /lib64/libQt6Core.so.6 #22 0x00007f8747c3d9b8 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt6Widgets.so.6 #23 0x00007f87468f3f30 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt6Core.so.6 #24 0x00007f8746abc306 in QEventDispatcherUNIXPrivate::activateSocketNotifiers() () at /lib64/libQt6Core.so.6 #25 0x00007f8746abcc8c in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6 #26 0x00007f87476cd6b2 in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Gui.so.6 #27 0x00007f8746901313 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt6Core.so.6 #28 0x00007f87468fc90e in QCoreApplication::exec() () at /lib64/libQt6Core.so.6 #29 0x00005582bec0bd97 in main () quit I used xrestop but didn't see any indication that Claws mail was displayed using Xwayland. |