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.

iOS app crashes while loading specific image for annotation #1936

Closed

Description

@andrewstay

Please load images attached as MGLAnnotationImage.
Application crashes with util::SpriteImageException("Sprite image pixel count mismatch")

blue-cafe
blue-cafe 2x

Activity

  1. incanus commented on Jul 28, 2015

    @incanus
    Contributor
  2. friedbunny commented on Jul 31, 2015

    @friedbunny
    Contributor

    Sprite image pixel count mismatch is actually a fairly accurate error message in this case: the image sizes aren't matched.

    @andrewstay, your @2x image is 55x79, when it should be an exact doubling of the 28x40 @1x image. Resizing the @2x resource to 56x80 fixes this.

    @kkaefer I'm not sure how much wiggle room we have here in regards to sprite dimensions, is this something that can/should be made more lenient?

  3. yaalaa commented on Aug 19, 2015

    @yaalaa

    shame on mapbox-gl-native

  4. 1ec5 commented on Aug 29, 2015

    @1ec5
    Contributor

    Tracking a fix in #2198 now.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions