Bug 486026 - kwin_x11 crashed at KWin::Group::updateUserTime(unsigned int) when clicking the gray square in Overview
Summary: kwin_x11 crashed at KWin::Group::updateUserTime(unsigned int) when clicking t...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-overview (show other bugs)
Version: master
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-04-23 15:30 UTC by Fushan Wen
Modified: 2024-05-29 11:16 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fushan Wen 2024-04-23 15:30:29 UTC
SUMMARY


STEPS TO REPRODUCE
1. Open Overview
2. Click the gray square without title
3. Crash

OBSERVED RESULT
(gdb) bt
#0  0x00007ff2a58949ec in __pthread_kill_implementation () at /lib64/libc.so.6
#1  0x00007ff2a5841176 in raise () at /lib64/libc.so.6
#2  0x00007ff2a9646be3 in KCrash::defaultCrashHandler(int) () at /lib64/libKF6Crash.so.6
#3  0x00007ff2a5841240 in <signal handler called> () at /lib64/libc.so.6
#4  0x00007ff2a9264d78 in KWin::Group::updateUserTime(unsigned int) (this=0x0, time=235393409)
    at /usr/src/debug/kwin-6.0.80git.20240419T193243~48197a4f/src/group.cpp:141
#5  0x00007ff2a903fe05 in KWin::Workspace::activateWindow(KWin::Window*, bool) (force=false, window=0x55cee2a50ad0, this=0x55cee22b7db0)
    at /usr/src/debug/kwin-6.0.80git.20240419T193243~48197a4f/src/activation.cpp:349
#6  KWin::Workspace::activateWindow(KWin::Window*, bool) (this=0x55cee22b7db0, window=0x55cee2a50ad0, force=<optimized out>)
    at /usr/src/debug/kwin-6.0.80git.20240419T193243~48197a4f/src/activation.cpp:288
#7  0x00007ff2a91d2c03 in KWin::WorkspaceWrapper::qt_metacall(QMetaObject::Call, int, void**)
    (this=this@entry=0x55cee2931640, _c=_c@entry=QMetaObject::WriteProperty, _id=2, _a=_a@entry=0x7ffff0d6dba0)
    at /usr/src/debug/kwin-6.0.80git.20240419T193243~48197a4f/build/src/kwin_autogen/include/moc_workspace_wrapper.cpp:1031
#8  0x00007ff2a91d2d11 in KWin::DeclarativeScriptWorkspaceWrapper::qt_metacall(QMetaObject::Call, int, void**)
    (this=0x55cee2931640, _c=QMetaObject::WriteProperty, _id=<optimized out>, _a=0x7ffff0d6dba0)
    at /usr/src/debug/kwin-6.0.80git.20240419T193243~48197a4f/build/src/kwin_autogen/include/moc_workspace_wrapper.cpp:1305
#9  0x00007ff2a8083a10 in QQmlPropertyData::doMetacall<(QMetaObject::Call)2>(QObject*, int, void**) const
    (this=<optimized out>, argv=0x7ffff0d6dba0, idx=<optimized out>, object=<optimized out>)
    at /usr/src/debug/qtdeclarative-everywhere-src-6.7.0/src/qml/qml/qqmlpropertydata_p.h:360
#10 QQmlPropertyData::doMetacall<(QMetaObject::Call)2>(QObject*, int, void**) const
    (this=<optimized out>, argv=0x7ffff0d6dba0, idx=<optimized out>, object=<optimized out>)
    at /usr/src/debug/qtdeclarative-everywhere-src-6.7.0/src/qml/qml/qqmlpropertydata_p.h:355
#11 QQmlPropertyData::writeProperty(QObject*, void*, QFlags<QQmlPropertyData::WriteFlag>) const
    (this=<optimized out>, target=<optimized out>, value=<optimized out>, flags=...)
    at /usr/src/debug/qtdeclarative-everywhere-src-6.7.0/src/qml/qml/qqmlpropertydata_p.h:378
#12 0x00007ff2a8128bd6 in QQmlPropertyPrivate::write(QObject*, QQmlPropertyData const&, QVariant const&, QQmlRefPointer<QQmlContextData> const&, QFlags<QQmlPropertyData::WriteFlag>) (object=0x55cee2931640, property=..., value=<optimized out>, context=<optimized out>, flags=...)
--Type <RET> for more, q to quit, c to continue without paging--c
    at /usr/src/debug/qtdeclarative-everywhere-src-6.7.0/src/qml/qml/qqmlproperty.cpp:1719
