Bug 504160

Summary: Two-finger touchpad scrolling crashes Kirigami-based applications
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Adam <adampoke111>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: notmart
Priority: NOR    
Version First Reported In: 6.14.0   
Target Milestone: Not decided   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Stacktrace of the crash. Relevant calls are between call 10-13.

Description Adam 2025-05-13 16:06:17 UTC
Created attachment 181245 [details]
Stacktrace of the crash. Relevant calls are between call 10-13.

SUMMARY

When using two-finger scrolling gestures on my laptop touchpad (ThinkPad P14s Gen 2 AMD) in KDE System Settings, for example, the program crashes at `/usr/src/debug/kirigami/kirigami-6.14.0/src/wheelhandler.cpp:528` at the call to the C++ standard library's std::clamp. I've mentioned KDE System Settings here but this also occurs in various other KDE applications which use Kirigami. The touchpad scroll gestures do not crash applications which handle scrolling but do not use Kirigami.

STEPS TO REPRODUCE
1. Open a KDE application which utilises the Kirigami framework
2. Attempt two-finger touchpad scrolling
3. Software crashes and a Dr Konqi report opens

OBSERVED RESULT

The software crashes.

EXPECTED RESULT

The software does not crash & handles the scroll event correctly.

SOFTWARE/OS VERSIONS

Operating System: Arch Linux
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.12.28-1-lts (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 5850U with Radeon Graphics
Memory: 27.2 GiB of RAM
Graphics Processor: AMD Radeon Graphics

ADDITIONAL INFORMATION

n/a
Comment 1 Antonio Rojas 2025-05-13 16:09:18 UTC

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