Memory leak in clock 395 on #302 mako

Bug #1309065 reported by Alan Pope 🍺🐧🐱 🦄
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Clock App
Invalid
Undecided
Unassigned

Bug Description

Running 1.0.395 on #302. I don't know if this is a bug in clock or somewhere deeper..

I enable ssh on my phone

adb shell setprop persist.service.ssh true
adb reboot

Then ssh in and ran a script:-

#!/bin/bash
while :
do
  /home/phablet/ps_mem.py > /home/phablet/logs/ps_`date +%Y-%m-%d-%H%M%S`.txt
  sleep 360
done

Which calls a python script every 5 mins:-

https://raw.github.com/pixelb/ps_mem/master/ps_mem.py

It logs memory usage to a file.

I rebooted the phone, started the clock and left it alone. I saw memory usage rise by ~4MB/min:-

grep -h *.txt
 Private + Shared = RAM used Program
 18.7 MiB + 6.3 MiB = 25.1 MiB qmlscene
 41.7 MiB + 6.4 MiB = 48.0 MiB qmlscene
 66.8 MiB + 6.4 MiB = 73.2 MiB qmlscene
 92.0 MiB + 6.4 MiB = 98.3 MiB qmlscene
117.1 MiB + 6.4 MiB = 123.5 MiB qmlscene
134.6 MiB + 6.4 MiB = 141.0 MiB qmlscene

Have attached the logs to this bug.

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

I was testing the alarm functionality so it's possible I left it on the alarm screen when the screen autolocked.

ps_2014-04-17-154016.txt: 18.7 MiB + 6.3 MiB = 25.1 MiB qmlscene
ps_2014-04-17-154621.txt: 41.7 MiB + 6.4 MiB = 48.0 MiB qmlscene
ps_2014-04-17-155226.txt: 66.8 MiB + 6.4 MiB = 73.2 MiB qmlscene
ps_2014-04-17-155831.txt: 92.0 MiB + 6.4 MiB = 98.3 MiB qmlscene
ps_2014-04-17-160435.txt:117.1 MiB + 6.4 MiB = 123.5 MiB qmlscene

At this point I unlocked the phone and the clock app showed the clock face (not alarms).

ps_2014-04-17-161040.txt:134.6 MiB + 6.4 MiB = 141.0 MiB qmlscene

However I left the phone to lock itself again, but now, the memory consumption hasn't climbed further.

ps_2014-04-17-161645.txt:134.6 MiB + 6.4 MiB = 141.0 MiB qmlscene
ps_2014-04-17-162249.txt:134.6 MiB + 6.4 MiB = 141.0 MiB qmlscene

Changed in ubuntu-clock-app:
milestone: none → 2.2
Changed in ubuntu-clock-app:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.