Bug 522310

Summary: Memory leak on show/hide
Product: [Fedora] Fedora Reporter: Ignacio Vazquez-Abrams <ivazqueznet>
Component: ibusAssignee: Peng Huang <phuang>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: i18n-bugs, phuang, tagoh, tfujiwar
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-15 06:19:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ignacio Vazquez-Abrams 2009-09-10 03:20:53 UTC
ibus-1.1.0.20090612-3.fc11.x86_64
ibus-anthy-1.1.0.20090814-1.fc11.x86_64

The IBus python process leaks memory when Anthy is the active IME and the bar is shown and/or hidden (not entirely certain which). It does not leak with LaTeX or Compose IMEs. Have not tested others.

Comment 1 Ignacio Vazquez-Abrams 2009-09-10 03:30:45 UTC
Still leaky after upgrading to ibus-1.1.0.20090829-1.fc11.x86_64.

Comment 2 fujiwara 2009-09-10 04:01:30 UTC
I cannot reproduce your problem.

How do you check the memory leaks?

> when Anthy is the active IME and the bar is shown and/or hidden

Do you mean left click on ibus icon on gnome-panel?
I tried to click 'Anthy' and 'No input method' but I could not see any problems.

Comment 3 Ignacio Vazquez-Abrams 2009-09-10 04:46:46 UTC
(In reply to comment #2) 
> How do you check the memory leaks?

I run top in a terminal and sort by RSS.

> > when Anthy is the active IME and the bar is shown and/or hidden
> 
> Do you mean left click on ibus icon on gnome-panel?

When I use the hotkey to show/hide the bar (Ctrl-Space here).

It takes a few cycles to see a change in top, but when I hold down the hotkey it rapidly shows and hides the bar, and in top I see the RSS increase at about 4MB per second.

Comment 4 fujiwara 2009-09-10 07:06:28 UTC
It seems /usr/share/ibus/ui/gtk/main.py and PyGTK debug is needed.
It would need time and the file belongs to ibus so I transfer this at the moment.

I could see the issue when Type Shift + o, n after top is invoked.

Comment 5 Peng Huang 2009-09-10 08:39:51 UTC
Fixed in upstream. I will build it later.

Comment 6 Peng Huang 2009-09-15 06:19:06 UTC
Fixed in ibus-1_2_0_20090915-1_fc12