https://bugs.kde.org/show_bug.cgi?id=488551

--- Comment #13 from alanas...@mail.ru ---
Created attachment 181673
  --> https://bugs.kde.org/attachment.cgi?id=181673&action=edit
gdb_with_log.txt (usage: `gdb --command=gdb_with_log.txt`)

I figured out the reason why haruna crashes on fast double right click

note: QQmlElement_42, QQmlElement_41, QQuickMenu_31 are made up names by python
code inside gdb_with_log.txt

QQmlObjectCreator::clear (
https://github.com/qt/qtdeclarative/blob/v6.9.0/src/qml/qml/qqmlobjectcreator.cpp#L1653
) destroys:

1. QQmlPrivate::QQmlElement<QQuickListView> QQmlElement_42
2. QQmlPrivate::QQmlElement<QQuickListView> QQmlElement_41
3. QQuickMenu QQuickMenu_31

but QQuickMenu destructor in step 3 depends on QQmlElement_42 existing
(d->privateItem is QQmlElement_42,
https://github.com/qt/qtdeclarative/blob/v6.9.0/src/quicktemplates/qquickmenu.cpp#L1403
)

haruna doesn't crash on slow double right click (wait between clicks) because
different code does (actually more like schedules) the destruction correctly (
https://github.com/qt/qtdeclarative/blob/v6.9.0/src/quick/items/qquickloader.cpp#L341
)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to