High CPU load on Payment screen

Bug #1580195 reported by Víctor R. Ruiz
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Alejandro J. Cura
pay-service (Ubuntu)
Fix Released
High
dobey

Bug Description

Test case.
- Go to the Dash.
- Open Ubuntu Store.
- Search for paid apps ("price:2.99").
- Select an unpurchased app.
- Install it.
- Introduce your credentials.

Expected result.
- While the user is on Payment screen, CPU load is not high.

Actual result.
- pay-service process goes over 100% load.

And Arale gets very hot.

current build number: 321
device name: arale
channel: ubuntu-touch/rc-proposed/meizu.en

Tags: qa-silo

Related branches

Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in pay-service (Ubuntu):
status: New → Confirmed
Revision history for this message
Selene ToyKeeper (toykeeper) wrote :

Confirmed, and I'm trying to locate the change which introduced this bug.

Revision history for this message
Selene ToyKeeper (toykeeper) wrote :

I bisected this and it turned out to be much older than I expected. Looks like it happened between 2015-09 and 2015-11, though beyond that I'm not sure. We don't have any rc-proposed images old enough for a more fine-grained inspection.

Problem exists in:
* krillin rc-proposed 329 (pay-service 15.10+15.04.20160413-0ubuntu1)
* krillin rc-proposed 315 (pay-service 15.10+15.04.20160324.1-0ubuntu1).
* arale rc-proposed 306 (pay-service 15.10+15.04.20160324.1-0ubuntu1).
* arale rc-proposed 262 (pay-service 15.10+15.04.20160114-0ubuntu1) (oldest rc-prop image on our servers).
* krillin rc 39 (OTA 8.5) (pay-service 2.0.0+15.04.20151103-0ubuntu1)
* krillin stable 27 (OTA 8) (pay-service 2.0.0+15.04.20151103-0ubuntu1)

I don't see the issue in:
* krillin stable 26 (OTA 7) (pay-service 2.0.0+15.04.20150914-0ubuntu1)
* krillin stable 24 (OTA 5) (pay-service 2.0.0+15.04.20150706-0ubuntu1)

BTW, this is really easy to check for. Flash an image, go to the app store, tap a paid app (I've been using "Cut the Rope" since it's on the front page today), tap the $2.99 button. Watch 'top' in a shell at the same time, to see if pay-service jumps up to 99% CPU. No need to even try to log in; it's sufficient to merely bring up the login UI.

Revision history for this message
Víctor R. Ruiz (vrruiz) wrote : Re: [Bug 1580195] Re: High CPU load on Payment screen

Thanks for confirming and investigate it, Selene!

Changed in canonical-devices-system-image:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Alejandro J. Cura (alecu)
dobey (dobey)
Changed in pay-service (Ubuntu):
importance: Undecided → High
dobey (dobey)
Changed in pay-service (Ubuntu):
assignee: nobody → Rodney Dawes (dobey)
dobey (dobey)
Changed in pay-service (Ubuntu):
status: Confirmed → In Progress
Changed in canonical-devices-system-image:
status: Confirmed → In Progress
milestone: none → 12
Changed in canonical-devices-system-image:
importance: Medium → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pay-service - 15.10+16.10.20160520-0ubuntu1

---------------
pay-service (15.10+16.10.20160520-0ubuntu1) yakkety; urgency=medium

  [ CI Train Bot ]
  * Resync trunk.

  [ Rodney Dawes ]
  * Add pep8 and pyflakes3 test rules. Clean up the warnings from pep8
    and pyflakes. (LP: #1421343)
  * Get rid of the glib usage entirely as we don't need it any more.
    Also remove the vendorized glib bindings. (LP: #1580195)
  * Use the ual API to get the icon path for the app for in-app
    purchases. (LP: #1582396)

  [ Timo Jyrinki ]
  * Stop depending on transitional packages. (LP: #1583079) Run wrap-
    and-sort -a -t on the packaging. (LP: #1583079)

 -- Rodney Dawes <email address hidden> Fri, 20 May 2016 14:27:32 +0000

Changed in pay-service (Ubuntu):
status: In Progress → Fix Released
dobey (dobey)
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
status: Fix Committed → 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.