Summary: | Plasma crashed when scrolling on wallpaper | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | braggrj |
Component: | Desktop Containment | Assignee: | Marco Martin <notmart> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | kde, nate, plasma-bugs |
Priority: | NOR | Keywords: | drkonqi |
Version: | 5.19.5 | ||
Target Milestone: | 1.0 | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/commit/5cb38daedbfa5ef26a47d82d197c96230a004b0f | Version Fixed In: | |
Sentry Crash Report: |
Description
braggrj
2020-09-29 08:25:36 UTC
#6 0x00007fd010115ff7 in TaskManager::VirtualDesktopInfo::XWindowPrivate::requestActivate (this=<optimized out>, desktop=...) at /usr/src/debug/plasma5-workspace-5.19.5-3.1.x86_64/libtaskmanager/virtualdesktopinfo.cpp:172 #7 0x00007fd01016b7f6 in SwitchDesktop::performNextAction (this=0x56173c914ae0) at /usr/include/qt5/QtCore/qlist.h:570 #8 0x00007fd0105e0ec6 in ContainmentInterface::wheelEvent (this=0x56173c662a80, event=0x7ffe86a0b3f0) at /usr/src/debug/plasma-framework-5.74.0-1.1.x86_64 Which tool bar? Were you rolling your mouse wheel over the pager or the desktop? Opening the tool/task bar at bottom of the screen. Using Yast to install missing libraries. Some applications would not open from the menus, using konsole showed libraries missing. Scrolling mouse wheel on screen background also crashes. Virtual desktop widget is not showing on the taskbar. Same issue happens if I use NoMachine to have desktop shown on remote machine. PC has NVidia GT1030 card and using NVidia drivers - work fine on 15.1 - dual boot machine. Thanks for the info. >Virtual desktop widget is not showing on the taskbar.
That says alot. We think has no virtual desktops
```
void SwitchDesktop::performNextAction() calls
m_virtualDesktopInfo->requestActivate(desktopIds.at(nextDesktopIndex));
```
is run but desktopIds will be empty, so this array access is out of bounds.
I'll add a guard. It'll fix the crash, but that doesn't explain the broken setup.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/306 Git commit 2441c82a2a92535ccc0a9643715427eb362c98e8 by David Edmundson. Committed on 30/09/2020 at 15:18. Pushed by davidedmundson into branch 'master'. [containmentactions] Guard against having no virtual desktops It can apparently happen that virtual desktops is empty at a given point in time. Potentially due to other bugs on the system. Calls to desktopIds.at(N) will fail. M +7 -0 containmentactions/switchdesktop/desktop.cpp https://invent.kde.org/plasma/plasma-workspace/commit/2441c82a2a92535ccc0a9643715427eb362c98e8 Git commit 5cb38daedbfa5ef26a47d82d197c96230a004b0f by Nate Graham, on behalf of David Edmundson. Committed on 30/09/2020 at 15:23. Pushed by ngraham into branch 'Plasma/5.20'. [containmentactions] Guard against having no virtual desktops It can apparently happen that virtual desktops is empty at a given point in time. Potentially due to other bugs on the system. Calls to desktopIds.at(N) will fail. (cherry picked from commit 2441c82a2a92535ccc0a9643715427eb362c98e8) M +7 -0 containmentactions/switchdesktop/desktop.cpp https://invent.kde.org/plasma/plasma-workspace/commit/5cb38daedbfa5ef26a47d82d197c96230a004b0f |