/system/lib/libubuntu_application_api.so leaks memory constantly

Bug #1206146 reported by Daniel d'Andrada
26
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_malloc.c:357)
==4265== by 0x72E24CB: ??? (in /system/lib/libubuntu_application_api.so)

Running on the desktop (hence without using that QPA) doesn't show that constant memory increase.

Related branches

kevin gunn (kgunn72)
tags: added: rtm14
Michael Frey (mfrey)
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
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

The leak is in SensorListener::on_new_reading in android/default/default_ubuntu_application_sensor.cpp

Nothing deletes the object allocated by make_holder

Revision history for this message
Victor Tuson Palau (vtuson) wrote :

I think this should be crtitical

Bill Filler (bfiller)
Changed in platform-api:
importance: High → Critical
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package platform-api - 2.4.0+14.10.20140926-0ubuntu1

---------------
platform-api (2.4.0+14.10.20140926-0ubuntu1) utopic; urgency=low

  [ Alberto Aguirre ]
  * Fix memory leak on sensor event notifications (LP: #1206146) (LP:
    #1206146)
 -- Ubuntu daily release <email address hidden> Fri, 26 Sep 2014 16:42:04 +0000

Changed in platform-api (Ubuntu):
status: New → Fix Released
Changed in platform-api:
status: In Progress → 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.