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

--- Comment #1 from Bharadwaj Raju <bharadwaj.raju...@protonmail.com> ---
Interestingly the base is 0x0 in lookupScopeObjectProperty, is that normal?

Anyway, from some poking in GDB it appears that the file it happens in is
"kcm/kcm_powerdevilprofilesconfig/ComboBoxWithIcon.qml", line 28, which is:

const modelIndex = model.index(currentIndex, 0);

I guess the model is being freed while the page gets unloaded, and sometimes
that results in a call to freed memory?

---

(gdb) frame 11
#11 QV4::QQmlContextWrapper::lookupScopeObjectProperty (l=0x1044610,
engine=0x87e180, base=0x0)
    at
/usr/src/debug/qt6-qtdeclarative-6.6.0-1.fc39.x86_64/src/qml/jsruntime/qv4qmlcontext.cpp:637
637         return callWithScopeObject(engine, base, [l, engine, base](const
Value &obj) {                                                                   
(gdb) print engine
$3 = (QV4::ExecutionEngine *) 0x87e180

(gdb) print engine->stackTrace(-1)
$4 = {<QListSpecialMethods<QV4::StackFrame>> =
{<QListSpecialMethodsBase<QV4::StackFrame>> = {<No data fields>}, <No data
fields>}, d = {d = 0x1a5c620, 
    ptr = 0x1a5c630, size = 1}}

(gdb) print ((QV4::StackFrame *)(0x1a5c630))->source
$5 = {d = {d = 0x0, ptr = 0x7fffa4032c34
u"qrc:/kcm/kcm_powerdevilprofilesconfig/ComboBoxWithIcon.qml", size = 58},
static _empty = 0 u'\000'}

(gdb) print ((QV4::StackFrame *)(0x1a5c630))->function
$6 = {d = {d = 0x0, ptr = 0x0, size = 0}, static _empty = 0 u'\000'}

(gdb) print ((QV4::StackFrame *)(0x1a5c630))->line
$7 = 28

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

Reply via email to