Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Map stops updating after a second map is displayed #4119

Closed

Description

@millenbop

In the latest release for iOS, it seems like the maps only work when a single instance is used. If you put one map in one UIViewController, and another map in another UIViewController, and load/display them both using a UITabBarController, the maps don't update anymore or very very seldom. Just looking at a map at a time seems to work fine, but as soon as two instances are in memory it seems like they stop working properly.

Using version 3.1.2, static library.

Activity

  1. millenbop commented on Feb 26, 2016

    @millenbop
    Author

    Downgraded to 3.1.0 and seems like the bug is present there too.

  2. millenbop commented on Feb 26, 2016

    @millenbop
    Author

    3.0.1 works fine, integrated using cocoapods.

  3. added
    iOS
    on Feb 27, 2016
  4. millenbop commented on Mar 14, 2016

    @millenbop
    Author

    This bug still exists in ios-v3.2.0-pre.2

  5. added this to the ios-v3.2.0 milestone on Mar 14, 2016
  6. 1ec5 commented on Mar 17, 2016

    @1ec5
    Contributor

    Looks like #3448 didn’t completely address #3130 (a regression introduced in #2922). I think #2985 (comment) will be a much more robust fix. Let’s track the issue there.

  7. reopened this on Mar 28, 2016
  8. removed this from the ios-v3.2.0 milestone on Mar 28, 2016
  9. 1ec5 commented on Mar 28, 2016

    @1ec5
    Contributor

    After a second look at this issue, I’m not sure #2985 is related. I tried rigging iosapp (which uses the dynamic framework) to display two tabs, an MGLMapView in each. The maps appear to redraw at a normal rate. Is there anything unusual about your setup?

  10. picciano commented on Mar 28, 2016

    @picciano

    This has been a huge issue for us once a second map is displayed. Note that it only seems to happen when using a physical device...the iOS simulator seems unaffected.

  11. 1ec5 commented on Mar 28, 2016

    @1ec5
    Contributor

    Hm, I’ve been testing on an iPhone 6 running iOS 9.3. I’ll keep looking into this.

  12. added this to the ios-v3.2.0 milestone on Mar 28, 2016
  13. millenbop commented on Mar 29, 2016

    @millenbop
    Author

    For me it works now (tried with 3.2.0-beta.2) so it appears to have been fixed somewhere sometime. @picciano have you tried one of the latest beta versions?

  14. vkurchatkin commented on Mar 29, 2016

    @vkurchatkin
    Contributor

    @millenbop works for us as well

  15. picciano commented on Mar 29, 2016

    @picciano

    I would have to agree. 3.2.0 beta 2 has resolved the issue.

    We had been seeing CPU loads between 40 and 80% with peaks to 141%.
    Now the same test show the CPU between 0 and 2% with peaks up to 5%.

    Phone no longer get hot to the touch.

  16. 1ec5 commented on Mar 29, 2016

    @1ec5
    Contributor

    Between 3.2.0-pre.2 and 3.2.0-beta.2, we mostly merged changes related to offline maps. I had been expecting #3448, which made it into ios-v3.1.0-pre.1, to fix the excessive CPU usage at the risk of potentially failing to update. But perhaps this was just another symptom of allowing CADisplayLink to run amok. Otherwise, maybe having multiple map views loaded is a red herring: #4368 fixed a regression related to exponential backoff when there’s clock skew from the server.

    Closing for now. If you do see this issue again, please chime in. A sample project that reproduces the issue would help us narrow down the issue further.

  17. millenbop commented on Mar 29, 2016

    @millenbop
    Author

    Thanks for fixing! One way or another :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugiOS

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions