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

--- Comment #40 from Méven Car <[email protected]> ---
(In reply to Nate Graham from comment #39)
> JFYI sentry says this is currently the #1 crash in Plasma.

I don't have many ideas based on the traces.
It says it fails at `QByteArray buffer(initialBufferSize, Qt::Uninitialized);`
that's allocating 128kb at most.
https://invent.kde.org/frameworks/kconfig/-/blob/master/src/core/kconfigini.cpp#L85

Can 128 kb be too much to allocate ?
How often `KIconTheme::current` is called ?
Is it not cached ?

In https://bugs.kde.org/show_bug.cgi?id=514961
https://bugsfiles.kde.org/attachment.cgi?id=188803
The allocation failure occurs in KEntryMap::getEntry.
https://invent.kde.org/frameworks/kconfig/-/blob/master/src/core/kconfigdata.cpp#L230
It seems to point at the size of some entry that is too big to be allocated.
Ideally we should use QStringView as return value there but still.

Are we calling those functions many times causing memory exhaustion ?

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

Reply via email to