BuddiesOfBudgie / budgie-desktop

Budgie Desktop is a familiar, modern desktop environment.
https://buddiesofbudgie.org
GNU General Public License v2.0
957 stars 50 forks source link

zombie icons in icon task list [Bug] #399

Open solomongrundy6 opened 1 year ago

solomongrundy6 commented 1 year ago

Description

Not sure if this is a duplicate of the other icon tasklist bugs, feel free to merge it to another or whatever if it is.

While working on a script, I noticed that if I called an application (in my case, mpv) from a bash script, but the application errored out and quit fast enough, it would leave behind a zombie icon in the icon task list. I investigated some more and it doesn't have to be from a script, simply calling the application from the terminal will do this.

Example: mpv nothing.mp4

Where 'nothing.mp4' is a non-existent mp4 file. An icon in the task list will appear but will not be properly destroyed, I assume because of some race condition as mpv quits very quickly after not finding the file. Future executions will not re-use the newly created zombie icon, so running it ten times will result in ten zombie icons.

Budgie version

10.7.2

Operating System

Solus 4.4

Steps to reproduce the issue

mpv nothing.mp4

Actual result

zombie icons

Expected result

no zombie icons

Additional information

No response

EbonJaeger commented 1 year ago

I am unable to reproduce this on Solus; no icon ever gets created for me.

solomongrundy6 commented 1 year ago

I did a little more poking around after you said you couldn't reproduce it, and noticed a strange inconsistency. If I have an mpv window open (either a blank one by opening it from the start menu or by opening a file in nemo), then 'mpv nothing.mp4' does not spawn the zombie icon. If I then close that mpv window and try 'mpv nothing.mp4' again, it still will not spawn the zombie icon for the rest of my session or until I restart budgie-panel.

If, however, I open the regular mpv window (from start menu or opening a file in nemo) and close it without trying 'mpv nothing.mp4' while it's open, then try 'mpv nothing.mp4' after it has closed, it will still spawn zombie icons. For whatever reason, trying to trigger the bug while an mpv window is already open "fixes" the bug, so to speak, for the rest of the session or until budgie-panel is restarted.

solomongrundy6 commented 1 year ago

Another strange semi-related thing: While testing this, I had two instances of the kitty terminal open. At some point after triggering this bug via one of the kitty windows, closing one kitty window (via window controls) closed both of them. I thought perhaps it was somehow kitty causing the zombie icon bug, but the bug still happened for me via gnome-terminal, although I couldn't seem to reproduce the "both terminals closing instead of one" bug with gnome-terminal. I cannot seem to find a way to consistently reproduce the terminal bug, but if I keep trying the icon bug it always eventually happens.

Nothing stands out to me in journalctl for either bug, I should mention.