Bug 357628 - Emptying trash, from trash icon on desktop, causes Task Manager to disappear from all but 1 Desktop.
Summary: Emptying trash, from trash icon on desktop, causes Task Manager to disappear ...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager (show other bugs)
Version: 5.5.3
Platform: Kubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-06 20:07 UTC by ryan_swan
Modified: 2018-03-21 00:12 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
xprop before and after (122.24 KB, text/plain)
2016-01-06 20:59 UTC, ryan_swan
Details
xprop run with xwininfo (112.24 KB, text/plain)
2016-01-07 01:44 UTC, ryan_swan
Details
xwininfo run with xprop (1.42 KB, text/plain)
2016-01-07 01:44 UTC, ryan_swan
Details
VD5 before (67.18 KB, image/jpeg)
2016-01-07 01:47 UTC, ryan_swan
Details
vd5 after (59.43 KB, image/jpeg)
2016-01-07 01:47 UTC, ryan_swan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ryan_swan 2016-01-06 20:07:56 UTC
I run 6 desktops in my fully updated(01-06-16) Kubuntu 15.10 system, dual-monitor system. I upgraded from 14.10(which was out of support) to 15.04 right to 15.10.

When I empty the trash on say Desktop 2, I lose my bottom Task Manager bar on all desktops except for Desktop 2.

This has to be a bug and is super annoying. The only way to fix, beyond rebooting is to re-run

plasmashell

from a konsole window

I also try to quit plasmashell using this command

kquitapp5 plasmashell && plasmashell

Reproducible: Always

Steps to Reproduce:
1. Setup 6 Desktops in Latest Kubuntu 15.10
2. Add TRASHCAN widget to desktop
3. Empty trash

Actual Results:  
Task Manager disappears from all Desktops except for the one I emptied the trash from.

Expected Results:  
To have Task Manager visible on all desktops.
Comment 1 Eike Hein 2016-01-06 20:12:50 UTC
It seems that for some bizarre reason the panel window loses its on-all-desktops bit for you - I can't reproduce this however.
Comment 2 ryan_swan 2016-01-06 20:23:49 UTC
Is there anyway I can log something from my machine for you to see/read?

