Bug 504190

Summary: System Settings and other apps crash when scrolling the menu due to std::clamp assertion failure
Product: [Applications] systemsettings Reporter: Ahmed Metwally <ahmetwallyan>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version First Reported In: 6.3.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: kde_system-setting_crash_logs

Description Ahmed Metwally 2025-05-14 03:38:51 UTC
Created attachment 181266 [details]
kde_system-setting_crash_logs

SUMMARY
On CachyOS (KDE Plasma), opening System Settings (systemsettings) and scrolling through the settings menu causes the application to crash. The crash appears to be triggered by an assertion failure in std::clamp with an invalid range. This seems to be related to Kirigami or Qt6 components.

STEPS TO REPRODUCE
1. Launch systemsettings from the application menu or terminal.
2. Scroll through the settings menu (e.g., sidebar or category view).
3. Application crashes during or immediately after scrolling.

OBSERVED RESULT
 Application crashes when scrolling the settings menu.

EXPECTED RESULT
 System Settings should remain stable and fully responsive when scrolling through menu sections.

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: CachyOS latest release

KDE Plasma Version: 6.3.5

KDE Frameworks Version: 6.14.0

Qt Version: 6.9.0

ADDITIONAL INFORMATION
Crash output from terminal:
systemsettings: /build/gcc/src/gcc/libstdc++-v3/include/bits/stl_algobase.h:200: 
constexpr const _Tp& std::clamp(const _Tp&, const _Tp&, const _Tp&) [with _Tp = float]: 
Assertion ‘!(__hi < __lo)’ failed.
Aborted (core dumped)
Comment 1 Antonio Rojas 2025-05-14 06:05:46 UTC

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