I re-flashed my mako today and tested it again and can reproduce the
issue every time I test it.  Perhaps you didn't have the display forced
on (as described below).

How to reproduce:

1.  Force the phone not to suspend:

powerd-cli display on bright &

2.  Start calendar app and find the pid:

 ps -ef | grep calendar.qml

3.  Trace:

smemstat -l -p 5236 60 5
Change in memory (average per second):
  PID       Swap       USS       PSS       RSS User       Command
  5236     0.0 B  1228.8 B  1228.8 B  1228.8 B phablet    
/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene calendar.qml
Total:     0.0 B  1228.8 B  1228.8 B  1228.8 B

  PID       Swap       USS       PSS       RSS User       Command
  5236     0.0 B  1228.8 B  1228.8 B  1228.8 B phablet    
/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene calendar.qml
Total:     0.0 B  1228.8 B  1228.8 B  1228.8 B

  PID       Swap       USS       PSS       RSS User       Command
  5236     0.0 B  1160.5 B  1160.5 B  1160.5 B phablet    
/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene calendar.qml
Total:     0.0 B  1160.5 B  1160.5 B  1160.5 B

  PID       Swap       USS       PSS       RSS User       Command
  5236     0.0 B  1297.1 B  1297.1 B  1297.1 B phablet    
/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene calendar.qml
Total:     0.0 B  1297.1 B  1297.1 B  1297.1 B

  PID       Swap       USS       PSS       RSS User       Command
  5236     0.0 B  1228.8 B  1228.8 B  1228.8 B phablet    
/usr/lib/arm-linux-gnueabihf/qt5/bin/qmlscene calendar.qml
Total:     0.0 B  1228.8 B  1228.8 B  1228.8 B

And one can see that one of the threads is expanding the heap by 4K
every ~3 seconds, which correlates with the heap expanding by a over 1K
a second:

strace -f -t -p 5236 -e memory
[pid  5255] 13:11:37 mprotect(0xab0f6000, 4096, PROT_READ|PROT_WRITE) = 0
[pid  5255] 13:11:40 mprotect(0xab0f7000, 4096, PROT_READ|PROT_WRITE) = 0
[pid  5255] 13:11:44 mprotect(0xab0f8000, 4096, PROT_READ|PROT_WRITE) = 0
[pid  5255] 13:11:47 mprotect(0xab0f9000, 4096, PROT_READ|PROT_WRITE) = 0
[pid  5255] 13:11:50 mprotect(0xab0fa000, 4096, PROT_READ|PROT_WRITE) = 0
[pid  5255] 13:11:54 mprotect(0xab0fb000, 4096, PROT_READ|PROT_WRITE) = 0
[pid  5255] 13:11:57 mprotect(0xab0fc000, 4096, PROT_READ|PROT_WRITE) = 0
[pid  5255] 13:12:00 mprotect(0xab0fd000, 4096, PROT_READ|PROT_WRITE) = 0
[pid  5255] 13:12:04 mprotect(0xab0fe000, 4096, PROT_READ|PROT_WRITE) = 0
[pid  5255] 13:12:07 mprotect(0xab0ff000, 4096, PROT_READ|PROT_WRITE) = 0
[pid  5255] 13:12:10 mmap2(0xab100000, 1048576, PROT_NONE, 
MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0xab100000
[pid  5255] 13:12:10 mprotect(0xab100000, 135168, PROT_READ|PROT_WRITE) = 0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1364404

Title:
  qmlscene is leaking ~1.7K per second on an idle application on the
  phone

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtdeclarative-opensource-src/+bug/1364404/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to