[Touchpad-KCM] [Bug 408325] Touchpad KCM crashes on launch

Bastian Beischer bugzilla_noreply at kde.org
Tue Jun 18 12:59:38 BST 2019


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

--- Comment #11 from Bastian Beischer <bastian.beischer at rwth-aachen.de> ---
I believe this bug is triggered for X11 on systems which do not actually have a
touchpad. I think the problem is:

Since

https://github.com/KDE/plasma-desktop/commit/ce84d6ab4babc80707f4e4c1deb02cfe3ac5b7bb

TouchpadConfigContainer::m_plugin is null, because
TouchpadBackend::implementation() does not have m_mode properly set. setMode()
is supposed to be called in XlibBackend::findTouchpad(), but this goes through
the list of touchpads, which can be none, and calls setMode() on each such
touchpad.

So setMode() is never actually called and m_mode is (implicitly!) initialized
to WaylandLibinput (since it does not get set in TouchpadBackend constructor).
Then getMode() does not return any of the expected cases in isPlatformX11()
branch, which means m_plugin stays a nullptr and then there is a crash in
TouchpadConfigContainer::sizeHint().

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Unassigned-bugs mailing list