Like, if i run plasmashell from a Konsole prompt and save the output?
Comment 3 ryan_swan 2016-01-06 20:24:10 UTC
(In reply to Eike Hein from comment #1)
> It seems that for some bizarre reason the panel window loses its
> on-all-desktops bit for you - I can't reproduce this however.

Is there anyway I can log something from my machine for you to see/read?

Like, if i run plasmashell from a Konsole prompt and save the output?
Comment 4 Eike Hein 2016-01-06 20:29:25 UTC
After it's broken, could you use xpop and xwininfo on the panel and add the outputs here?
Comment 5 ryan_swan 2016-01-06 20:47:54 UTC
(In reply to Eike Hein from comment #4)
> After it's broken, could you use xpop and xwininfo on the panel and add the
> outputs here?

I don't know what xpop is, and can't find it in Google, is there an apt-get package to install for it?  

This is the xwininfo of the Task Manager before and after.   Did you want me xwininfo something else?

ryan@work:~$ xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x1c00011 "Desktop — Plasma"

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1600
  Height: 1200
  Depth: 32
  Visual: 0xaa
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x1c00010 (not installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -1600+0  -1600-0  +0-0
  -geometry 1600x1200+0+0

ryan@work:~$ xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x25b (the root window) (has no name)

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 3200
  Height: 1200
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -0+0  -0-0  +0-0
  -geometry 3200x1200+0+0

ryan@work:~$
Comment 6 ryan_swan 2016-01-06 20:49:00 UTC
As soon as I left-click TRASH and click on EMPTY the Task Manager crashes, I don't actually have to empty the trash.

I did get this from plasmashell right after I clicked EMPTY

org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  261 "Properties"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  262 "Volume"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  268 "CardIndex"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  269 "Ports"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  270 "ActivePortIndex"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  261 "Properties"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  262 "Volume"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  268 "CardIndex"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  269 "Ports"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  270 "ActivePortIndex"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  261 "Properties"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  262 "Volume"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  268 "CardIndex"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  269 "Ports"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  270 "ActivePortIndex"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  261 "Properties"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  262 "Volume"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  268 "CardIndex"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  269 "Ports"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  270 "ActivePortIndex"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  261 "Properties"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  262 "Volume"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  268 "CardIndex"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  269 "Ports"
org.kde.plasma.pulseaudio: returning roles QHash((263, "Muted")(262, "Volume")(257, "Index")(259, "ObjectName")(258, "PulseObject")(269, "Ports")(268, "CardIndex")(270, "ActivePortIndex")(265, "VolumeWritable")(264, "HasVolume")(267, "Description")(266, "Name")(261, "Properties")(260, "Index"))
org.kde.plasma.pulseaudio: PROPERTY CHANGED ( 0 ) ::  270 "ActivePortIndex"
Comment 7 Eike Hein 2016-01-06 20:50:20 UTC
Sorry, *xprop

You didn't mention a crash before. Do you have a backtrace from the crash dialog?
Comment 8 ryan_swan 2016-01-06 20:56:39 UTC
(In reply to Eike Hein from comment #7)
> Sorry, *xprop
> 
> You didn't mention a crash before. Do you have a backtrace from the crash
> dialog?

I'm sorry, "crash" was intended to meant left other desktops, it doesn't crash in the literal sense, sorry for the confusion.  Getting xprop data now.
Comment 9 ryan_swan 2016-01-06 20:59:19 UTC
Created attachment 96491 [details]
xprop before and after

I marked the sections

***BEFORE***

***AFTER***

for easier reading.
Comment 10 Thomas Lübking 2016-01-07 00:03:23 UTC
prop and info don't match.

both xprop outputs indicate a 40px high panel while the first info is on your left desktop, while the second is on the root window, ie. if you clicked somewhat the same spot, the left side desktop window closed.

So maybe let's clarify terms here.
Virtual desktops have no relations to screens, but refer to a group of windows visible at the same time. You've eg. VD #2 on both screens at the same time.

If only the desktop/panel on one screen disappears, that does not mean it disappeared on some virtual desktop (what's also pretty unlikely - bug #341143)

Also the props imply that the *panel* is still there, so what's actually gone - the entire desktop/panel or the taskbar plasmoid?
In case of the latter, I'd check the taskbar config and whether this is related to some "show only windows on current desktop" setting.
Comment 11 ryan_swan 2016-01-07 01:08:01 UTC
(In reply to Thomas Lübking from comment #10)
> prop and info don't match.

i ran them at different times, i can run them together and repost soon.

> both xprop outputs indicate a 40px high panel while the first info is on
> your left desktop, while the second is on the root window, ie. if you
> clicked somewhat the same spot, the left side desktop window closed.

i clicked the Task Manager bar both times, I can't get the exact pixel, but I can try to get really close on the next try.

> So maybe let's clarify terms here.
> Virtual desktops have no relations to screens, but refer to a group of
> windows visible at the same time. You've eg. VD #2 on both screens at the
> same time.

Yes.

> If only the desktop/panel on one screen disappears, that does not mean it
> disappeared on some virtual desktop (what's also pretty unlikely - bug
> #341143)

I don't understand.  I have two screens with 6 VDs.  If I go to empty the trash on VD2, the Task Manager only exists on VD2 now and no other VD.

> Also the props imply that the *panel* is still there, so what's actually
> gone - the entire desktop/panel or the taskbar plasmoid?

It looks like the lone Trash Widget is gone as well as the Task Manager Bar.

> In case of the latter, I'd check the taskbar config and whether this is
> related to some "show only windows on current desktop" setting.

I have "Show Only Windows on Current Desktop" checked, which I have since KDE3.
Comment 12 Eike Hein 2016-01-07 01:19:37 UTC
What Thomas means is the whole bar disappearing (which is what I understood from you) vs. just window display on the bar disappearing.
Comment 13 Thomas Lübking 2016-01-07 01:35:35 UTC
Please illustrate the problem with screenshots. (before/after)
The data we got so far is actually contradicting and we first need to understand what the problem actually is.
Comment 14 ryan_swan 2016-01-07 01:44:07 UTC
Created attachment 96494 [details]
xprop run with xwininfo

xprop before and after
Comment 15 ryan_swan 2016-01-07 01:44:27 UTC
Created attachment 96495 [details]
xwininfo run with xprop

xwininfo run with xprop
Comment 16 ryan_swan 2016-01-07 01:47:24 UTC
Created attachment 96496 [details]
VD5 before
Comment 17 ryan_swan 2016-01-07 01:47:48 UTC
Created attachment 96497 [details]
vd5 after
Comment 18 Thomas Lübking 2016-01-07 10:22:12 UTC
The screenshots look like panel AND desktop are gone on the left screen, right screen looks steady (what's hard to say, because it's just a black empty desktop...) - that could also explain the xwininfo pointing the root window.
TIFKAC on the right screen inidcates that the plasmashell process has not quit (segfaulted) at this stage.

The xprops support the scenario with the cause being the _NET_WM_DESKTOP property moving from 4294967295 (-1 - "on all desktops") to 5 (ie. the 6th VD in human counting)

The trigger seems to be the "popup" for the trashcan, but
> As soon as I left-click TRASH
This just opens the trash (stunningly in konqueror ;-) - and the usual rmb context menu doesn't nearly trigger such.

=> What do you see when you
> As soon as I left-click TRASH

The bug is obviously not in the taskmanager, you just used it as pars pro toto.

-----
As workaround, run "kcmshell5 kwinrules", create a new rule, match desktop and dock for "plasmashell" class and force them to be on all desktops.
Comment 19 ryan_swan 2016-01-07 13:03:51 UTC
(In reply to Thomas Lübking from comment #18)
> The screenshots look like panel AND desktop are gone on the left screen,
> right screen looks steady (what's hard to say, because it's just a black
> empty desktop...) - that could also explain the xwininfo pointing the root
> window.

I put a widget(calculator) on the righthand screen of the VD and it stayed after I 
**right-clicked and selected empty on the trash.**

> TIFKAC on the right screen inidcates that the plasmashell process has not
> quit (segfaulted) at this stage.

Not sure what TIFKAC is, but there is a menu button that says
Show Dashboard
Add Widgets
Activities
Lock Widgets...


> The xprops support the scenario with the cause being the _NET_WM_DESKTOP
> property moving from 4294967295 (-1 - "on all desktops") to 5 (ie. the 6th
> VD in human counting)
> 
> The trigger seems to be the "popup" for the trashcan, but
> > As soon as I left-click TRASH

**Right-click and click(select) EMPTY**

> This just opens the trash (stunningly in konqueror ;-) - and the usual rmb
> context menu doesn't nearly trigger such.
> 
> => What do you see when you
> > As soon as I left-click TRASH
> 
> The bug is obviously not in the taskmanager, you just used it as pars pro
> toto.
> 
> -----
> As workaround, run "kcmshell5 kwinrules", create a new rule, match desktop
> and dock for "plasmashell" class and force them to be on all desktops.

I'll try this, thanks.
Comment 20 Alexander Mentyu 2018-02-28 11:59:18 UTC
@ryan_swan can you reproduce this issue after the updates?
Comment 21 ryan_swan 2018-03-20 22:23:15 UTC
This bug has been fixed.  My Task Manager bar no longer disappears.  Thank you for fixing it.