https://bugs.kde.org/show_bug.cgi?id=527936
--- Comment #5 from 清旺来 <[email protected]> --- Fresh backtrace with full debug symbols attached (`bt full` of the crashing thread + `bt` of all 40 threads). Environment - NeoChat 26.08.3, Qt 6.12.0, KF 6.32, CachyOS (Arch-based), Wayland/Plasma - Package note: Qt/NeoChat are Arch's official builds, whose build-ids resolve via debuginfod.archlinux.org. CachyOS's own rebuilds (*.1 pkgrel) have no debuginfo on either debuginfod server, which is why my previous attachment was unresolved. Steps to reproduce 1. Open NeoChat 2. Switch between rooms, or click "Explore Rooms" => SIGSEGV immediately Console right before the crash: file:///usr/lib/qt6/qml/org/kde/kirigami/controls/ScrollablePage.qml:277:13: TypeError: Cannot read property 'flickable' of null qrc:/qt/qml/org/kde/desktop/ScrollBar.qml:78:13: TypeError: Cannot read property 'horizontal' of null Crash (main thread, inside the QQuickWindow incubation timer, while the engine applies initial properties to an object created via the QML incubateObject() API): #0 QV4::WeakValue::isUndefined (this=0x238) qv4persistent_p.h:165 #1 QQmlVMEResolvedList::QQmlVMEResolvedList(QQmlListProperty<QObject>*) qqmlvmemetaobject.cpp:55 #2 list_count qqmlvmemetaobject.cpp:134 #3 QQmlListProperty<QObject>::toList_impl<QList<QObject*>> qqmllist.h:106 #5 QV4::QmlListWrapper::toVariant qqmllistwrapper.cpp:193 #6 toVariant qv4engine.cpp:1600 #8 QV4::QObjectWrapper::setProperty qv4qobjectwrapper.cpp:795 #9 QV4::QObjectWrapper::setQmlProperty qv4qobjectwrapper.cpp:585 #10 QV4::QObjectWrapper::virtualPut qv4qobjectwrapper.cpp:985 #11 QQmlComponentPrivate::setInitialProperties qqmlcomponent.cpp:1890 #12 QV4::QmlIncubatorObject::setInitialState qqmlcomponent.cpp:2258 #13 QQmlComponentIncubator::setInitialState qqmlcomponent.cpp:1773 #14 QQmlIncubatorPrivate::incubate qqmlincubator.cpp:338 #15 QQmlIncubationController::incubateFor qqmlincubator.cpp:441 #17 QQuickWindowIncubationController::incubate qquickwindow.cpp:119 #18 QQuickWindowIncubationController::timerEvent qquickwindow.cpp:102 Relevant locals - #11: `properties` (the initial-property key split on '.') has size 1, `lastProperty` is "actions", `isTopLevelProperty = true` — so the single initial property being applied is `actions`. - #8 : `object = 0x5560779795d0` (the newly created object), `propType` is QVariant. - #5/#6: the value is a QV4::QmlListWrapper (`p = 0x7fb88ea305e0`), i.e. a QML list property (`list<T>`, e.g. `something.actions`) captured into the initial properties map. - #3: the QQmlListProperty<QObject> is already garbage — #2 shows `resolved = {m_metaObject = 0x1e0, m_list = 0x0, m_id = 2}` and #0 is entered with `this = 0x238`. So the QQmlListProperty embedded in the wrapper points into freed memory: the object that owned the list was destroyed between the incubateObject() call and the incubation finishing (looks like the "switch room while a page is still being incubated" race). The engine still applies the stale initial properties and dereferences the dangling list. This is consistent with the ScrollablePage / ScrollBar warnings above: a Page was torn down while it was still being created/initialised. Attached - neochat-bt-full.log : bt full (thread 1) + bt (all threads), fully symbolicated - neochat-info.txt : coredumpctl info Happy to test a patch, or to run with extra logging (e.g. QML_IMPORT_TRACE / QT_LOGGING_RULES) if that helps narrow down which component is incubated. Status: NEEDSINFO -> REPORTED -- You are receiving this mail because: You are watching all bug changes.