#13 0x00007ff2a7fff7ef in QV4::QObjectWrapper::setProperty(QV4::ExecutionEngine*, QObject*, QQmlPropertyData const*, QV4::Value const&)
    (engine=engine@entry=0x55cee2694a80, object=object@entry=0x55cee2931640, property=0x55cee25a4c30, value=...)
    at /usr/include/qt6/QtCore/qflags.h:73
#14 0x00007ff2a7fffe9e in QV4::QObjectWrapper::setQmlProperty(QV4::ExecutionEngine*, QQmlRefPointer<QQmlContextData> const&, QObject*, QV4::String*, QFlags<QV4::QObjectWrapper::Flag>, QV4::Value const&)
    (engine=0x55cee2694a80, qmlContext=<optimized out>, object=0x55cee2931640, name=<optimized out>, flags=..., value=...)
    at /usr/src/debug/qtdeclarative-everywhere-src-6.7.0/src/qml/jsruntime/qv4qobjectwrapper.cpp:567
#15 0x00007ff2a818b7e4 in QV4::QQmlTypeWrapper::virtualPut(QV4::Managed*, QV4::PropertyKey, QV4::Value const&, QV4::Value*)
    (m=<optimized out>, id=..., value=..., receiver=<optimized out>)
    at /usr/src/debug/qtdeclarative-everywhere-src-6.7.0/src/qml/qml/qqmltypewrapper.cpp:327
#16 0x00007ff2a7fd9bf8 in QV4::Object::put(QV4::StringOrSymbol*, QV4::Value const&, QV4::Value*)
    (receiver=0x7ff2843bf588, v=..., name=<optimized out>, this=0x7ff2843bf588)
    at /usr/src/debug/qtdeclarative-everywhere-src-6.7.0/src/qml/jsruntime/qv4string_p.h:140
#17 QV4::Lookup::setterFallback(QV4::Lookup*, QV4::ExecutionEngine*, QV4::Value&, QV4::Value const&)
    (l=<optimized out>, engine=0x55cee2694a80, object=<optimized out>, value=...)
    at /usr/src/debug/qtdeclarative-everywhere-src-6.7.0/src/qml/jsruntime/qv4lookup.cpp:591
#18 0x00007ff28cb0fd16 in  ()
#19 0x00007ffff0d6e3f0 in  ()
#20 0x0000000000000000 in  ()

EXPECTED RESULT
No gray square and no crash

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: kwin 6.0.80git.20240419T230656~fba948b3-ku.41.1
KDE Frameworks Version: 
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Comment 1 Fushan Wen 2024-05-04 12:40:57 UTC

*** This bug has been marked as a duplicate of bug 478556 ***
Comment 2 Fushan Wen 2024-05-05 08:33:36 UTC
Not fixed, but unfortunately I can't find a reliable way to reproduce it.
Comment 3 Bug Janitor Service 2024-05-29 09:52:42 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5792
Comment 4 Vlad Zahorodnii 2024-05-29 11:02:47 UTC
Git commit 64ddeff3bd0b2c8d0ec4d9f51e2eba16022ca705 by Vlad Zahorodnii.
Committed on 29/05/2024 at 10:51.
Pushed by vladz into branch 'master'.

Forbid activating override redirect windows

M  +1    -1    src/activation.cpp

https://invent.kde.org/plasma/kwin/-/commit/64ddeff3bd0b2c8d0ec4d9f51e2eba16022ca705
Comment 5 Vlad Zahorodnii 2024-05-29 11:16:45 UTC
Git commit 45124b63f6e34057f422c3bd0ab1e14c3ce4b920 by Vlad Zahorodnii.
Committed on 29/05/2024 at 11:04.
Pushed by vladz into branch 'Plasma/6.1'.

Forbid activating override redirect windows


(cherry picked from commit 64ddeff3bd0b2c8d0ec4d9f51e2eba16022ca705)

M  +1    -1    src/activation.cpp

https://invent.kde.org/plasma/kwin/-/commit/45124b63f6e34057f422c3bd0ab1e14c3ce4b920