'Read Man Pages' plugin makes Gnome-Do unresponsive

Bug #325935 reported by Parthiban Balasubramanian on 2009-02-05
Affects Status Importance Assigned to Milestone
Do Plugins
Chris S.

Bug Description

Summon up Do and start typing man.... and Do becomes unresponsive (with the 'Read Manual Pages' action highlighted), and CPU usage spikes up. OTOH if you type out say 'perl' and tab over to select the 'Read Manual Pages' action, it works just fine.

BTW this kind of behavior is also seen with the Window Management Plugin (https://bugs.launchpad.net/do-plugins/+bug/323182).

Chris S. (cszikszoy) on 2009-02-06
Changed in do-plugins:
importance: Undecided → Low
status: New → Confirmed
Chris S. (cszikszoy) wrote :

The problem here is that the manlookup function has a _very_ hungry method for SupportsItem.

When you type man in the first pane, do has to run this function on every type of SupportedItem in the universe, which in this case is an ApplicationItem, ManualPageItem, or TextItem.

I think the logical thing to do here is move this function and don't check every supported item in the universe right away. This method could be moved to Perform, so that when the man page action runs, it will have to check if that application has a supported manual.

Worst case scenario: the plugin will try to find a man page for an application that doesn't have one. Here we could just politely inform the user that the is no man page for that application.

I'll mess around with it a little later.

Changed in do-plugins:
assignee: nobody → cszikszoy
Chris S. (cszikszoy) on 2009-02-07
Changed in do-plugins:
status: Confirmed → Fix Committed
Chris S. (cszikszoy) on 2009-03-14
Changed in do-plugins:
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