After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 722690 - Conky starts to appear in taskbar or app switcher with gs 3.10.3
Conky starts to appear in taskbar or app switcher with gs 3.10.3
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.10.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 722510 722774 722837 722961 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-01-21 12:58 UTC by Andrea Antolini
Modified: 2014-02-04 21:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
conky appears in dash e app swicther (175.13 KB, image/jpeg)
2014-01-21 13:04 UTC, Andrea Antolini
  Details
Task switcher (35.16 KB, image/png)
2014-01-21 14:49 UTC, Muflone
  Details
shell-app: Don't create ShellApps for uninteresting windows (1.18 KB, patch)
2014-01-21 17:23 UTC, Jasper St. Pierre (not reading bugmail)
rejected Details | Review
shell-app: Base running state on "interesting" windows (2.10 KB, patch)
2014-01-22 17:06 UTC, Florian Müllner
committed Details | Review
This patch prevents shell app from unreferencing a state for an app which has still uninteresting windows open. (456 bytes, patch)
2014-02-04 21:11 UTC, 3z7_1ogaxip7navm
none Details | Review
v1 leaks memory if the last closed window of an app is uninteresting (878 bytes, patch)
2014-02-04 21:34 UTC, 3z7_1ogaxip7navm
none Details | Review
ui-panel: Filter uninteresting windows (1.07 KB, patch)
2014-02-04 21:47 UTC, 3z7_1ogaxip7navm
none Details | Review

Description Andrea Antolini 2014-01-21 12:58:49 UTC
Hi all,  I'm on a archlinux 64bit machine..

after recent update of gnome-shell package (from v3.10.2 to v3.10.3), Conky and may be other similar apps like some dock apps) starts to appear
in taskbar or application swtcher

I didn't change the conky config and Conky is always the same 

I'm quit sure that this never happens with all previous gnome3 shell versions, 

I guess this is not the expected behaviour for those kind of apps

Downgrading to gnome-shel 3.10.2  solve the issue (at least for me)


Best regards

Andrea

ps: I've attached some evidence if could be useful
Comment 1 Andrea Antolini 2014-01-21 13:04:59 UTC
Created attachment 266863 [details]
conky appears in dash e app swicther
Comment 2 Andrea Antolini 2014-01-21 13:06:10 UTC
... starts to appear in taskbar AND in the application swtcher... :-)

Andrea
Comment 3 Muflone 2014-01-21 14:48:16 UTC
This doesn't seem to be a conky limitation as it happens also with the nautilus file manager with no opened windows if you use nautilus to serve your desktop.

If you move to conky or nautilus (File) window using ALT+<key above tab> the whole shell crashes.

Confirmed in Arch Linux x86_64
gnome-shell 3.10.3-1
nautilus 3.10.1-1
conky 1.9.0-2
Comment 4 Muflone 2014-01-21 14:49:28 UTC
Created attachment 266878 [details]
Task switcher

Only the Firefox window is opened
Conky and File are undecorated windows in the background
Comment 5 Michael Bruenker 2014-01-21 15:08:17 UTC
I can confirm this beahviour. I have the exact same problems with conky and cairo-dock. Running Gnome-Shell/Mutter 3.10.3-1 on Arch Linux x86_64.
Comment 6 Bob le pirate 2014-01-21 16:59:29 UTC
I 've got the same problem with conky and gdesklets. 

My system is Arch Linux x86_64 with gnome-shell 3.10.3-1

