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 575004 - gnome-session sometimes autostarts applications that are already running
gnome-session sometimes autostarts applications that are already running
Status: RESOLVED OBSOLETE
Product: gnome-session
Classification: Core
Component: gnome-session
2.25.x
Other All
: Normal major
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-03-11 21:48 UTC by Chris Coulson
Modified: 2021-06-14 18:20 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description Chris Coulson 2009-03-11 21:48:13 UTC
Please describe the problem:
A user reported that gnome-session was consuming a lot of CPU bandwidth and logging a lot of information to disk. After looking at the users logs, it became clear that gnome-session was continually trying to restart vino-server, over and over again. That bug report can be found here: https://bugs.edge.launchpad.net/ubuntu/+source/gnome-session/+bug/340515

vino-server ships an autostart desktop file with "X-GNOME-AutoRestart=true" and "AutostartCondition=GNOME /desktop/gnome/remote_access/enabled". vino-server will also exit if there is already another instance already running.

I can trigger this problem by manually running vino-server, then modifying /desktop/gnome/remote_access/enabled so that the autostart condition is met. Once I've done this, gnome-session tries to start a second instance of vino-server, which immediately exits. This then starts an infinite cycle which brings my machine virtually to its knees.

The first instance of vino-server already registered with gnome-session, so I don't think it should try and start another if the autostart condition becomes satisfied.

Steps to reproduce:
1. Run "gconftool-2 -s --type=bool /desktop/gnome/remote_access/enabled 0"
2. Run "/usr/lib/vino/vino-server"
3. Run "gconftool-2 -s --type=bool /desktop/gnome/remote_access/enabled 1"


Actual results:
gnome-session tries to start a second instance of vino-server, which immediately exits because there is one already running

Expected results:
gnome-session shouldn't try to start a second instance. The first instance already registered itself with gnome-session

Does this happen every time?
Yes

Other information:
Comment 1 Andrew Conkling 2009-03-12 03:07:00 UTC
(In reply to comment #0)
> A user reported that gnome-session was consuming a lot of CPU bandwidth

I am said user. :)

> Steps to reproduce:
> 1. Run "gconftool-2 -s --type=bool /desktop/gnome/remote_access/enabled 0"
> 2. Run "/usr/lib/vino/vino-server"
> 3. Run "gconftool-2 -s --type=bool /desktop/gnome/remote_access/enabled 1"

At least for me, step 3 is enough; I do not need to manually start vino-server to trigger this bug. Could be a difference in setup though; let me know if we need to test that differently at all.
Comment 2 Andrew Conkling 2009-03-30 22:13:38 UTC
Seems to be resolved now on 2.26.0, whether it was vino or gnome-session that fixed it I'm not sure.
Comment 3 Julien Olivier 2009-04-24 11:00:29 UTC
Hi, I've just upgraded to Ubuntu Jaunty (GNOME 2.26.1) and noticed this bug instantly. So I guess this is not fixed after all.
Comment 4 Jürg Billeter 2009-05-13 19:17:50 UTC
Still an issue with gnome-session 2.26.1, reopening.
Comment 5 Richard 2009-06-02 11:59:20 UTC
I can confirm it is still happening with vino 2.26.1-0ubuntu1 and gnome-session 2.26.0svn20090408-0ubuntu2 on my up-to-date Jaunty box.
Comment 6 Halton Huo 2009-07-27 03:07:13 UTC
And I can confirm it on OpenSolaris with gnome-session 2.27.4 and vino 2.26.2.
Comment 7 André Klapper 2021-06-14 18:20:36 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of gnome-session, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-session/-/issues/

Thank you for your understanding and your help.