Dictionary plug-in eats all available ram

Bug #351026 reported by Kim
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Do Plugins
Confirmed
Critical
Unassigned

Bug Description

To reproduce:
1. Activate the "GNOME Dictionary" plug-in
2. Enter search mode
3. Enter any text that puts Gnome-Do into "raw text mode"
4. Enter a dot (.), comma (,) í or a whitespace character (probably more that works) Example: "termmmmmmmm."

Result:
gnome-do almost instantaneously consumes a large amount of memory (60-80%) and after a couple more seconds it has taken a hold of 100% of the memory and on top of that it has also filled out the swap.

Two side-by-side example outputs from top:
PR: 20 | 20
NI: 0 | 0
VIRT: 2636m | 2641m
RES: 2.2g | 2.2g
SHR: 23m | 23m
S: D | R
%CPU: 18 | 223
%MEM: 67.4 | 69.0
TIME+: 0:15.89 | 0:21.96
COMMAND: gnome-do

I have so far seen this happen on two different computers with both the 0.8.0.* and 0.8.1.* versions of Gnome Do, the latest being 0.8.1.3.

I used information from Bug 270437 in the Gnome Do launchpad to generate debug information, if it helps:
arcanox@localhost ~ $ gnome-do --debug > ~/gnome-do-debug-mode2.txt
GNOME.DefineAction "Define" encountered an error in SupportsItem: Out of memory.
Terminated
arcanox@localhost ~ $ mono --trace=N:Do.Core /usr/lib/gnome-do/Do.exe > gnome-do-mono-debug2.txt
GNOME.DefineAction "Define" encountered an error in SupportsItem: Out of memory.
Terminated

I terminated by switching tty and running killall gnome-do

gnome-do --debug output:
[Info 17:30:03.464] [Services] Successfully located service of type IPreferencesService.
[Info 17:30:03.475] [Services] Successfully located service of type ILogService.
[Info 17:30:03.475] [Services] Successfully located service of type ISecurePreferencesService.
[Info 17:30:03.481] [Services] Successfully located service of type INotificationsService.
[Debug 17:30:03.489] [InterfaceManager] "Mini Interface" interface was loaded
[Info 17:30:03.490] [Services] Successfully located service of type ILogService.
[Debug 17:30:03.490] [InterfaceManager] "Docky" interface was loaded
[Debug 17:30:03.491] [InterfaceManager] "Classic Interface" interface was loaded
[Debug 17:30:03.492] [InterfaceManager] "Glass Interface" interface was loaded
[Debug 17:30:03.493] [InterfaceManager] "Nouveau Interface" interface was loaded
[Debug 17:30:03.502] [PluginManager] Loaded "ApplicationItemSource" from plugin.
[Debug 17:30:03.502] [PluginManager] Loaded "GNOMESpecialLocationsItemSource" from plugin.
[Info 17:30:03.504] [Services] Successfully located service of type AbstractApplicationService.
[Debug 17:30:03.505] [PluginManager] Loaded "InternalItemSource" from plugin.
[Debug 17:30:03.506] [PluginManager] Loaded "ItemSourceItemSource" from plugin.
[Debug 17:30:03.508] [PluginManager] Loaded "EmailAction" from plugin.
[Debug 17:30:03.508] [PluginManager] Loaded "OpenAction" from plugin.
[Debug 17:30:03.559] [PluginManager] Loaded "OpenUrlAction" from plugin.
[Debug 17:30:03.562] [PluginManager] Loaded "OpenWithAction" from plugin.
[Debug 17:30:03.562] [PluginManager] Loaded "RevealAction" from plugin.
[Debug 17:30:03.562] [PluginManager] Loaded "RunAction" from plugin.
[Debug 17:30:03.563] [PluginManager] Loaded "CopyToClipboardAction" from plugin.
[Info 17:30:03.567] [Services] Successfully located service of type AbstractSystemService.
[Debug 17:30:03.573] [SystemService] No other application instance detected. Continue startup.
[Info 17:30:03.581] [Services] Successfully located service of type IPreferencesService.
[Info 17:30:03.581] [Services] Successfully located service of type ISecurePreferencesService.
[Debug 17:30:03.586] [Controller] Setting theme Docky
[Info 17:30:03.627] [Services] Successfully located service of type PathsService.
[Info 17:30:03.667] [Services] Successfully located service of type ICoreService.
[Info 17:30:03.769] [UniverseManager] Reloading universe...
[Debug 17:30:03.772] [UniverseManager] Reloading actions...
[Debug 17:30:03.775] [UniverseManager] Reloading item source "Applications"...
[Debug 17:30:03.833] [UniverseManager] Reloading item source "GNOME Special Locations"...
[Debug 17:30:03.868] [UniverseManager] Reloading item source "Internal GNOME Do Items"...
[Debug 17:30:03.869] [UniverseManager] Reloading item source "GNOME Do Item Sources"...
[Info 17:30:03.871] [UniverseManager] Universe contains 119 items.
[Debug 17:30:03.914] [RelevanceProvider] Successfully loaded learned usage data.
[Info 17:30:09.130] [Services] Successfully located service of type IUniverseFactoryService.
[Debug 17:30:10.655] [PluginManager] Loaded "DefineAction" from plugin.
[Info 17:30:12.282] [UniverseManager] Reloading universe...
[Debug 17:30:12.286] [UniverseManager] Reloading actions...
[Debug 17:30:12.287] [UniverseManager] Reloading item source "Applications"...
[Debug 17:30:12.291] [UniverseManager] Reloading item source "GNOME Special Locations"...
[Debug 17:30:12.293] [UniverseManager] Reloading item source "Internal GNOME Do Items"...
[Debug 17:30:12.294] [UniverseManager] Reloading item source "GNOME Do Item Sources"...
[Info 17:30:12.294] [UniverseManager] Universe contains 120 items.
[Info 17:30:16.705] [Services] Successfully located service of type IEnvironmentService.

Output of "mono --trace=N:Do.Core /usr/lib/gnome-do/Do.exe"

Revision history for this message
Kim (kim-h) wrote :
tags: added: official-plugins
Revision history for this message
Jakob Malm (malmjakob) wrote :

I have found this as well. Gnome-Do 0.8.2 on Fedora Core 10.

Revision history for this message
Jakob Malm (malmjakob) wrote :

I didn't have any problems with this plugin in Gnome-Do-0.6, the official version for fc10.

Revision history for this message
Jakob Malm (malmjakob) wrote :

The attached screenshot shows the memory consumption when entering Raw Text Mode with the Gnome Dictionary plugin active.

Robert Dyer (psybers)
Changed in do-plugins:
importance: Undecided → Critical
status: New → Confirmed
Changed in do-plugins:
status: Confirmed → Fix Committed
assignee: nobody → artur bryczek (arturbryczek)
Revision history for this message
Robert Dyer (psybers) wrote :

@artur: why are you changing bug status for a project you don't belong? Do not touch them.

Changed in do-plugins:
status: Fix Committed → Confirmed
assignee: artur bryczek (arturbryczek) → nobody
Changed in do-plugins:
status: Confirmed → Fix Committed
Revision history for this message
Robert Dyer (psybers) wrote :

@artur: STOP changing the bug status. You are not a developer of this project.

Changed in do-plugins:
status: Fix Committed → Confirmed
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.