Downgrading to gnome-shell 3.10.2-4 works fine.
Comment 7 Florian Müllner 2014-01-21 17:09:38 UTC
(In reply to comment #6)
> I 've got the same problem with conky and gdesklets. 

Please, don't add any more "me too" comments. This is almost certainly fallout from https://git.gnome.org/browse/gnome-shell/commit?id=e19faff101fe65c4. There's a patch in bug 722434 (the third one) that should be usable as workaround until we come up with a proper fix ...
Comment 8 Jasper St. Pierre (not reading bugmail) 2014-01-21 17:23:27 UTC
Created attachment 266904 [details] [review]
shell-app: Don't create ShellApps for uninteresting windows
Comment 9 ZeroSec 2014-01-21 23:16:08 UTC
(In reply to comment #0)
> ps: I've attached some evidence if could be useful

+1 to this. It's getting very, very annoying. 

Happens in "Dash To Dock" for both conky windows I have setup.
Comment 10 Florian Müllner 2014-01-22 17:02:24 UTC
Review of attachment 266904 [details] [review]:

I haven't checked whether the patch fixes the problem with conky, but if it does it's somewhat accidental. Basically an app should be considered running if it has at least one interesting window, but according to the code an app is running if it has any tracked windows - that was obviously fine while we were only tracking interesting windows, but that's no longer the case. Now, whether an application has at least one interesting window has nothing to do whether it is window backed or not - for instance nautilus' DESKTOP window is not, but we still don't want to nautilus to show up as running if that's the only window.
Comment 11 Florian Müllner 2014-01-22 17:06:07 UTC
Created attachment 266986 [details] [review]
shell-app: Base running state on "interesting" windows

An app should be considered running if it has at least one "interesting"
window, however the code considers an app running if it has at least
one tracked window. This was fine while we were only tracking interesting
windows, but since commit d21aa0d85fc325 this is no longer the case.
So keep track of the number of interesting windows as well and use that
to determine the running state.
Comment 12 Florian Müllner 2014-01-22 17:06:20 UTC
*** Bug 722774 has been marked as a duplicate of this bug. ***
Comment 13 Jasper St. Pierre (not reading bugmail) 2014-01-22 19:33:28 UTC
Review of attachment 266986 [details] [review]:

Yep. This looks good.
Comment 14 Florian Müllner 2014-01-22 21:17:26 UTC
Attachment 266986 [details] pushed as b62c157 - shell-app: Base running state on "interesting" windows
Comment 15 Florian Müllner 2014-01-23 15:34:53 UTC
*** Bug 722837 has been marked as a duplicate of this bug. ***
Comment 16 Jasper St. Pierre (not reading bugmail) 2014-01-23 15:39:42 UTC
*** Bug 722510 has been marked as a duplicate of this bug. ***
Comment 17 Florian Müllner 2014-01-25 09:50:43 UTC
*** Bug 722961 has been marked as a duplicate of this bug. ***
Comment 18 3z7_1ogaxip7navm 2014-02-04 21:11:58 UTC
Created attachment 268099 [details] [review]
This patch prevents shell app from unreferencing a state for an app which has still uninteresting windows open.

Florian's patch might work for Conky, but it solved only parts of the "Nautilus icon" bug (#722510). In fact the patch makes it even worse, since Gnome crashed every time after I closed a Nautilus window and clicked on the desktop afterwards.

This is caused by shell_app_state_transition, which unreferences the running state of the app even if there are still some uninteresting windows open. My patch changes this, so that the running state is only unreferenced if there are absolutely no windows (interesting or not) open.
Comment 19 3z7_1ogaxip7navm 2014-02-04 21:34:18 UTC
Created attachment 268101 [details] [review]
v1 leaks memory if the last closed window of an app is uninteresting
Comment 20 Florian Müllner 2014-02-04 21:37:25 UTC
That's already fixed in bug 722840.
Comment 21 3z7_1ogaxip7navm 2014-02-04 21:47:28 UTC
Created attachment 268103 [details] [review]
ui-panel: Filter uninteresting windows

As Florian is suggesting in https://git.gnome.org/browse/gnome-shell/commit?id=e19faff101fe65c4 uninteresting windows should be filtered when it's actually needed. This patch filters "uninteresting windows" where needed in ui-panel.

This patch in conjunction with my previous patch fixes the "Nautilus icon" bug for me.
Comment 22 Florian Müllner 2014-02-04 21:50:52 UTC
(In reply to comment #21)
> Created an attachment (id=268103) [details] [review]
> ui-panel: Filter uninteresting windows

See bug 722928.