HUD service returning more than 5 entries

Bug #965299 reported by Gerry Boland on 2012-03-26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fix Released
Albert Astals Cid
unity (Ubuntu)

Bug Description

Can get more than 5 results from HUD service.

Unity2D does not restrict the number of printed results to 5, it instead assumes that hud-service only ever returns 5 results.

Right now HUD is returning 6 results on Unity2D.

It is also possible to get more with these steps:
1. Kill hud-service
2. Perform a search on Unity2D
You can get many many results:

Related branches

Gerry Boland (gerboland) on 2012-03-26
Changed in unity-2d:
status: New → Confirmed
Olli Ries (ories) on 2012-03-27
Changed in indicator-appmenu:
status: New → Incomplete
importance: Undecided → Medium
assignee: nobody → Ryan Lortie (desrt)
Revision history for this message
Olli Ries (ories) wrote :

Ryan pls check

Revision history for this message
desrt (desrt) wrote :

The hud-service will return as many results as you ask for. It's a parameter to the StartQuery call:

In libunitycore I see:

namespace unity
namespace hud

nux::logging::Logger logger("unity.hud.hud");
const int request_number_of_results = 6;

Seems that 6 is really the desired amount.

Is this a misunderstanding between unity-2d and unity-3d (libunitycore)?

As for the large number of results... I'm not sure how that could be happening. My guess is that you are not handling the change signal properly and adding the new results reported by the change signal to the list you already have (instead of replacing it). My suspicion is confirmed by the fact that many of the same items are appearing in the list you attached.

The old hud-service didn't ever emit change signals so you would not have noticed this bug before recently...

Changed in indicator-appmenu:
status: Incomplete → Invalid
Gerry Boland (gerboland) on 2012-03-27
Changed in unity-2d:
importance: Undecided → Low
milestone: none → 5.10.0
Changed in unity-2d:
assignee: nobody → Albert Astals Cid (aacid)
affects: unity-2d → unity
Changed in unity:
milestone: 5.10.0 → none
status: Confirmed → Fix Committed
Omer Akram (om26er) on 2012-04-05
Changed in unity:
milestone: none → 5.10.0
no longer affects: indicator-appmenu
Changed in unity (Ubuntu):
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
drewp (drewp) wrote :

I just upgraded to 12.04 yesterday, received unity 5.8.0-0ubuntu2, and I get this kind of thing too. I have yet to see a properly-behaved HUD list.

Top shows these two runaways:
 2458 drewp 20 0 1489m 932m 12m R 102 15.7 4:19.03 unity-panel-ser
 2531 drewp 20 0 1117m 458m 3536 R 100 7.7 4:08.02 hud-service

unity-panel-service is slowly filling ram. After I grabbed my screenshot, firefox is also spinning a lot and shaking its icon in the bar for no reason every minute or two.

I'll wait for the 5.10.0 release which I hope is coming out soon :)

Charles Kerr (charlesk) on 2012-04-12
Changed in unity:
status: Fix Committed → Fix Released
Changed in unity (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers