My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 484: uses excessive CPU time
3 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Sep 03
Type-Defect
Priority-Medium
Milestone-Release0.7.7


Sign in to add a comment
 
Reported by jo.m.berg, Sep 03, 2009
Just using gnome-globalmenu sometimes leads to the panel applet using a lot
of CPU time. This is on r2637 or so but never happened with r2578, I used
some versions inbetween but not for long enough to know whether they were
good or not.

Sorry -- somebody else was supposed to report this issue (asked for that in
#408) but I don't see it.
Comment 1 by jo.m.berg, Sep 03, 2009
$ ltrace -p 5050
g_str_hash(0x7f35f4d833bb, 0x7f35f4d833bb, 1, 0, 8)                 = 0xe6fe5fcb
g_str_equal(0x18f3f40, 0x7f35f4d833bb, 0x407a40, 0x7f35f4d833d7, 8) = 1
g_str_hash(0x7f35f4d8333a, 0x7f35f4d8333a, 0x407a40, 0xe6fe5fcb, 8) = 0x92685411
g_str_equal(0x7f35f60815d9, 0x7f35f4d8333a, 0x407a40, 0x7f35f4d83340, 8) = 1
g_str_hash(0x7f35f6081313, 0x7f35f6081313, 1, 1, 64)                = 0x97146d08
g_str_equal(0x18e7da0, 0x7f35f6081313, 0x407a40, 0x7f35f608131c, 64) = 1
g_str_hash(0x7f35f4d833bb, 0x7f35f4d833bb, 1, 0, 8)                 = 0xe6fe5fcb
g_str_equal(0x18f3f40, 0x7f35f4d833bb, 0x407a40, 0x7f35f4d833d7, 8) = 1
g_str_hash(0x7f35f4d8333a, 0x7f35f4d8333a, 0x407a40, 0xe6fe5fcb, 8) = 0x92685411
g_str_equal(0x7f35f60815d9, 0x7f35f4d8333a, 0x407a40, 0x7f35f4d83340, 8) = 1
g_str_hash(0x7f35f6081313, 0x7f35f6081313, 1, 1, 64)                = 0x97146d08
g_str_equal(0x18e7da0, 0x7f35f6081313, 0x407a40, 0x7f35f608131c, 64) = 1
g_str_hash(0x7f35f4d833bb, 0x7f35f4d833bb, 1, 0, 8)                 = 0xe6fe5fcb
g_str_equal(0x18f3f40, 0x7f35f4d833bb, 0x407a40, 0x7f35f4d833d7, 8) = 1
g_str_hash(0x7f35f4d8333a, 0x7f35f4d8333a, 0x407a40, 0xe6fe5fcb, 8) = 0x92685411
g_str_equal(0x7f35f60815d9, 0x7f35f4d8333a, 0x407a40, 0x7f35f4d83340, 8) = 1
g_str_hash(0x7f35f6081313, 0x7f35f6081313, 1, 1, 64)                = 0x97146d08
g_str_equal(0x18e7da0, 0x7f35f6081313, 0x407a40, 0x7f35f608131c, 64) = 1
g_str_hash(0x7f35f4d833bb, 0x7f35f4d833bb, 1, 0, 8)                 = 0xe6fe5fcb

Comment 2 by jo.m.berg, Sep 03, 2009
backtrace
bt.txt
18.0 KB   Download
Comment 3 by jo.m.berg, Sep 03, 2009
backtrace with full menu string
bt.txt
33.9 KB   Download
Comment 4 by jo.m.berg, Sep 03, 2009
Funny thing is I haven't yet managed to reproduce while logging the debug output to a
file... will attach when I do.
Comment 5 by jo.m.berg, Sep 03, 2009
Hmm ok so the logfile just repeats over and over and over and over this bit:

(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: parser.vala:13: Parser consumed:
0.003407 for 15396 bytes
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:40: grabbing key
for _File:102
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:40: grabbing key
for _Edit:101
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:40: grabbing key
for _View:118
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:40: grabbing key
for _Go:103
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:40: grabbing key
for _Bookmarks:98
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:40: grabbing key
for T_ools:111
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:40: grabbing key
for _Tabs:116
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:40: grabbing key
for _Help:104
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:40: grabbing key
for _Search:115
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:40: grabbing key
for _Help:104
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:50: ungrabbing 118
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:50: ungrabbing 116
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:50: ungrabbing 115
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:50: ungrabbing 111
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:50: ungrabbing 104
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:50: ungrabbing 103
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:50: ungrabbing 102
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:50: ungrabbing 101
(GlobalMenu.PanelApplet:18034): libgnomenu-DEBUG: globalmenu.vala:50: ungrabbing 98 

when it hangs -- and as I just figured out it eventually even recovers it seems.
Comment 6 by jo.m.berg, Sep 03, 2009
It appears that running the applet from 2578 with the gtk module from 2637 (or 2638
or something around that) works fine and avoids the problem.
Comment 7 by jo.m.berg, Sep 03, 2009
Ok, that wasn't true -- the old applet with the new module also shows this behaviour.
It appears that somehow something is sending the (same!) menu to it so often that it
ends up having problems parsing it.
Comment 8 by golimpio, Sep 03, 2009
I didn't have time to report this yesterday, let me know if I can help.
I was running rev 2593 with no problems, after that I start to notice this issue.
Comment 9 by rainwoodman, Sep 03, 2009
 Issue 485  has been merged into this issue.
Comment 10 by rainwoodman, Sep 03, 2009
7 looks weird.
Status: Started
Comment 11 by rainwoodman, Sep 03, 2009
Fixed in r2643
Status: Fixed
Labels: Milestone-Release0.7.7
Comment 12 by lviggiani, Sep 03, 2009
Installed. Currently testing.
In the mean time I can confirm that trunk also compiles with vala 0.7.5
Comment 13 by jo.m.berg, Sep 03, 2009
Indeed, seems fixed here -- been running it since a little after you pushed out the
fix until all this morning and no hangs so far.
Sign in to add a comment

Hosted by Google Code