Xfce4-xkb-plugin has a memory leak

Bug #739095 reported by Bremm
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
xfce4-xkb-plugin
Unknown
Unknown
xfce4-xkb-plugin (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: xfce4-xkb-plugin

Plugin starts using 11 MiB and then keeps growing up after new window opened
(program, caption, dialog etc.). Sometimes it grows over 300 MiB.

And from http://bugs.gentoo.org/351546

xfce-extra/xfce4-xkb-plugin-0.5.3.3-r9 tends to 'accumulate' the memory usage.
It uses about 20Mb of resident memory just after start, but after some hours of
work it grows up to 300Mb, for example.
Maybe, it does not erase the information about keyboard layouts in already
closed windows?

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: xfce4-xkb-plugin 0.5.3.3-3ubuntu4 [modified: usr/lib/xfce4-xkb-plugin/xfce4/panel-plugins/xfce4-xkb-plugin]
ProcVersionSignature: Ubuntu 2.6.38-7.36-generic 2.6.38
Uname: Linux 2.6.38-7-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Sun Mar 20 22:44:31 2011
ProcEnviron:
 LANGUAGE=pt_BR:en
 PATH=(custom, no user)
 LANG=pt_BR.utf8
 SHELL=/bin/bash
SourcePackage: xfce4-xkb-plugin
UpgradeStatus: Upgraded to natty on 2011-03-15 (5 days ago)

Revision history for this message
Bremm (bremm) wrote :
Revision history for this message
Bremm (bremm) wrote :

I forgot to mention: I filled up a bug ticket at Xfce's Bugzilla:

http://bugzilla.xfce.org/show_bug.cgi?id=7363

Changed in xfce4-xkb-plugin (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Aleksey Tayanovsky (altay1992) wrote :

Really annoying bug, after 2 days of use, up to 500 Mb of RAM were allocated for this plugin. Fix this please!

Revision history for this message
Aleksey Vorona (voronaam) wrote :

I've got it to grow up to 3Gb...

vorona@vorona-asus:~$ ps v -p 2063
  PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND
 2063 ? Sl 3:12 599 55 3256376 1999952 49.2 /usr/lib/xfce4-xkb-plugin/xfce4/panel-plugins/xfce4-xkb-plugin 4 251
vorona@vorona-asus:~$ uptime
 22:03:36 up 10 days, 1:29, 6 users, load average: 0.05, 0.75, 0.84

Xfce bugzilla says this bug is fixed.

Revision history for this message
Charlie Kravetz (cjkgeek) wrote :

Xfce bugzilla says this bug is fixed in the latest git, which means there are patches. It does not mean the patches are out in the latest release of xfce4-xkb-plugin yet. The Ubuntu task does not yet say fixed, because it is not fixed for the distribution. Thanks for keeping watch on this. It helps us to know there are patches in upstream.

Revision history for this message
codejumper (jumperpro) wrote :

the same for me

Revision history for this message
Azamat H. Hackimov (winterheart) wrote :

Hello there.
I'm current upstream maintainer of xfce4-xkb-plugin. New version 0.5.4.1 is available, try it to solve this bug.

Revision history for this message
Bremm (bremm) wrote :

I'm currently testing with a deb from wheezy:

http://packages.debian.org/search?keywords=xfce4-xkb-plugin

$ LANG=C apt-cache policy xfce4-xkb-plugin
xfce4-xkb-plugin:
  Installed: 0.5.4.0-1
  Candidate: 0.5.4.0-1
  Version table:
 *** 0.5.4.0-1 0
        100 /var/lib/dpkg/status
     0.5.3.3-3ubuntu4 0
        500 http://archive.ubuntu.com/ubuntu/ natty/universe amd64 Packages

Revision history for this message
Bremm (bremm) wrote :

With 0.5.4.0-1 it grows up about the same. Are there a deb package ready? I didn't find any 0.5.4.1 packed until now.

TIA

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

There's now 0.5.4.1 in sid, and it should land in oneiric soon.

Revision history for this message
Bremm (bremm) wrote :

Weird, in sid the package's date is jun/18, but I didn't find it there jun/20.

Now I got this installed and working to test. Thank you.

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

(fyi, 0.5.4.1 is now in oneiric as well)

Revision history for this message
Bremm (bremm) wrote :

$ LANG=C sudo dpkg -i xfce4-xkb-plugin_0.5.4.1-1_amd64.deb
(Reading database ... 133791 files and directories currently installed.)
Preparing to replace xfce4-xkb-plugin 0.5.4.1-1 (using .../xfce4-xkb-plugin_0.5.4.1-1_amd64.deb) ...
Unpacking replacement xfce4-xkb-plugin ...
dpkg: dependency problems prevent configuration of xfce4-xkb-plugin:
 xfce4-xkb-plugin depends on libxklavier16 (>= 5.1); however:
  Version of libxklavier16 on system is 5.0-2ubuntu1.
dpkg: error processing xfce4-xkb-plugin (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 xfce4-xkb-plugin

I'll keep the Debian package until this one (from Oneiric) gets backported to Natty.

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Hi again,

Could you try the oneiric package that should fix this issue? (or are you still on natty?) Thanks.

Changed in xfce4-xkb-plugin (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Bremm (bremm) wrote :

Sorry, I'm currently using another distro.

$ pacman -Ss xfce4-xkb
extra/xfce4-xkb-plugin 0.5.4.1-1 (xfce4-goodies) [installed]
    plugin to switch keyboard layouts for the Xfce4 panel

But it's the same source version that I used from Debian, and so far I may say it has no memory leaks. :-)

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Thanks for the feedback.

Changed in xfce4-xkb-plugin (Ubuntu):
status: Incomplete → 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.