camera startup time regression

Bug #1592447 reported by kevin gunn
64
This bug affects 12 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Bill Filler
camera-app (Ubuntu)
Fix Released
Undecided
Florian Boucault

Bug Description

Please see
http://reqorts.qa.ubuntu.com/reports/qa/performance/dashboard/index.html

the camera time recently jumped in startup time, but this did not seem to be something caused by a common component when comparing to other apps.

kevin gunn (kgunn72)
Changed in canonical-devices-system-image:
assignee: nobody → Bill Filler (bfiller)
importance: Undecided → High
Changed in camera-app (Ubuntu):
assignee: nobody → Florian Boucault (fboucault)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in camera-app (Ubuntu):
status: New → Confirmed
Revision history for this message
mikahdh (f4tmike) wrote :

Same here. Takes ages to open camera app. Nexus 4, OTA11

tags: added: lt-blocker regression-proposed
Changed in canonical-devices-system-image:
status: New → Confirmed
milestone: none → 12
Changed in camera-app (Ubuntu):
status: Confirmed → In Progress
Changed in canonical-devices-system-image:
status: Confirmed → In Progress
Revision history for this message
Florian Boucault (fboucault) wrote :

Multiple issues are at play:
1) the regression seemingly observed in http://reqorts.qa.ubuntu.com/reports/qa/performance/dashboard/index.html turned out to be only a temporary blip. Subsequent runs show that there was no recent change in camera app startup time (on krillin).

2) the startup time measurement done in http://reqorts.qa.ubuntu.com/ is tricked by the way the camera app does things: it starts as fast as possible but once started shows a black screen for several seconds. It turns out that from a user perspective the camera app does not take 2.5s to startup on krillin but closer to 4.5s. Stopwatch measurements are as follows:
- krillin (363): 4.5s
- arale (356): 5s
- turbo (110): 7s

3) on turbo and I suspect some other devices or some other circumstances, the camera app startup is exceedingly high (over 7s) which I believe explains the reports we are getting here. After studying it I could not yet pinpoint the exact cause for such a slowdown. However I noticed that launching the camera app from the SDK made it start considerably faster, in 3s instead of 7s. After digging I came up with a small script that reproduces that speedup: http://pastebin.ubuntu.com/17696727/
Finally, I realised that simply having a "tail -f /var/log/syslog" opened while starting the camera app was enough to do the trick.
I investigated the possibility of CPU cores not being online in normal camera app startup thus possibly slowing it down but manually turning them on did not improve situation.

Revision history for this message
Florian Boucault (fboucault) wrote :

Re 2): improvements specific to the camera app are landing soon. See https://code.launchpad.net/~phablet-team/camera-app/staging/+merge/298329

Revision history for this message
Dubstar_04 (dubstar-04) wrote :

Could obtaining permissions to access the hardware slow down app startup time?

Changed in canonical-devices-system-image:
milestone: 12 → 13
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Revision history for this message
Florian Boucault (fboucault) wrote :

2) is fixed in the latest release

3) is left to fix

Revision history for this message
Dave H (dhandhelen-s) wrote :

Hi, the camera start up time looks to be much improved (<4s) on my MX4 and BQ M10, thanks for your quick action.

Note, after trying it a number of time on both devices, I did see a strange thing with the BQ M10. On one of the starts it took about 14s seconds, not sure why. After trying again it was back to 4s again.

Regards

Dave H

Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
Changed in camera-app (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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