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

--- Comment #31 from Duncan <1i5t5.dun...@cox.net> ---
OK, playing with kdebugsettings a bit more, again with everything else
(including the kwin and wayland settings I tried on debug above) off, I tried
setting Plasma Core lib and Plasma Quick lib (kf.plasma.core and
kf.plasma.quick) to full debug.

With a plasmashell replace I got this taskmanager-related error several times
in the same second (otherwise nothing else of interest, tho lots of irrelevant
binding-loop complaint noise, etc):

file:///share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/ContextMenu.qml:321:
TypeError: Cannot call method 'indexOf' of undefined

Context lines (with line numbers) from that file:

...
019 PlasmaComponents.ContextMenu {
020     id: menu
...
283     PlasmaComponents.MenuItem {
284         id: virtualDesktopsMenuItem
...
304         PlasmaComponents.ContextMenu {
305             id: virtualDesktopsMenu
...
309             function refresh() {
310                 clearMenuItems();
311
312                 if (virtualDesktopInfo.numberOfDesktops <= 1) {
313                     return;
314                 }
315
316                 var menuItem = menu.newMenuItem(virtualDesktopsMenu);
317                 menuItem.text = i18n("Move &To Current Desktop");
318                 menuItem.enabled = Qt.binding(function() {
319                     return menu.visualParent &&
menu.get(atm.VirtualDesktops).indexOf(virtualDesktopInfo.currentDesktop) ===
-1;
320                 });
321                 menuItem.clicked.connect(function() {
322                     tasksModel.requestVirtualDesktops(menu.modelIndex,
[virtualDesktopInfo.currentDesktop]);
323                 });
324
325                 menuItem = menu.newMenuItem(virtualDesktopsMenu);
326                 menuItem.text = i18n("&All Desktops");


Possible clue?

Note that I have three virtual desktops setup (running on dual monitors if it
matters, with two activities).  Maybe the bug is number-of-desktops sensitive
and in some cases on wayland the number of desktops is >1 to get past the
return on 312/313, but virtualDesktopInfo.currentDesktop is junk (plasma not
getting that info on wayland?)?  Thus the type-error.

If that type-error then aborts the entire tasklist gathering (instead of
ignoring it and continuing with what it can) it would explain why I'm not
getting any tasks shown.

So the next test is whether reducing the number of virtual desktops to one gets
me anywhere, as I think it should then just return on lines 312/313, which
should then simply skip the virtual-desktops functionality in the menu, thus
skipping the buggy code.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to