Summary: | Crash in KColorSchemeManager::indexForScheme | ||
---|---|---|---|
Product: | [Applications] kontact | Reporter: | Nicolas Fella <nicolas.fella> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | lbeltrame |
Priority: | NOR | Keywords: | drkonqi |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/kcolorscheme/-/commit/8ee0e727abf9c4ca96fb80446eb877c2d13080e6 | Version Fixed In: | |
Sentry Crash Report: | https://crash-reports.kde.org/organizations/kde/issues/62834/events/5f04602d43834347be0b080251ccbef3/ |
Description
Nicolas Fella
2024-08-30 13:46:03 UTC
Can reproduce. I had a localized color scheme in kontactrc ("Predefinito") and that triggered the crash. A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kcolorscheme/-/merge_requests/20 Git commit 8ee0e727abf9c4ca96fb80446eb877c2d13080e6 by Nicolas Fella. Committed on 30/08/2024 at 14:15. Pushed by cullmann into branch 'master'. [kcolorschememanager] Fix crash The ctor has a complex sequence where we create KColorSchemeManagerPrivate, access the parent KColorSchemeManager, which again accesses KColorSchemeManagerPrivate, causing a crash Simplify that by moving the code to an init function that runs after the KColorSchemeManagerPrivate is fully constructed M +32 -26 src/kcolorschememanager.cpp M +2 -0 src/kcolorschememanager.h M +1 -1 src/kcolorschememanager_p.h https://invent.kde.org/frameworks/kcolorscheme/-/commit/8ee0e727abf9c4ca96fb80446eb877c2d13080e6 |