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 when transitioning class changes #794

Closed

Description

@ljbade

If I set setDefaultTransitionDuration before calling setClasses I get a crash:

01-30 11:52:33.113      274-274/? I/DEBUG﹕ #00  pc 0010fc20  /data/app-lib/com.mapbox.mapboxgl.app-2/libmapbox-gl.so (mbgl::StyleLayer::setClasses(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, unsigned long long, mbgl::PropertyTransition const&)+604)
01-30 11:52:33.113      274-274/? I/DEBUG﹕ #01  pc 001101bc  /data/app-lib/com.mapbox.mapboxgl.app-2/libmapbox-gl.so (mbgl::StyleLayer::applyClassProperties(mbgl::ClassID, std::__1::set<mbgl::PropertyKey, std::__1::less<mbgl::PropertyKey>, std::__1::allocator<mbgl::PropertyKey> >&, unsigned long long, mbgl::PropertyTransition const&)+1336)

/cc @incanus

Activity

  1. incanus commented on Jan 30, 2015

    @incanus
    Contributor

    This API may be rusty; I will add it to the iOS app and poke at this a bit soon.

  2. added this to the milestone on Feb 17, 2015
  3. bleege commented on Aug 19, 2015

    @bleege
    Contributor

    @ljbade Is this still an issue or can we close this?

  4. added
    Android
    on Aug 20, 2015
  5. ljbade commented on Aug 20, 2015

    @ljbade
    ContributorAuthor

    I need to test this. We haven't used the classes stuff for a while on Android.

  6. bleege commented on Aug 26, 2015

    @bleege
    Contributor

    @ljbade K. I'll move this to android-v0.2.0 for future 👀 .

  7. modified the milestones: , android-v0.1.0 on Aug 26, 2015
  8. removed this from the android-v2.2.0 milestone on Oct 28, 2015
  9. 3 remaining items

  10. ljbade commented on Oct 30, 2015

    @ljbade
    ContributorAuthor

    Related to #1744 and #2077

  11. ljbade commented on Oct 30, 2015

    @ljbade
    ContributorAuthor

    @jfirebaugh Do any of the mapbox-gl-styles still have classes I can use to test these functions?

    If not, are classes going to be removed from the style spec? If that is the case I might as well just remove these functions.

  12. jfirebaugh commented on Oct 30, 2015

    @jfirebaugh
    Contributor

    I don't think any mapbox-gl-styles styles have classes. You can create a small test style that transitions say background-color to test this though.

    We're not sure what the long term future of style classes is yet. We'll need to have a full Style API in native before we can make the call one way or the other.

  13. modified the milestones: android-v2.3.0, on Dec 4, 2015
  14. tobrun commented on Jan 11, 2016

    @tobrun
    Member

    I have played around with this API and I believe it's broken.

    If I run the testapp with MAPBOX_STREETS style and call getStyleClasses(), I'm returned a empty list.
    I checked if setStylesClasses with duration is still throwing an exception and it still does.

    @bleege

    • Is there a backstory/reason for this API?
    • If not, can we remove it?
  15. tobrun commented on Jan 11, 2016

    @tobrun
    Member

    @bleege I have found this issue, making this API obsolete. Closing down.

  16. bleege commented on Jan 11, 2016

    @bleege
    Contributor

    👍

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

    Androidbugcrash

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions