smartscopesproxy uses a lot of CPU with bad internet

Bug #1496875 reported by Michael Terry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-scopes-api (Ubuntu)
Incomplete
High
Marcus Tomlinson

Bug Description

I have a prepaid 3G SIM card that has no data left on it. When I use the latest phone image, I see reliable spikes of CPU from smartscopesproxy every now and then. It will spike for a few seconds. Then die down for a few seconds. Then repeat.

If I connect to wifi, it stops. So it seems like it just couldn't handle the "fake" internet that was being provided by my SIM carrier. It was returning results, just not the real results.

I'm guessing the same thing would happen in coffee-shop or hotel wifi before you log into it.

current build number: 113
device name: mako
channel: ubuntu-touch/rc-proposed/bq-aquaris.en
last update: 2015-09-16 14:21:58
version version: 113
version ubuntu: 20150916
version device: 20150911
version custom: mako-1.1

Changed in unity-scopes-api (Ubuntu):
importance: Undecided → High
Revision history for this message
Michi Henning (michihenning) wrote :

Might be the SSS re-trying to reach the remote server. We should look at the re-try logic to see if we need to back off somewhere.

Changed in unity-scopes-api (Ubuntu):
assignee: nobody → Marcus Tomlinson (marcustomlinson)
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Ok so I can reproduce this issue flawlessly by connecting to a subscription hotspot nearby and refreshing any remote scope (In fact there seems to generally be high CPU usage spikes coming from the smartscopesproxy process even on a working wifi spot). This is on the mako with:

build: 113
channel: ubuntu-touch/rc-proposed/bq-aquaris.en

I then upgraded to:

build: 115
channel: ubuntu-touch/rc-proposed/bq-aquaris.en

and didn't see the issue anymore. The smartscopesproxy process seemed to work fine with no excessive CPU usage. However, I did see a completely new issue: https://bugs.launchpad.net/ubuntu/+source/android/+bug/1497167. Perhaps this masked smartscopesproxy's usage? Not sure.

Then I flashed my BQ with the latest image from ubuntu-touch/rc-proposed/bq-aquaris.en:

current build number: 127
device name: krillin
channel: ubuntu-touch/rc-proposed/bq-aquaris.en
last update: 2015-09-18 04:54:49
version version: 127
version ubuntu: 20150918
version device: 20150821-736d127
version custom: 20150821-887-33-32-vivid

I tried the same test and did not experience any excessive CPU usage from smartscopesproxy. I checked the version of libunity-scopes3 on both the mako 113 and krillin 127, and both are at 0.6.19+15.04.20150724.3-0ubuntu1.

So to me this looks to be a mako specific problem. The same version of smartscopesproxy is on both devices, yet on the mako it seems to eat the CPU like crazy.

Changed in unity-scopes-api (Ubuntu):
status: New → Incomplete
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.