suspected memory leak with indicator-keyboard (causing gnome-session-flashback to freeze after startup)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Indicator keyboard |
Fix Committed
|
Undecided
|
Unassigned | ||
indicator-keyboard (Ubuntu) |
Fix Released
|
Undecided
|
Sebastian Geiger | ||
Noble |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
* The indicator-
[ Test Plan ]
* Prerequisites:
- A running gnome-session-
* Ensure you have multiple input sources configured, for example:
$ dconf read /org/gnome/
[('xkb', 'us'), ('ibus', 'libpinyin')]
* Start indicator-
$ indicator-
* Watch the memory consumption to raise quickly and consume all available memory until it is being killed by the OOM daemon.
* Expected base case:
- After starting the indicator-
- Clicking on the indicator-keyboard icon in the applet shows a menu and allows switching between languages.
[ Where problems could occur ]
* The regression potential is very low since indicator-
* User base of indicator-keyboard is low. The main users of this package are Unity and Gnome Flashback and both are not default desktops on Ubuntu. Gnome Shell does not depend on indicator-keyboard. So a potential regression would only affect users of these desktops.
* The source code changes include the removal of a redundant initialization of IBus in two functions of indicator-
* On GNOME Flashback another workaround exists in case there is an unexpected regression due to this chaneg. In the unlikely event that the change has a side effect and prevents the indicator from working, users an switch to the newer "System Indicators" applet and remove the indicator-keyboard package completely.
NEWS
The fix is available in version 0.0.0+19.
=== Original Description ===
Description:
The system was previously on 22.04, then upgraded to 23.10 to the current daily 24.04. System will freeze up a few minutes after startup (with no apparent related crashes). After various trial and error, the possible cause is isolated to indicator-keyboard when running gnome-session-
**logs below taken from `sudo journalctl --since "3 hours ago" | grep indicator`**
Feb 29 16:49:03 machine kernel: oom-kill:
Feb 29 16:49:03 machine kernel: Out of memory: Killed process 5810 (indicator-keybo) total-vm:
Feb 29 16:49:03 machine kernel: oom_reaper: reaped process 5810 (indicator-keybo), now anon-rss:688kB, file-rss:768kB, shmem-rss:0kB
Feb 29 16:48:56 machine systemd[5304]: indicator-
Feb 29 16:48:57 machine systemd[5304]: indicator-
Feb 29 16:48:57 machine systemd[5304]: indicator-
Feb 29 16:48:57 machine systemd[5304]: indicator-
Feb 29 16:48:58 machine systemd[5304]: indicator-
Feb 29 16:48:58 machine systemd[5304]: Started indicator-
Feb 29 17:00:40 machine dbus-daemon[1111]: [system] Activating via systemd: service name='org.
Related branches
- Alberts Muktupāvels: Approve
-
Diff: 31 lines (+2/-2)2 files modifiedlib/main.vala (+2/-1)
lib/source.vala (+0/-1)
summary: |
- suspected memory leak with indicator-keyboard + suspected memory leak with indicator-keyboard (causing gnome-session- + flashback to freeze after startup) |
description: | updated |
description: | updated |
description: | updated |
tags: |
added: verification-done-noble removed: verification-needed-noble |
tags: | removed: verification-needed |
I am experiencing similar problem with 24.04 after adding ibus-mozc method. Right after login indicator-keyboard starts using 100% of CPU with rapid memory consumption which results in freezing and OOM. Symptomatic fix: removing --use-gtk solves this problem.