Keyboard leaks memory when switching layouts
Bug #1420891 reported by
Michael Sheldon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
Critical
|
Bill Filler | ||
ubuntu-keyboard |
Fix Released
|
Critical
|
Michael Sheldon | ||
ubuntu-keyboard (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
ubuntu-keyboard (Ubuntu RTM) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The external libraries used in the word engines are never cleaned up when closed by the QPluginLoader, this results in the keyboard using an additional 2-3mb of RAM every time the layout is switched.
Steps to reproduce
1. Enable multiple layouts
2. Switch between them repeatedly
Expected result
Memory usage should level off to a constant amount
Actual result
Memory usage continues increasing with every layout switch
Related branches
lp:~michael-sheldon/ubuntu-keyboard/fix-wordengine-leak
- PS Jenkins bot: Approve (continuous-integration)
- Ubuntu Phablet Team: Pending requested
-
Diff: 95 lines (+16/-11)5 files modifiedplugins/pinyin/src/pinyinadapter.cpp (+0/-1)
plugins/pinyin/src/pinyinplugin.cpp (+1/-0)
plugins/westernsupport/westernlanguagesplugin.cpp (+12/-10)
plugins/westernsupport/westernlanguagesplugin.h (+2/-0)
src/lib/logic/wordengine.cpp (+1/-0)
Changed in ubuntu-keyboard: | |
status: | New → Confirmed |
status: | Confirmed → In Progress |
assignee: | nobody → Michael Sheldon (michael-sheldon) |
importance: | Undecided → Critical |
Changed in canonical-devices-system-image: | |
importance: | Undecided → Critical |
milestone: | none → ww09-2015 |
status: | New → In Progress |
Changed in canonical-devices-system-image: | |
assignee: | nobody → Bill Filler (bfiller) |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Released |
Changed in ubuntu-keyboard: | |
status: | In Progress → Fix Released |
tags: | added: ww09 |
To post a comment you must log in.
This bug was fixed in the package ubuntu-keyboard - 0.99.trunk. phablet2+ 15.04.20150213- 0ubuntu1
--------------- phablet2+ 15.04.20150213- 0ubuntu1) vivid; urgency=medium
ubuntu-keyboard (0.99.trunk.
[ CI Train Bot ]
* Resync trunk
* New rebuild forced.
[ Michael Sheldon ]
* Fix memory leak when unloading word engines (LP: #1420891)
-- CI Train Bot <email address hidden> Fri, 13 Feb 2015 04:09:03 +0000