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

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

Closed
RomainQuidet opened this issue Sep 12, 2017 · 2 comments
Closed

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

RomainQuidet opened this issue Sep 12, 2017 · 2 comments
Labels
iOS Mapbox Maps SDK for iOS

Comments

@RomainQuidet
Copy link
Contributor

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

@tobrun tobrun added the iOS Mapbox Maps SDK for iOS label Sep 12, 2017
@boundsj
Copy link
Contributor

boundsj commented Oct 13, 2017

This sounds like #8755 that should have been fixed by #9025 that was released in https://github.com/mapbox/mapbox-gl-native/releases/tag/ios-v3.6.0. Since you say above you are using Mapbox iOS Maps SDK v3.5.2, can you please update to the latest version that is currently v3.6.4

@RomainQuidet
Copy link
Contributor Author

Hi,
We've updated to 3.6.4. I'll see if it solves the issue !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

3 participants