Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: 100% CPU usage (3.0 iOS SDK)

  1. #1
    Etablierter skobbler
    Join Date
    27.06.2016
    Posts
    30

    100% CPU usage (3.0 iOS SDK)

    I'm using the Skobbler 3.0 beta SDK (not sure if this existed in prior versions). When I launch the app and initialize the Skobbler SDK, CPU is pegged at 100%.

    From a cold launch, this is what it's doing:

    Screenshot 2016-06-27 15.33.04.jpg


    Scrolling down, you can see that one thread is doing most of the work...

    Screenshot 2016-06-27 15.33.08.jpg

    Profiling this in instruments, looks like there is a ton of lock/unlock of a thread mutex:

    Screenshot 2016-06-27 15.26.41.jpg

    This seems to be related to the Traffic Manager class.

    Thanks in advance.

  2. #2
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    thank you for reporting this- we've reported this to our dev team for further investigation

  3. #3
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    We couldn't reproduce this issue with the latest 3.0 traffic build. CPU usage goes to about 50-60% maximum when initializing the framework for less then a second, but then it drops to 0% if no interaction is present from the user. I've sent today the latest traffic build to Keith, please test again and let us know if you're still experiencing this.

  4. #4
    Etablierter skobbler
    Join Date
    27.06.2016
    Posts
    30
    Hi Andela,

    Thanks for the update. We updated the Skobbler SDK to this most recent version and are unfortunately still experiencing the same CPU Load.

  5. #5
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    Please send us more information about this issue: steps to reproduce, environment, devices and a video (if possible) Thank you.

  6. #6
    Etablierter skobbler
    Join Date
    27.06.2016
    Posts
    30
    I've made a video showing the issue:

    https://dl.dropboxusercontent.com/u/...-CPU-Usage.mp4

    Here's a link to the Instruments trace:

    https://dl.dropboxusercontent.com/u/...Maps.trace.zip


    This is running on an iPhone 6 device, in Debug build configuration. The only thing that we do is initialize Skobbler and we get this behavior. Here's the relevant initialization code:

    Code:
    - (void)initializeSkobblerSDK {
        SKMapsInitSettings* initSettings = [[SKMapsInitSettings alloc] init];
        initSettings.mapDetailLevel = SKMapDetailLevelFull;
    
        
        [[SKMapsService sharedInstance] initializeSKMapsWithAPIKey:kValueSkobblerKey settings:initSettings];
        [[SKPositionerService sharedInstance] setDelegate:self];
        [[SKPositionerService sharedInstance] startLocationUpdate];
        [SKMapsService sharedInstance].mapsVersioningManager.delegate = self;
        [SKRoutingService sharedInstance];
        [SKTDownloadManager sharedInstance];
    
        CLLocationCoordinate2D currentLocation = [[SKPositionerService sharedInstance] currentCoordinate];
        [self setCurrentLocation:currentLocation];
    }

  7. #7
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    Thank you - we'll investigate this again and send you the feedback asap

  8. #8
    Etablierter skobbler
    Join Date
    27.06.2016
    Posts
    30
    Any update on this?

  9. #9
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    Not yet. We'll let you know when we have updates.

  10. #10
    Oberskobbler
    Join Date
    22.07.2014
    Posts
    399
    When initializing the service and displaying a map, the CPU usage does not exceed 60% on 6s Plus, but can go up to 90% on an iPhone 5 for a brief moment.
    Our developer has also used Time Profiler, but the trace looks normal, with no mutex locks and unlocks (see the DemoProjectTrace image)
    Can you please let us know if the main screen of your app contains a map view?

    DemoProjectTrace.jpg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •