Bug 387901 - Task manager loses windows with multi monitor
Summary: Task manager loses windows with multi monitor
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.18.5
Platform: Other Linux
: NOR grave
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-14 14:45 UTC by Vincenzo Di Massa
Modified: 2023-02-17 16:03 UTC (History)
10 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.27


Attachments
kscreen config (2.49 KB, text/plain)
2018-08-11 17:31 UTC, Nuno Costa
Details
Plasmashelrc (1.43 KB, text/plain)
2018-08-11 17:32 UTC, Nuno Costa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincenzo Di Massa 2017-12-14 14:45:32 UTC
Summary
=======
The task manager loses windows in at least two circumstances:
1) When connecting disconnect an external HDMI monitor
2) When minimizing a krdc maximized window.

Preconditions
=============
A panel is configured to appear on each screen.
A taskbar is configured to appear on each panel.
Eack taskbar configured to display all windows form its screen, all activities, its desktop.

How to reproduce
================
Plug in/out an external monitor at least once OR minimize a KRDC window.

What is expectd
===============
The windows of all the running apps are displayed on the taskbar.

What happens
============
No task appears on the taskbar when I plug/unplug the external display OR the minimized KRDC window is not listed on the taskbar.
The missing tasks are not present even on other desktops, screens, activities...

Workaround
==========
kquitapp plasmashell && sleep 3 ; kstart plasmashell

System and version information
==============================
Package: plasma-workspace
Version: 4:5.8.8-0ubuntu1~ubuntu16.04~ppa2

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:        16.04
Codename:       xenial
Comment 1 Nate Graham 2017-12-14 15:10:26 UTC
If there's any chance you can upgrade to a more recent version of Plasma, please do so and try to reproduce. There have been a lot of multi-monitor and Task Manager improvements since 5.8.6.
Comment 2 Luiz Angelo De Luca 2018-08-06 19:40:05 UTC
Hello,

I'm having something like this problem. I use task manager configured to show only windows in the current monitor. I'm using 5.13.3 (openSUSE Tumbleweed)

My second screen sometimes does not recovery nicely from sleep/hibernate or from power save mode. The screen becomes either off (but KDE still detects it as on) or shows garbage. My workaround is to turn it off and on again:

 xrandr --output DisplayPort-0 --off
 xrandr --output DisplayPort-0 --auto
 xrandr --output DisplayPort-0 --rotate left --left-of DisplayPort-1
 xrandr --output DisplayPort-1 --primary --pos 900x131

When I do that, plasma task manager losses the association of windows-screen on the primary screen, showing no window at all. The secondary screen does work as expected.

If I create a new task manager, I can see the correct list of windows.

If I uncheck the "show only windows from current monitor", I can see all windows, including from the primary screen. However, if I mark it again, I return to the problematic state.

If I restart plasma, everything is back to normal.

Is there any info to get while the problem is happening?
Comment 3 Nuno Costa 2018-08-11 17:30:52 UTC
I believe issues bug 387901 and bug 391033 are reporting similar simptoms that could be cause by the same issue.

I'm seeing this multimonitor bugs since at least August, 2017(I know, I should have filed a bug earlier but life... :) ), on a Arch install on my Dell E6400.
I was hopping that Plasma 5.13 would resolve this but it only seems to attenuate a little bit.

At the moment, my main laptop (Dell E6230 with dock) is on Fedora 28 with Plasma 5.13 and I'm still seeing similar issues.

The "missing" applications seems to be more localized when I close the lid of the laptop while the external monitor is connected.

If I undock the laptop(with lid open to keep the laptop to suspend), all applications are visible in task manager.
Docking again, all aplications on external monitor, are now visible in task manager.
If I want to have the lid closed while docked and applications showing correctly, I use the workaround "kquitapp5 plasmashell && plasmashell". This make the applications to reappear in the task manager.

It sometime happens when I've turn off monitor while lid is closed(laptop suspends) and I resume from suspend undocked, but I cannot reproduce everytime.

I noticed that a file with suffix _lidOpened is created in ~/.local/share/kscreen, when I close the lid(while docked and external monitor connected), and the file is removed when lid is reopened, while in the dock.
The _lidOpened file is not deleted when I've turn off monitor while lid is closed(laptop suspends) and I resume from suspend undocked.

