suspected memory leak with indicator-keyboard (causing gnome-session-flashback to freeze after startup)

Bug #2055388 reported by prusswan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
indicator-keyboard (Ubuntu)
Confirmed
Undecided
Unassigned

Bug 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-flashback (freeze does not happen anymore with flashback interface, after indicator-keyboard package is removed). Not sure why this is not happening with vanilla gdm3. Also, the freeze was first observed after the upgrade to 23.10.

**logs below taken from `sudo journalctl --since "3 hours ago" | grep indicator`**

Feb 29 16:49:03 machine kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=user.slice,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/user@1000.service/app.slice/indicator-keyboard.service,task=indicator-keybo,pid=5810,uid=1000
Feb 29 16:49:03 machine kernel: Out of memory: Killed process 5810 (indicator-keybo) total-vm:66620172kB, anon-rss:64296784kB, file-rss:768kB, shmem-rss:0kB, UID:1000 pgtables:129412kB oom_score_adj:200
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-keyboard.service: A process of this unit has been killed by the OOM killer.
Feb 29 16:48:57 machine systemd[5304]: indicator-keyboard.service: Main process exited, code=killed, status=9/KILL
Feb 29 16:48:57 machine systemd[5304]: indicator-keyboard.service: Failed with result 'oom-kill'.
Feb 29 16:48:57 machine systemd[5304]: indicator-keyboard.service: Consumed 1min 11.913s CPU time.
Feb 29 16:48:58 machine systemd[5304]: indicator-keyboard.service: Scheduled restart job, restart counter is at 1.
Feb 29 16:48:58 machine systemd[5304]: Started indicator-keyboard.service - Indicator Keyboard Backend.
Feb 29 17:00:40 machine dbus-daemon[1111]: [system] Activating via systemd: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service' requested by ':1.9' (uid=0 pid=1588 comm="apt remove indicator-keyboard" label="unconfined")

prusswan (prusswan)
summary: - suspected memory leak with indicator-keyboard
+ suspected memory leak with indicator-keyboard (causing gnome-session-
+ flashback to freeze after startup)
description: updated
Revision history for this message
aein (aeinner) wrote :

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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in indicator-keyboard (Ubuntu):
status: New → 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.