https://bugs.kde.org/show_bug.cgi?id=517247
Bug ID: 517247
Summary: ConfigurationView freezes for ~10 seconds every time
settings is opened when font ComboBox model is large
Classification: Frameworks and Libraries
Product: kirigami-addons
Version First 1.12.0
Reported In:
Platform: Ubuntu
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
SUMMARY
I opened settings in Marknote (built from source on Ubuntu 24.04), the settings
dialog freezes for ~10 seconds every single time it opens, not just the first
time.
STEPS TO REPRODUCE
1. Open Marknote
2. Click on "Configure Marknote" or press "Ctrl+Shift+,"
3. Let the settings page load
OBSERVED RESULT
It took around ~10 seconds to load the settings page, and till then the main
app also froze for ~10 seconds.
EXPECTED RESULT
It should open quickly and not freeze the whole app.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 24.04
KDE Frameworks Version: 6.8+
Qt Version: 6.4.2
ADDITIONAL INFORMATION
The root cause seems to be that MarkNoteGeneralPage.qml contains a font family
ComboBox with model: appFontList which contains 3438 font entries on my system.
The settings page is recreated every time via a Qt.createComponent lambda in
ConfigurationModule, so all 3438 fonts get re-rendered on every open. Caching
the page after first creation in ConfigurationView/ConfigurationModule would
likely fix this.
--
You are receiving this mail because:
You are watching all bug changes.