ubuntu-weather-app is polling poll() at 15Hz and heap is growing at 1K/sec on idle

Bug #1221153 reported by Colin Ian King
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Incomplete
Undecided
Unassigned
Ubuntu Weather App
Invalid
High
Unassigned
ubuntu-ui-toolkit (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

On an idle phone, the ubuntu-weather-app is polling poll() at 15Hz. Also, I am observing heap growth at about 1K/sec.

CPU usage:
  PID Process USR% SYS% TOTAL%
  3177 qmlscene 0.24 0.48 0.72 (very light load)

System calls traced:
  PID Process Syscall Count Rate/Sec
  3177 qmlscene poll 8991 14.9849

Change in memory (K/second):
  PID Process Type Size RSS PSS
  3177 qmlscene Heap 1.71 1.20 1.20 (growing)

So it's not entirely idle and consuming power when doing apparently nothing. The heap growth is observable from the the /proc/3177/smaps information, however, I can't see any obvious sbrk()/brk() or mmap() calls, so it is curious how this is occurring.

Observation: I am noticing this with all application which are launched using qmlscene and suspect it could be qmlscene which is leaking memory. The symtoms that I see are laggy UI when leaving a qmlscene app launched for several hours while on suspend.

description: updated
tags: added: mobile-power-consumption
no longer affects: touch-preview-images
David Planella (dpm)
Changed in ubuntu-weather-app:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

I am noticing this with all application which are launched using qmlscene and suspect it could be qmlscene which is leaking memory. The symtoms that I see are laggy UI when leaving a qmlscene app launched for several hours while on suspend.

Revision history for this message
Colin Ian King (colin-king) wrote :

So I ran it for 30 minutes on idle, and noticed that it is leaking via mmap() calls:

Memory Change via mmap() and munmap():
  PID mmaps munmaps Change (K) Rate (K/second)
 30826 qmlscene 4 6 4096 2.28 (growing)

It grew by 4MB in 30 minutes. This is rather alarming growth. I suppose that the mmap() growth is from malloc().

As for the polling, I'm seeing two qmlscene threads running at 30 wakups a second on epoll_wait() and poll(). I've attached the complete analysis of the qmlscene to this bug report.

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

I think we need to attach an upstream project for this since it is not just the weather app. I am guessing ubuntu-ui-toolkit might be one. But there could be more.

description: updated
Revision history for this message
Cris Dywan (kalikiana) wrote :

Is this still the case?

Changed in ubuntu-ui-toolkit:
status: New → Incomplete
Revision history for this message
Colin Ian King (colin-king) wrote :

I am pleased to report that this issue no longer affects the weather app. A common library was leaking the memory and this was fixed in the last couple of weeks. The wakeup events have dropped and so I think we can safely say this bug is now fixed.

Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Incomplete
Changed in ubuntu-weather-app:
status: Triaged → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ubuntu-ui-toolkit (Ubuntu) because there has been no activity for 60 days.]

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Incomplete → Expired
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.