cpu at 100%

Bug #620299 reported by Nicolò Chieffo
This bug report is a duplicate of:  Bug #616781: gm-notify has high cpu usage. Edit Remove
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
GMail Notifier
New
Undecided
Unassigned

Bug Description

I'm running maverick i386, and I installed gm-notify.
I have it since months, without any problems, but after a recent update (I think this week, or maybe last week) in some unknown scenarios gm-notify.py starts to take the processor busy at 100%.
After a kill and a process re-launch I can use it normally.

How can I debug a python app? It must be stuck in a loop!

Revision history for this message
kyleabaker (kyleabaker) wrote :

Confirmed. I'm running maverick x86_64 with the same issue.

Revision history for this message
kyleabaker (kyleabaker) wrote :

I've traced the cpu spike back to the first instant that the user clicks the mail inbox label to open it.

The exact error occurs in the gm-notify file in the labelClick method on the line (on or around line 209):
subprocess.call([get_executable_path("xdg-open"), url])

I'm still looking into a way to fix it, but now that I've found it maybe we can find a fix more quickly.

Revision history for this message
kyleabaker (kyleabaker) wrote :

I just added "import webbrowser" to the top and replaced the mentioned subprocess.call() with:

webbrowser.open(url)

...and it still begins to take up 100% cpu, so I'm out of ideas.

Revision history for this message
Alexander Hungenberg (alexander-hungenberg-gmail) wrote :

interesting... unfortunately I'm not able to test this because I don't have maverick running.

Nevertheless I think this problem is related to the underlying libs and not gm-notify itself because it worked seamless before. If you have any ideas or related bug reports it would be great :-)

Revision history for this message
kyleabaker (kyleabaker) wrote :

@Alexander Hungenberg
I've been looking into a way to limit cpu usage, but have had no success getting it to work yet. There is an example for this on StackOverflow..
http://stackoverflow.com/questions/1689505/python-ulimit-and-nice-for-subprocess-call-subprocess-popen

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.