https://bugs.kde.org/show_bug.cgi?id=522233
Jakob Petsovits <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from Jakob Petsovits <[email protected]> --- > QSortFilterProxyModel: index from wrong model passed to mapToSource This line is the first error we get to see, so it's likely closer to the root cause than subsequent warnings. It gets printed by QSortFilterProxyModelPrivate::proxy_to_source(), the actual implementation of QSortFilterProxyModel::mapToSource(): https://codebrowser.dev/qt6/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp.html#544 I caught a call in gdb when it prints this. It looks like mapToSource() gets called on ProcessSortFilterModel (a subclass of QSortFilterProxyModel in plasma-systemmonitor) with an index whose model pointer refers to a ReverseColumnsProxyModel (another class in plasma-systemmonitor that indirectly derives from QSortFilterProxyModel). The stack trace looks like below - basically not very useful, except that it tells us that the call came from QV4 i.e. somewhere in executed JavaScript within a QML file. That's not terrible though, it should narrow things down to one of the few calls of mapToSource() in System Monitor's table views (ProcessTableView.qml and/or ApplicationsTableView.qml, I'm currently starting with the former). If we can figure out where this index comes from exactly and why it gets passed to the wrong proxy model, perhaps this will point us to the error. #0 QSortFilterProxyModelPrivate::proxy_to_source (this=0x5555575cc720, proxy_index=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp:546 #1 QSortFilterProxyModel::mapToSource (this=0x5555576094d0, proxyIndex=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/itemmodels/qsortfilterproxymodel.cpp:3334 #2 0x00007ffff4a5f649 in QAbstractProxyModel::qt_static_metacall (_o=_o@entry=0x5555576094d0, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=8, _a=_a@entry=0x7fffffffbde8) at /usr/src/debug/qt6-base/build/src/corelib/Core_autogen/include/moc_qabstractproxymodel.cpp:143 #3 0x00007ffff4a5f917 in QAbstractProxyModel::qt_metacall (this=0x5555576094d0, _c=<optimized out>, _id=8, _a=0x7fffffffbde8) at /usr/src/debug/qt6-base/build/src/corelib/Core_autogen/include/moc_qabstractproxymodel.cpp:207 #4 0x00007ffff4a7e12e in QSortFilterProxyModel::qt_metacall (this=0x5555576094d0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffffffbde8) at /usr/src/debug/qt6-base/build/src/corelib/Core_autogen/include/moc_qsortfilterproxymodel.cpp:264 #5 0x00007ffff7b008cd in ProcessSortFilterModel::qt_metacall (this=0x5555576094d0, _c=QMetaObject::InvokeMetaMethod, _id=84, _a=0x7fffffffbde8) at /home/kpetso/build/kde/plasma/plasma-systemmonitor/src/table/PlasmaSystemMonitorTable_autogen/include/moc_ProcessSortFilterModel.cpp:200 #6 0x00007ffff5367363 in QQmlObjectOrGadget::metacall (this=<optimized out>, type=<optimized out>, index=<optimized out>, argv=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/qml/qqmlobjectorgadget.cpp:15 #7 0x00007ffff51fc8db in QV4::CallMethod (object=..., index=84, returnType=..., argCount=argCount@entry=1, argTypes=0x7fffffffc148, engine=0x55555572b370, callArgs=0x7fffec2015d0, callType=QMetaObject::InvokeMetaMethod) at /usr/include/qt6/QtCore/qvarlengtharray.h:91 #8 0x00007ffff51fe708 in QV4::QObjectMethod::callPrecise (object=..., data=<optimized out>, engine=<optimized out>, callArgs=<optimized out>, callType=QMetaObject::InvokeMetaMethod) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:2094 #9 0x00007ffff5207dc5 in operator() (__closure=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:3123 #10 operator()<QV4::QObjectMethod::callInternal(const QV4::Value*, const QV4::Value*, int) const::<lambda()> > (__closure=<synthetic pointer>, call=<optimized out>) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:3100 #11 QV4::QObjectMethod::callInternal (this=0x7fffffffc318, thisObject=<optimized out>, argv=0x7fffec201560, argc=1) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:3123 #12 0x00007ffff52270c6 in QV4::FunctionObject::call (this=0x7fffffffc318, thisObject=0x7fffec201570, argv=0x7fffec201560, argc=1) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4functionobject_p.h:188 #13 QV4::Runtime::CallPropertyLookup::call (engine=0x55555572b370, base=..., index=<optimized out>, argv=0x7fffec201560, argc=1) at /usr/src/debug/qt6-declarative/qtdeclarative/src/qml/jsruntime/qv4runtime.cpp:1563 #14 0x00007fffc800052e in ??? () #15 0x00007fffec201528 in ??? () #16 0x0000000000000000 in ??? () -- You are receiving this mail because: You are watching all bug changes.
