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.

MGLAnnotationView's annotation property is nil -> crash #9974

@RomainQuidet

Description

@RomainQuidet

Platform: iOS 10
Mapbox SDK version: 3.5.2

We can't reproduce this problem on our own, but we've got some crashes from our users.
It states that the AnnotationView's annotation property is nil. We do not touch this property in our app, so the bug lies in the SDK.

Incident Identifier: 04251B85-3F09-4A8D-9C7E-00F0FA54F776
CrashReporter Key: A33FBC0F-4D3D-4724-B3A0-3DF19D7F504B
Hardware Model: iPhone5,3
Process: Mappy [713]
Path: /var/containers/Bundle/Application/B9D4AA2F-82E9-44A4-A2EB-DAB2BBEA8F3A/Mappy.app/Mappy
Identifier: com.mappy.Mappy
Version: 6.1734.1 (6.1734.1.2)
Code Type: ARM
Parent Process: ??? [1]

Date/Time: 2017-08-24T09:40:56Z
Launch Time: 2017-08-24T09:37:09Z
OS Version: iPhone OS 10.3.3 (14G60)
Report Version: 104

Exception Type: SIGABRT
Exception Codes: #0 at 0x1d431acc
Crashed Thread: 0

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Annotation view's annotation property should not be nil.'

Last Exception Backtrace:
0 CoreFoundation 0x1dc63b3d __exceptionPreprocess + 129
1 libobjc.A.dylib 0x1ceeb067 objc_exception_throw + 36
2 CoreFoundation 0x1dc63a85 +[NSException raise:format:] + 106
3 Mappy 0x00ee2f21 std::__1::unordered_map<unsigned int, MGLAnnotationContext, std::__1::hash, std::__1::equal_to, std::__1::allocator<std::__1::pair<unsigned int const, MGLAnnotationContext> > >::at(unsigned int const&) + 1282
4 Mappy 0x00ee4f7f std::__1::unordered_map<unsigned int, MGLAnnotationContext, std::__1::hash, std::__1::equal_to, std::__1::allocator<std::__1::pair<unsigned int const, MGLAnnotationContext> > >::at(unsigned int const&) + 9568
5 UIKit 0x2301d5e1 -[UIGestureRecognizer _shouldBegin] + 930
6 UIKit 0x22ec541b -[UIGestureRecognizer setState:] + 220

Metadata

Metadata

Assignees

No one assigned

    Labels

    iOSMapbox Maps SDK for iOS

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions