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 148028 - Panel stops receiving GConf notifications
Panel stops receiving GConf notifications
Status: RESOLVED FIXED
Product: GConf
Classification: Deprecated
Component: gconf
CVS HEAD
Other Linux
: Normal major
: ---
Assigned To: GConf Maintainers
Panel Maintainers
: 145554 147472 151300 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-07-20 20:00 UTC by Sebastien Bacher
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8


Attachments
gconftool-2 -R /apps/panel/profiles/default (10.43 KB, text/plain)
2004-08-17 11:39 UTC, Sebastien Bacher
  Details
saved_state (15.04 KB, text/plain)
2004-08-17 16:51 UTC, Sebastien Bacher
  Details
detailed log (129.48 KB, application/octet-stream)
2004-08-27 15:38 UTC, Sebastien Bacher
  Details
proposed patch (653 bytes, patch)
2004-08-29 11:32 UTC, Josselin Mouette
none Details | Review

Description Sebastien Bacher 2004-07-20 20:00:42 UTC
stickynotes used to work very nice for months (GNOME 2.6), but now I'm using
GNOME 2.7 and for a week or  so, sometimes clicking on the applet simply does
nothing. Killing the panel (next time I'll try to slay the applet only) solves
the issue (when it happens the number of tries doesn't matter, it doesn't
nothing for the whole running time).

I've not really figured how to reproduce the problem, but it happens several
times in a day.
BTW I'm not sure on how to debug this problem. Let me know what information
could be useful.
Comment 1 Vincent Noel 2004-08-06 14:30:52 UTC
Are you still seeing this ?
Comment 2 Sebastien Bacher 2004-08-06 14:39:43 UTC
It works right now, but I think I've had it yesterday with GNOME modules
uptodate. I'll let you know it happens again.

BTW I've noticed that the click event seems to work (the state of the check box
in the menu change) when it happens.
Comment 3 Sebastien Bacher 2004-08-06 19:25:36 UTC
Yes, still here, I've the problem right now. In fact the check box doesn't
change on click, but if I right click and choose to change the notes in the menu
it doesn't work better
Comment 4 Sebastien Bacher 2004-08-06 19:39:51 UTC
I'm wondering if it's not a gnome-panel bug. I've tried to change the panel wide
in the same time, didn't work, I've added an another applet, didn't work ... all
was fixed after a "killall gnome-panel"
Comment 5 Sebastien Bacher 2004-08-07 12:25:25 UTC
Ok, I think it's a panel bug, I'm reassigning.

Not the first time I notice this but:
- when I try to change a panel width there is no graphical result. The gconf key
is updated as expected but that's all.
- if I add an applet it's not displayed
- the menus is not updated
- this stickynotes bug ... clicking on the applet doesn't act as expected

=> "killall gnome-panel" and I've all these stuff working again (panel got the
size specified before, new applets are displayed, stickynote works, menu is
updated ...)


All the GNOME modules are uptodates (not CVS but last tarballs released).
I've the problem with stickynotes for some weeks now, and remember getting the
"size not dynamically changed" about 2 weeks ago when I was trying to reproduce
a bug.

Let me know if you need details. I'm setting the severity to major, I think this
is appropriate since in fact the panel is pretty broken.
Comment 6 Vincent Noel 2004-08-10 15:21:43 UTC
It smells like an applet is behaving badly and messing the panel. Do you think
it could be the stickynotes applet, or do you have other exotic applets on your
panel ?
Comment 7 Sebastien Bacher 2004-08-10 15:32:19 UTC
I'm not on this box right now, but I don't have "exotic app" afaik. IIRC my
applets are:
- GNOME menu
- sound mixer
- windows list
- notify area
- netspeed
- system-monitor
- weather
- mail
- clock
Comment 8 Mark McLoughlin 2004-08-17 09:16:10 UTC
Hmm, it actually kind of sounds like GConf may be screwed up. When this happens
what do you get if you do gconftool-2 -R /apps/panel/profiles/default and
gconftool-2 -R /apps/stickynotes_applet/settings ?

Also, what do you mean when you say "- the menus is not updated" ?
Comment 9 Sebastien Bacher 2004-08-17 09:40:34 UTC
I'll have to check next time it happens. I've removed stickynote yesterday to
see if it's the problem and at the end of the evening the panel was screwed in
the same way.

I was browsing the gconf prefs with gconf-editor, the panel width is updated
directly for example but not visual change.

"the menu is not updated" <- if I install a new desktop file it's not displayed
until I kill the panel. fam is running and the menu updates work fine when the
panel is not screwed
Comment 10 Mark McLoughlin 2004-08-17 10:39:27 UTC
Please re-open when you've more details from reproducing it
Comment 11 Sebastien Bacher 2004-08-17 10:52:36 UTC
I wish I could, but which details do you need ? It's broken again right now ....
I can't give a way to reproduce it in 10 secondes but it happens very often here
and not only on my box, so putting it in a "NEEDINFO land" and ignore it is not
really a good idea I think. Please let this bug open and help me to debug
instead of that
Comment 12 Mark McLoughlin 2004-08-17 11:16:51 UTC
Calm down, I'm not ignoring the bug, I just need more information before I can
hope to diagnose it. And doing it here means we still have the information if we
end up leaving the bug for a while.

Now, the information I wanted:

"When this happens what do you get if you do gconftool-2 -R
/apps/panel/profiles/default and gconftool-2 -R /apps/stickynotes_applet/settings ?"
Comment 13 Sebastien Bacher 2004-08-17 11:39:25 UTC
Created attachment 30648 [details]
gconftool-2 -R /apps/panel/profiles/default

I'm calm, my experience is just that NEEDINFO bugs are ignored ...

BTW I'm not running stickynotes atm, do you still want the output ?
Comment 14 Mark McLoughlin 2004-08-17 12:55:53 UTC
I basically want to see if GConf is returning sane values at the time this
happens - one of the reasons sticky notes might be doing nothing when you click
on it is if it is getting weird values for
/apps/stickynotes_applet/settings/click_behavior from GConf.

So, yes - I only want the output from *both* those commands at the time you
actually see this happening.

Although, since you say the menus aren't updating, maybe its nothing to do with
GConf at all.
Comment 15 Sebastien Bacher 2004-08-17 13:07:39 UTC
$ gconftool-2 -R /apps/stickynotes_applet/settings
 date_format = %x
 visible = true
 autosave_time = 5
 click_behavior = 1
 sticky = true
 use_system_color = true
 force_default = false
 use_system_font = true
 confirm_deletion = true
 locked = false
Comment 16 Mark McLoughlin 2004-08-17 13:38:04 UTC
So, you have it configured to hide/show the sticky notes on click ?

Any messages relating to GConf in /var/log/messages at that time?
Comment 17 Sebastien Bacher 2004-08-17 14:11:11 UTC
yes, it's an hide/show mode. I'm not sure it's clear, I've stopped to use
stickynote today, turned the computer this night and it happens today again, so
I think that's not related to stickynotes ... so I'm not it's useful to look on
this applet.

Apparently no message related to the problem in messages, just this sometime:

aoû 17 14:54:25 localhost gconfd (seb-21102): démarrage (version 2.7.90), pid
21102 utilisateur « seb »
aoû 17 14:54:25 localhost gconfd (seb-21102): Adresse
« xml:readonly:/etc/gconf/gconf.xml.mandatory » résolue vers une source de
configuration en lecture seule à la position 0
aoû 17 14:54:25 localhost gconfd (seb-21102): Adresse
« xml:readwrite:/home/seb/.gconf » résolue vers une source de configuration
enregistrable à la position 1
aoû 17 14:54:25 localhost gconfd (seb-21102): Adresse
« xml:readonly:/etc/gconf/gconf.xml.defaults » résolue vers une source de
configuration en lecture seule à la position 2
Comment 18 Mark McLoughlin 2004-08-17 14:29:10 UTC
You're not using stickynotes anymore and you can still reproduce this bug? No,
that wasn't clear?

You're going to need to re-explain exactly what you're seeing here, and what
triggers it, because I'm very confused now.
Comment 19 Sebastien Bacher 2004-08-17 14:41:03 UTC
Ok, sorry if it was not clear.

* I've first noticed a problem with stickynotes not working
* some times after I've noticed than resizing the panel or adding/removing
applets doesn't work in the same time.
* then I've removed stickynote to test if the applet was faulty
* now my panel is broken in the same way (changing width or addind/removing an
applet, or adding a desktop file ... all these changes need a kill of the panel
to be displayed).

I don't nothing particular, I just use my computer and several in a time it get
broken. I kill it and it works again for some time (hours ?) ... hard to notice
when/how the break happen.

My applets are:
* menu
* some launchers
* notify area
* wireless applet
* battery
* mixer
* calendar
* window list
* show desktop
* desktop switcher
Comment 20 Mark McLoughlin 2004-08-17 15:21:31 UTC
Okay, so the issue you are seeing is:

  After I use the desktop for a while, the panel stops responding to 
  configuration changes I make - changing the panel width, adding or
  remove objects etc. stops working. If I kill the panel, it restarts
  and I see the changes I made.

When your desktop is like this, if you do gconftool-2 --shutdown, do you see a
~/.gconfd/saved_state file? If so, could you attach it here?

What version of GConf is this, how are you building it, what distribution are
you running etc.?
Comment 21 Sebastien Bacher 2004-08-17 15:31:57 UTC
I've just killed the panel after the update 2.7.90 -> 91, I'll try on the next
problem and give the result here.

My system is basically a debian one + GNOME 2.7.90 packages, I'm updating to
2.7.91 now.
Comment 22 Mark McLoughlin 2004-08-17 16:00:51 UTC
Might want to check out what Debian specific patches are in the GConf package
Comment 23 Sebastien Bacher 2004-08-17 16:41:24 UTC
no patch in the gconf package
Comment 24 Sebastien Bacher 2004-08-17 16:51:18 UTC
Created attachment 30669 [details]
saved_state

ok, broken again. I've a 16k saved_state
Comment 25 Mark McLoughlin 2004-08-17 17:15:16 UTC
Nice. Notice the way none of the panel keys are being monitored.

Not sure what could cause that, I'll look at it more tommorrow
Comment 26 Ross Burton 2004-08-19 15:38:20 UTC
I've seen this too with G2.7, when adding new applets or launcher to the panel.
Comment 27 Mark McLoughlin 2004-08-19 15:44:47 UTC
Ross: can you confirm /apps/panel isn't in ~/.gconfd/saved_state for you?
Comment 28 Mark McLoughlin 2004-08-25 17:45:52 UTC
Sebastien: I've looked over the code and its going to be quite difficult to
debug why this is happening, but its something I'd love to see fixed.

So, as a starting point it would be useful for you to reproduce this with
GCONF_DEBUG_OUTPUT=1 set - i.e. set that env variable for the entire session and
once you've reproduced the bug attach the output from /var/log/messages - also,
it'd be good if the output wasn't in french :-)
 
Comment 29 Sebastien Bacher 2004-08-27 15:38:47 UTC
Created attachment 31017 [details]
detailed log

Ok, the log of today is attached. The panel is broken again now, I've noticed
that around 14h
Comment 30 Sebastien Bacher 2004-08-27 15:42:06 UTC
according to the log gconf gets the changes but no graphical result (ie: if I
change the width of the panel) ... 
Comment 31 Sebastien Bacher 2004-08-28 16:09:15 UTC
*** Bug 151300 has been marked as a duplicate of this bug. ***
Comment 32 Crispin Flowerday (not receiving bugmail) 2004-08-28 19:21:41 UTC
This happens with me as well, however, I believe it is the Debian package. They
have a custom patch to handle SIGHUP, which causes it to reload the database.
This is used when upgrading gnome packages on a debian system. After the SIGHUP
occurs, and it has reloaded the database, it no longer notifiers listeners about
the changes.

I have raised this as http://bugs.debian.org/268721

(This is possibly also bug 147472)
(I could also be completely wrong .....)
Comment 33 Sebastien Bacher 2004-08-28 22:28:19 UTC
No, they don't have a custom patch, this change is in the upstream code. BTW
I've not tested if the problem is due to the sighup stuff but I'll try now,
thanks for pointing this.
Comment 34 Sebastien Bacher 2004-08-28 22:37:53 UTC
ok, that's it, I've just checked. Thanks a lot for noticing this; This code is
bugged somewhere, and the Debian packages use SIGHUP after each schemas
installation, that's why my system is broken so often.

Comment 35 Crispin Flowerday (not receiving bugmail) 2004-08-28 22:46:09 UTC
They do have a patch, gconfd_sighup_reload.diff, look in
gconf2-2.6.4/debian/patches after doing an "apt-get source gconf2"
Comment 36 Sebastien Bacher 2004-08-28 22:53:09 UTC
The 2.6 debian package has this patch which is a part of the 2.7 upstream code.
I'm using a 2.7 package without any patch.

The Changelog entry related:

2004-07-05  Mark McLoughlin  <mark@skynet.ie>

        Patch from Josselin Mouette <joss@debian.org> to handle
        SIGHUP by reloading all databases. Intended to be used
        in package's postinst scripts to get all running gconfds
        to reload schemas.

        * gconf/gconfd.c:
        (signal_handler): handle SIGHUP by setting flag.
        (periodic_cleanup_timeout): reload all databases when
        the reload flag is set.

Comment 37 Josselin Mouette 2004-08-29 11:32:16 UTC
Created attachment 31057 [details] [review]
proposed patch

Sorry, my patch for SIGHUP is at fault. I forgot to reinitialize the listeners
after reinitializing the databases. This patch should do the trick.
Comment 38 Mark McLoughlin 2004-08-30 06:47:16 UTC
Thanks Josselin:

2004-08-30  Mark McLoughlin  <mark@skynet.ie>

        Patch from Josselin Mouette <joss@debian.org> in bug #148028

        * gconf/gconfd.c: (periodic_cleanup_timeout): save and reload
        ~/.gconfd/saved_state so we don't drop listeners when reloading
        the database.

Comment 39 Marius Gedminas 2004-08-30 20:59:53 UTC
*** Bug 147472 has been marked as a duplicate of this bug. ***
Comment 40 Crispin Flowerday (not receiving bugmail) 2004-08-30 22:05:19 UTC
*** Bug 145554 has been marked as a duplicate of this bug. ***