camera_service eats lots of CPU even when in photo roll

Bug #1481558 reported by Michi Henning
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Medium
Bill Filler
camera-app (Ubuntu)
Fix Released
Medium
Florian Boucault

Bug Description

I have about a dozen photos and videos on my mako.

When I run the camera app and look at the app log, I see loads of messages like this:

libust[6087/6105]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:958)
libust[6087/6106]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:958)
 ext1: 1, ext2: 0
 ext1: 1, ext2: 0
 ext1: 1, ext2: 0
 ext1: 1, ext2: 0
 ext1: 1, ext2: 0
 ext1: 1, ext2: 0
 ext1: 1, ext2: 0
 ext1: 1, ext2: 0
 ext1: 1, ext2: 0
 ext1: 1, ext2: 0
 ext1: 1, ext2: 0
 ext1: 1, ext2: 0
 ext1: 1, ext2: 0
 ext1: 1, ext2: 0
 ext1: 1, ext2: 0

These messages are continuously being written to the log, whether I'm in the view finder or the photo roll. With the app just sitting on the photo roll page doing nothing, top reports around 40% CPU usage.

Related branches

Revision history for this message
Michi Henning (michihenning) wrote :

BTW, that's with the latest rc-proposed image:

$ system-image-cli -i
current build number: 205
device name: mako
channel: ubuntu-touch/rc-proposed/ubuntu
last update: 2015-08-05 02:21:57
version version: 205
version ubuntu: 20150804
version device: 20150210
version custom: 20150804

Revision history for this message
Michi Henning (michihenning) wrote :

I'm still seeing this with the latest mako image from dc-proposed at version 226. Permanently eating half a CPU is a serious bug.

Changed in camera-app:
importance: Undecided → Critical
Revision history for this message
Florian Boucault (fboucault) wrote :

While the view finder is shown the camera is going to use CPU continuously, there is no way around that.
While in the photo roll, I do not see the camera app using much CPU however camera_service is. This needs to be investigated and fixed.

Changed in camera-app:
status: New → Confirmed
importance: Critical → High
summary: - Camera app eats lots of CPU
+ camera_service eats lots of CPU even when in photo roll
Revision history for this message
Michi Henning (michihenning) wrote :

Hmmm... This is not what I'm seeing on Mako. When looking at the photo roll, it is camera-app that's eating all the CPU, at 35-40%. camera-service is using about 1.6%.

Revision history for this message
Bill Filler (bfiller) wrote :

on latest rc-proposed on krillin I'm seeing camera-app use 20-25% and camera-service using 7-10% when on the photo roll
we should definitely fix this - when on photo roll camera-app should not be consuming any cpu

Changed in camera-app:
assignee: nobody → Florian Boucault (fboucault)
Changed in canonical-devices-system-image:
milestone: none → ww02-2016
assignee: nobody → Bill Filler (bfiller)
importance: Undecided → High
status: New → Confirmed
Changed in camera-app:
status: Confirmed → In Progress
Changed in canonical-devices-system-image:
status: Confirmed → In Progress
Changed in canonical-devices-system-image:
milestone: ww02-2016 → ww08-2016
Revision history for this message
Florian Boucault (fboucault) wrote :

We fixed camera-app usage in photo roll, now 0% but not camera-service which is still eating the same amount as before.

Changed in camera-app:
status: In Progress → Triaged
Changed in canonical-devices-system-image:
status: In Progress → Confirmed
Changed in camera-app:
status: Triaged → Confirmed
Changed in camera-app (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Florian Boucault (fboucault)
Bill Filler (bfiller)
Changed in canonical-devices-system-image:
milestone: ww08-2016 → backlog
importance: High → Medium
Changed in camera-app:
importance: High → Medium
Changed in camera-app (Ubuntu):
importance: High → Medium
no longer affects: camera-app
Bill Filler (bfiller)
Changed in camera-app (Ubuntu):
status: Confirmed → Fix Released
Changed in canonical-devices-system-image:
status: Confirmed → 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.