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.

Crash switching styles in iOS demo app #1072

Closed

Description

@1ec5

#1022 introduced a serious regression. The iOS demo app now crashes every time you switch styles:

#4    0x000000010f3a2303 in mbgl::Map::start(bool) at /Users/mxn/hub/mapbox-gl-native/src/mbgl/map/map.cpp:117
#5    0x000000010f617fe6 in -[MGLMapView setStyleURL:] at /Users/mxn/hub/mapbox-gl-native/platform/ios/MGLMapView.mm:208
#6    0x000000010f626e80 in -[MGLMapView useBundledStyleNamed:] at /Users/mxn/hub/mapbox-gl-native/platform/ios/MGLMapView.mm:1148
#7    0x000000010f2fc006 in -[MBXViewController cycleStyles] at /Users/mxn/hub/mapbox-gl-native/ios/app/MBXViewController.mm:204

This assertion fails because mode is Continuous:

assert(mode == Mode::None);

Activity

  1. added
    iOS
    on Mar 23, 2015
  2. added this to the iOS Beta 1 milestone on Mar 23, 2015
  3. tmpsantos commented on Mar 23, 2015

    @tmpsantos
    Contributor
  4. 1ec5 commented on Mar 24, 2015

    @1ec5
    ContributorAuthor

    #1073 doesn’t fix this crash, unfortunately.

  5. modified the milestones: iOS Beta 2, iOS Beta 1 on Mar 24, 2015
  6. 1ec5 commented on Mar 24, 2015

    @1ec5
    ContributorAuthor

    I keep forgetting we’re planning on omitting style switching from beta 1 (#1031). So this goes on beta 2, I guess, but it’s quite severe nonetheless.

  7. incanus commented on Mar 24, 2015

    @incanus
    Contributor

    Pretty sure I got this in #1077.

  8. kkaefer commented on Mar 24, 2015

    @kkaefer
    Member

    Issue here is that MGLMapView setStyleURL: calls start, which it shouldn't.

  9. incanus commented on Mar 24, 2015

    @incanus
    Contributor

    Yep, this was outdated. Fixed in fb41d0c.

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

    crashiOS

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions