Heavy CPU usage when sublimetext is opened

Bug #1276225 reported by Pete Woods
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Unity HUD
Fix Released
Medium
Marcus Tomlinson
hud (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

It looks to be triggered by sublimetext:
http://www.sublimetext.com/2

The suspended stack:
http://pastebin.ubuntu.com/6873661/

This is the HUD log file:
http://paste.ubuntu.com/6873710/

This is the list of apps running:
http://paste.ubuntu.com/6873719/

Changed in hud:
importance: Undecided → Medium
Pete Woods (pete-woods)
summary: - Infinite loop in gmenu handling when running sublimetext
+ Heavy CPU usage when sublimetext is opened
Changed in hud:
assignee: nobody → Marcus Tomlinson (marcustomlinson)
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hud - 13.10.1+14.04.20140206-0ubuntu1

---------------
hud (13.10.1+14.04.20140206-0ubuntu1) trusty; urgency=low

  [ Pete Woods ]
  * Re-enable quit action in HUD client library. (LP: #1269409)
  * Extra checks for null DBusMenuCollector

  [ Marcus Tomlinson ]
  * Cache size of QtGActionGroup in m_size rather and re-calculating it
    on every Size() call. (LP: #1276225)
 -- Ubuntu daily release <email address hidden> Thu, 06 Feb 2014 11:58:43 +0000

Changed in hud (Ubuntu):
status: New → Fix Released
Changed in hud:
status: In Progress → Fix Committed
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

I'm sorry, but it doesn't seem fixed here.

Changed in hud:
status: Fix Committed → Confirmed
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

So, I've compiled hud from trunk and it seems that the process is stuck in qtgmenu::QtGMenuModel::FindAction.
In my context here hud-service just goes to 100% cpu usage everytime I run it.

See the full backtrace at http://pastebin.ubuntu.com/6888296/ (first it's simple bt, then bt full)

Revision history for this message
Pete Woods (pete-woods) wrote :

Thanks for that info Marco. Have you managed to figure out which application is causing the 100% CPU usage? Is it sublimetext?

It would obviously really be helpful for us to reproduce this issue.

At the minute my theory is there's some sort of cycle in the GMenu structure that one of the apps is exporting.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Pete, yes it seems to be... In fact looking at the bt there's an "Perl-0" action that might be one of the entries in the Syntax-submenu of Sublime text.

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Marco:
Hi, I'm having trouble re-creating this issue on my machine, but I have put in a fix that prevents infinite loops in QtGMenuModel::FindAction.

Could you please try something for me: Could you get and build lp:~marcustomlinson/hud/lp-1276225 and let me know if you still have this problem.

What I'm hoping you see is no more 100% usage and this message in the console: "QtGMenuModel::FindAction: Feedback loop found in GMenu hierarchy while searching for action: "x""

Thanks!

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Unfortunately the loop persists... http://pastebin.ubuntu.com/6948712/

Changed in hud:
status: Confirmed → In Progress
Pete Woods (pete-woods)
Changed in hud:
status: In Progress → Fix Released
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.