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

Nate Graham <n...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |NEEDSINFO
          Component|general                     |Widget Explorer
                 CC|                            |florian-edelm...@online.de,
                   |                            |n...@kde.org
         Resolution|---                         |WAITINGFORINFO
            Summary|Plasma crashes when opening |Plasma crashes in
                   |plasma widgets              |PlasmaAppletItem::matches()
                   |                            |when opening plasma widgets

--- Comment #1 from Nate Graham <n...@kde.org> ---
#7  qt_starts_with (cs=Qt::CaseInsensitive, needle=..., haystack=...) at
text/qstring.cpp:11974
#8  QStringRef::startsWith (this=this@entry=0xa292918, str=...,
cs=cs@entry=Qt::CaseInsensitive) at text/qstring.cpp:11748
#9  0x00007fea12ad5c62 in PlasmaAppletItem::matches (this=0x98fcc60,
pattern=...) at
/usr/src/debug/plasma5-workspace-5.24.3-bp154.1.1.x86_64/components/shellprivate/widgetexplorer/plasmaappletitemmodel.cpp:137

Code is:

    // Add English name and keywords so users in other languages won't have to
switch IME when searching.
    if (!QLocale().name().startsWith(QLatin1String("en_"))) {
        const QString
name(rawData[QStringLiteral("KPlugin")][QStringLiteral("Name")].toString());
        keywords << &name << m_info.value(QStringLiteral("Keywords"),
QString()).splitRef(QLatin1Char(';'), Qt::SkipEmptyParts);
    }

    for (const auto &keyword : keywords) {
        if (keyword.startsWith(pattern, Qt::CaseInsensitive)) {
            return true;
        }
    }

Seems like maybe keywords is empty, as right now we are assuming it's not.

1. Does literally any text you type into the search field cause it to crash, or
only some text?
2. Are you using your system in a language that's not English? If so, does the
crashing stop if you switch to English?

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

Reply via email to