/system/lib/libubuntu_application_api.so leaks memory constantly
Bug #1206146 reported by
Daniel d'Andrada
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
platform-api |
Fix Released
|
Critical
|
Alberto Aguirre | ||
platform-api (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Run a qml application containing just an empty item ("Item {}") for some minutes (or overnight). You will see that its memory consumption increases constantly over time. Valgrind says the following:
==4265== 645,288 (49,656 direct, 595,632 indirect) bytes in 12,414 blocks are definitely lost in loss record 623 of 623
==4265== at 0x482DB1C: operator new[](unsigned int) (vg_replace_
==4265== by 0x72E24CB: ??? (in /system/
Running on the desktop (hence without using that QPA) doesn't show that constant memory increase.
Related branches
lp:~albaguirre/platform-api/fix-1206146
- Thomas Voß (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 345 lines (+43/-77)2 files modifiedandroid/default/default_ubuntu_application_sensor.cpp (+39/-57)
android/include/private/application/sensors/events.h (+4/-20)
tags: | added: rtm14 |
Changed in platform-api: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: touch-2014-09-25 |
Changed in platform-api: | |
assignee: | nobody → Ricardo Mendoza (ricmm) |
Changed in platform-api: | |
assignee: | Ricardo Mendoza (ricmm) → Alberto Aguirre (albaguirre) |
status: | Triaged → In Progress |
Changed in platform-api: | |
importance: | High → Critical |
Changed in platform-api: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
The leak is in SensorListener: :on_new_ reading in android/ default/ default_ ubuntu_ application_ sensor. cpp
Nothing deletes the object allocated by make_holder