Not sure if related, but I see 5 different panel ids configured in cat ~/.config/plasmashellrc, when I only use 2 panels.
When I remove the panels, they are not removed from the config file.
If I move a panel to another position on the same or other monitor, the previous configuration is not removed. Sometimes, the configuration is not correct, for example, showing a horizontal panel as vertical and incorrect resolution.
Also, if you manually remove a panel from the config, it will not reappear on the config after laptop restart or plasmashell restart.
I deleted ~/.config/plasmashellrc, restarted plasmashell, created new panels and moved the panels to its final position to have a cleaner config file but task manager still have the same behaviour.

My normal setup is:
Laptop screen only: Default Panel with only filter "show only windows from current screen" enabled.
Laptop and External monitor: 
  * Laptop on the left side: Left Vertical Empty Panel with Icons Only and with only filter "show only windows from current screen" enabled.
  * External screen on the Right side: Bottom Horizontal Default Panel with only filter "show only windows from current screen" enabled.

External monitor is connected to the dock using direct (no adaptador of any sort) DisplayPort-DisplayPort cable. I will try to change my setup to use a DVI-DVI and see if there is any changes.

Attached kscreen and plasmashellrc config files.

I know this comment is long and apologies if its not very clear.

If someone has more information on how to troubleshoot this further let me know.
Comment 4 Nuno Costa 2018-08-11 17:31:44 UTC
Created attachment 114405 [details]
kscreen config
Comment 5 Nuno Costa 2018-08-11 17:32:12 UTC
Created attachment 114406 [details]
Plasmashelrc
Comment 6 Siddhartha 2019-07-17 20:40:37 UTC
I am seeing the same issue on git master with the icon-only task manager configured to only show applications in current screen.

Disconnecting my external screens does not reset the task manager state and I have to restart plasmashell as a workaround.
Comment 7 Sebastian Turzański 2019-09-13 10:00:28 UTC
I confirmin OpenSuse 15.1 plasma KDE 5.55.0

so when switching from dual monitor to signle monitor the task manager does not show windows
Comment 8 Nate Graham 2020-07-12 04:12:02 UTC

*** This bug has been marked as a duplicate of bug 394532 ***
Comment 9 Vincenzo Di Massa 2021-05-11 08:02:56 UTC
This bug and bug 387901 are totally unrelated. Moreover I'm still experiencing the bug very often.

When I disconnect the external monitor the plasma task manager does not show running tasks on any monitor, like described in the original report.
Comment 10 Vincenzo Di Massa 2021-05-11 09:27:12 UTC
In comment 9 I intended that this bug and bug 394532 are unrelated.
Comment 11 Nate Graham 2022-11-05 03:20:00 UTC
What Plasma version are you still very often experiencing the issue in?
Comment 12 Sebastian Turzański 2022-11-05 09:09:53 UTC
In my case I'm not suffering from this anymore - Plasma 5.26.2 on Opensuse Tumbleweed
Comment 13 Nate Graham 2022-11-05 14:21:03 UTC
Cool, thanks!
Comment 14 Vincenzo Di Massa 2022-11-06 14:32:07 UTC
I'm still suffering from the bug since I reported it.

Plasma 5.18 is the latest available on my machine
Comment 15 Nate Graham 2022-11-06 15:54:17 UTC
I'm afraid Plasma 5.18 is no longer a supported LTS version. Please upgrade and try again at least with Plasma 5.24, ideally 5.25 or 5.26.
Comment 16 Bug Janitor Service 2022-11-21 05:14:56 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 17 Bug Janitor Service 2022-12-06 05:21:42 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 18 Vincenzo Di Massa 2023-02-16 10:04:50 UTC
I still have the problem with current plasmashell 5.24.7.

Still now, I lose all taskbar items from time to time when using a multi-monitor setup. Restarting plasmashell solves the issue temporarily.
Comment 19 Nate Graham 2023-02-17 16:03:18 UTC
Probably fixed with Plasma 5.27 which included major multi-monitor fixes. If you upgrade to 5.27 and find that it's not fixed yet, please feel free to re-open this bug report. Thanks!