Bug 480012 - crashing after searching in keyboard->shortcuts
Summary: crashing after searching in keyboard->shortcuts
Status: RESOLVED DUPLICATE of bug 480594
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keys (show other bugs)
Version: master
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-01-18 19:03 UTC by duha.bugs
Modified: 2024-02-19 17:46 UTC (History)
7 users (show)

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


Attachments
Backtrace (8.03 KB, text/plain)
2024-01-18 19:03 UTC, duha.bugs
Details
Error_before_crash (95.45 KB, text/plain)
2024-01-18 19:03 UTC, duha.bugs
Details
Video how leftovers look in the shortcuts area after quick backspacing (1.39 MB, video/mp4)
2024-01-25 05:51 UTC, Andrew Shark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description duha.bugs 2024-01-18 19:03:31 UTC
Created attachment 165019 [details]
Backtrace

SUMMARY
crashing after searching in keyboard->shortcuts

STEPS TO REPRODUCE
1. open system settings->keyboard-shortcuts
2. type search box. delete your search. search again
3. after a while it crashes

100% reproducible

Operating System: Arch Linux 
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1
Kernel Version: 6.7.0-arch3-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 2600X Six-Core Processor
Memory: 15,6 GiB of RAM
Graphics Processor: AMD Radeon RX 580 Series
Comment 1 duha.bugs 2024-01-18 19:03:59 UTC
Created attachment 165020 [details]
Error_before_crash
Comment 2 Nate Graham 2024-01-18 21:22:30 UTC
I can reproduce this.
Comment 3 duha.bugs 2024-01-24 19:12:52 UTC
Better steps to reproduce 100%:
in Systemsettings->Shortcuts:
1) If kcalc is installed:
1.1) type s in the search bar
1.2) Then delete s 
1.3) This should bring up the Kcalc shortcuts settings
1.4) Type s again -> Crash
1.5)  Some letters don't reproduce the crash (like f)

Letters that lead to a crash are letters that would bring up kcalc shortcuts settings if you if you type them and then delete them. Letters that do not crash systemssettings  are those that would not open kcalc shortcuts settings if you type and delete them.

Can reproduce also with other key combinations for other shortcuts setting pages ( but not all!) like c + c for dolphin
Comment 4 Andrew Shark 2024-01-25 05:51:06 UTC
Created attachment 165202 [details]
Video how leftovers look in the shortcuts area after quick backspacing

It also has some "leftovers" when I press backspace. See the attached video.
Comment 5 Nicolas Fella 2024-01-25 13:27:09 UTC
#0  0x00007ffff43bc1bf in doActivate<false> (sender=0x1d31ee0, signal_index=4, argv=0x0) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobject.cpp:3943
#1  0x00007ffff43b3e9f in QMetaObject::activate (sender=sender@entry=0x1d31ee0, m=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0)
    at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobject.cpp:4119
#2  0x00007ffff6cddd9a in QQmlDelegateModelItem::rowChanged (this=0x1d31ee0)
    at /home/nico/workspace/qt6/qtdeclarative/src/qmlmodels/QmlModels_autogen/include/moc_qqmldelegatemodel_p_p.cpp:212
#3  QQmlDelegateModelItem::setModelIndex (this=0x1d31ee0, idx=<optimized out>, newRow=<optimized out>, newColumn=<optimized out>, alwaysEmit=false)
    at /home/nico/workspace/qt6/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:2422
#4  0x00007ffff6cebc4d in QQmlDelegateModel::_q_itemsInserted (this=<optimized out>, index=0, count=4)
    at /home/nico/workspace/qt6/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:1574
#5  0x00007ffff6cef3a2 in QQmlDelegateModel::setRootIndex (this=0x1243c10, root=<optimized out>)
    at /home/nico/workspace/qt6/qtdeclarative/src/qmlmodels/qqmldelegatemodel.cpp:530
#6  0x00007ffff6cf114f in QQmlDelegateModel::qt_metacall (this=0x1243c10, _c=QMetaObject::WriteProperty, _id=7, _a=0x7fffffffa780)
    at /home/nico/workspace/qt6/qtdeclarative/src/qmlmodels/QmlModels_autogen/include/moc_qqmldelegatemodel_p.cpp:446
#7  0x00007ffff58d942e in QQmlPropertyData::doMetacall<(QMetaObject::Call)2> (this=<optimized out>, argv=0x7fffffffa780, idx=<optimized out>, object=0x1)
    at /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/qqmlpropertydata_p.h:360
#8  QQmlPropertyData::doMetacall<(QMetaObject::Call)2> (this=0x7fffac5b54b0, argv=0x7fffffffa780, idx=<optimized out>, object=0x1)
    at /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/qqmlpropertydata_p.h:355
#9  QQmlPropertyData::writeProperty (this=this@entry=0x7fffac5b54b0, target=target@entry=0x1243c10, value=value@entry=0x7fffffffaa30, Python Exception <class 'gdb.MemoryError'>: Cannot access memory at address 0x0

   #10 0x00007ffff59885f5 in QQmlPropertyPrivate::write
    (object=object@entry=0x1243c10, property=..., value=..., context=..., flags=..., flags@entry=...)
    at /home/nico/workspace/qt6/qtdeclarative/src/qml/qml/qqmlproperty.cpp:1535
#11 0x00007ffff582e8a0 in QV4::QObjectWrapper::setProperty (engine=engine@entry=0x84af00, object=object@entry=0x1243c10, property=0x7fffac5b54b0, value=...)
    at /home/nico/workspace/qt6/qtbase/src/corelib/global/qflags.h:73
#12 0x00007ffff582f03e in QV4::QObjectWrapper::setQmlProperty
    (engine=engine@entry=0x84af00, qmlContext=..., object=0x1243c10, name=<optimized out>, flags=flags@entry=..., value=...)
    at /home/nico/workspace/qt6/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:572
#13 0x00007ffff582f1d2 in QV4::QObjectWrapper::virtualPut (m=0x7fffb8bb9590, id=..., value=..., receiver=0x7fffb8bb9590)
    at /home/nico/workspace/qt6/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:944
#14 0x00007ffff57fcea8 in QV4::Object::put (receiver=0x7fffb8bb9590, v=..., name=<optimized out>, this=0x7fffb8bb9590)
    at /home/nico/workspace/qt6/qtbase/include/QtQml/6.7.0/QtQml/private/../../../../../../qtdeclarative/src/qml/jsruntime/qv4string_p.h:140
#15 QV4::Lookup::setterFallback (l=<optimized out>, engine=0x84af00, object=<optimized out>, value=...)
    at /home/nico/workspace/qt6/qtdeclarative/src/qml/jsruntime/qv4lookup.cpp:591
#16 0x00007fff8c096413 in ??? ()
#17 0x0000000000000000 in ??? ()
Comment 6 duha.bugs 2024-02-19 17:05:30 UTC
I can no longer reproduce this on git master (using QT 6.6.2 now).
Anybody else still has this issue? Otherwise I will close this.
Comment 7 fanzhuyifan 2024-02-19 17:37:40 UTC
Possible duplicate of https://bugs.kde.org/show_bug.cgi?id=480594
Comment 8 duha.bugs 2024-02-19 17:46:20 UTC

*** This bug has been marked as a duplicate of bug 480594 ***