{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6901","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-native","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6901/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6901/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6901/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/6901","id":187152656,"number":6901,"title":"Crash adding annotation — -[MGLMapView visibleAnnotationsInRect:]","user":{"login":"bsudekum","id":1058624,"avatar_url":"https://avatars.githubusercontent.com/u/1058624?v=3","gravatar_id":"","url":"https://api.github.com/users/bsudekum","html_url":"https://github.com/bsudekum","followers_url":"https://api.github.com/users/bsudekum/followers","following_url":"https://api.github.com/users/bsudekum/following{/other_user}","gists_url":"https://api.github.com/users/bsudekum/gists{/gist_id}","starred_url":"https://api.github.com/users/bsudekum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsudekum/subscriptions","organizations_url":"https://api.github.com/users/bsudekum/orgs","repos_url":"https://api.github.com/users/bsudekum/repos","events_url":"https://api.github.com/users/bsudekum/events{/privacy}","received_events_url":"https://api.github.com/users/bsudekum/received_events","type":"User","site_admin":false},"labels":[{"id":377253830,"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/annotations","name":"annotations","color":"fbca04","default":false},{"id":173948013,"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/crash","name":"crash","color":"0052cc","default":false},{"id":92400707,"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/iOS","name":"iOS","color":"000000","default":false},{"id":425223096,"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/release%20blocker","name":"release blocker","color":"0e8a16","default":false}],"state":"closed","locked":false,"assignee":{"login":"boundsj","id":63186,"avatar_url":"https://avatars.githubusercontent.com/u/63186?v=3","gravatar_id":"","url":"https://api.github.com/users/boundsj","html_url":"https://github.com/boundsj","followers_url":"https://api.github.com/users/boundsj/followers","following_url":"https://api.github.com/users/boundsj/following{/other_user}","gists_url":"https://api.github.com/users/boundsj/gists{/gist_id}","starred_url":"https://api.github.com/users/boundsj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boundsj/subscriptions","organizations_url":"https://api.github.com/users/boundsj/orgs","repos_url":"https://api.github.com/users/boundsj/repos","events_url":"https://api.github.com/users/boundsj/events{/privacy}","received_events_url":"https://api.github.com/users/boundsj/received_events","type":"User","site_admin":false},"assignees":[{"login":"boundsj","id":63186,"avatar_url":"https://avatars.githubusercontent.com/u/63186?v=3","gravatar_id":"","url":"https://api.github.com/users/boundsj","html_url":"https://github.com/boundsj","followers_url":"https://api.github.com/users/boundsj/followers","following_url":"https://api.github.com/users/boundsj/following{/other_user}","gists_url":"https://api.github.com/users/boundsj/gists{/gist_id}","starred_url":"https://api.github.com/users/boundsj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boundsj/subscriptions","organizations_url":"https://api.github.com/users/boundsj/orgs","repos_url":"https://api.github.com/users/boundsj/repos","events_url":"https://api.github.com/users/boundsj/events{/privacy}","received_events_url":"https://api.github.com/users/boundsj/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/milestones/37","html_url":"https://github.com/mapbox/mapbox-gl-native/milestones/ios-v3.4.0","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/milestones/37/labels","id":1783804,"number":37,"title":"ios-v3.4.0","description":"The release will go through a series of alpha and beta versions until it reaches a stable state and is made generally available. In the alpha phase, we publish a version that have enough new features as to be useful for developers who would like to test and help report issues. In the beta phase, we've locked down most new feature development and are focused on stability issues. In general, after the first alpha, we aim to release a new alpha (or beta) version once per week.\r\n","creator":{"login":"friedbunny","id":1198851,"avatar_url":"https://avatars.githubusercontent.com/u/1198851?v=3","gravatar_id":"","url":"https://api.github.com/users/friedbunny","html_url":"https://github.com/friedbunny","followers_url":"https://api.github.com/users/friedbunny/followers","following_url":"https://api.github.com/users/friedbunny/following{/other_user}","gists_url":"https://api.github.com/users/friedbunny/gists{/gist_id}","starred_url":"https://api.github.com/users/friedbunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/friedbunny/subscriptions","organizations_url":"https://api.github.com/users/friedbunny/orgs","repos_url":"https://api.github.com/users/friedbunny/repos","events_url":"https://api.github.com/users/friedbunny/events{/privacy}","received_events_url":"https://api.github.com/users/friedbunny/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":202,"state":"open","created_at":"2016-05-23T22:50:20Z","updated_at":"2016-11-04T20:52:11Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-11-03T18:28:34Z","updated_at":"2016-11-04T20:52:11Z","closed_at":"2016-11-04T20:52:11Z","body":"<!--\r\nHello and thanks for contributing! To help us diagnose your problem quickly, please:\r\n\r\n - Include a minimal demonstration of the bug, including code, logs, and screenshots.\r\n - Ensure you can reproduce the bug using the latest release.\r\n - Only post to report a bug or request a feature; direct all other questions to: https://stackoverflow.com/questions/tagged/mapbox\r\n-->\r\n\r\n**Platform: iOS**\r\n**Mapbox SDK version: 3.4.0-beta.2**\r\n\r\n### Steps to trigger behavior\r\n\r\n 1. Add annotation\r\n\r\n### Expected behavior\r\n\r\nThe annotation is added\r\n\r\n### Actual behavior\r\n\r\nThe app crashes with\r\n\r\n```\r\nMapbox`::-[MGLMapView visibleAnnotationsInRect:](CGRect):\r\n    0x1041d487b <+0>:   pushq  %rbp\r\n    0x1041d487c <+1>:   movq   %rsp, %rbp\r\n    0x1041d487f <+4>:   pushq  %r15\r\n    0x1041d4881 <+6>:   pushq  %r14\r\n    0x1041d4883 <+8>:   pushq  %r13\r\n    0x1041d4885 <+10>:  pushq  %r12\r\n    0x1041d4887 <+12>:  pushq  %rbx\r\n    0x1041d4888 <+13>:  subq   $0x68, %rsp\r\n    0x1041d488c <+17>:  movq   %rdi, %rbx\r\n    0x1041d488f <+20>:  movq   0x6b860a(%rip), %r14      ; MGLMapView._annotationContextsByAnnotationTag\r\n    0x1041d4896 <+27>:  xorl   %r15d, %r15d\r\n    0x1041d4899 <+30>:  cmpq   $0x0, 0x18(%rbx,%r14)\r\n    0x1041d489f <+36>:  je     0x1041d4a19               ; <+414> at MGLMapView.mm:2847\r\n    0x1041d48a5 <+42>:  leaq   0x10(%rbp), %rax\r\n    0x1041d48a9 <+46>:  movq   0x6b6c40(%rip), %rdx      ; \"annotationTagsInRect:\"\r\n    0x1041d48b0 <+53>:  movq   0x18(%rax), %rcx\r\n    0x1041d48b4 <+57>:  movq   %rcx, 0x18(%rsp)\r\n    0x1041d48b9 <+62>:  movq   0x10(%rax), %rcx\r\n    0x1041d48bd <+66>:  movq   %rcx, 0x10(%rsp)\r\n    0x1041d48c2 <+71>:  movq   (%rax), %rcx\r\n    0x1041d48c5 <+74>:  movq   0x8(%rax), %rax\r\n    0x1041d48c9 <+78>:  movq   %rax, 0x8(%rsp)\r\n    0x1041d48ce <+83>:  movq   %rcx, (%rsp)\r\n    0x1041d48d2 <+87>:  leaq   -0x40(%rbp), %rdi\r\n    0x1041d48d6 <+91>:  movq   %rbx, %rsi\r\n    0x1041d48d9 <+94>:  callq  0x1047def90               ; symbol stub for: objc_msgSend_stret\r\n    0x1041d48de <+99>:  movq   -0x40(%rbp), %rdi\r\n    0x1041d48e2 <+103>: movq   -0x38(%rbp), %rdx\r\n    0x1041d48e6 <+107>: subq   %rdi, %rdx\r\n    0x1041d48e9 <+110>: sarq   $0x2, %rdx\r\n    0x1041d48ed <+114>: je     0x1041d49ee               ; <+371> [inlined] std::__1::__vector_base<unsigned int, std::__1::allocator<unsigned int> >::~__vector_base() + 6 at vector:457\r\n    0x1041d48f3 <+120>: movq   0x6b7c9e(%rip), %rdi      ; (void *)0x0000000106040cd0: NSMutableArray\r\n    0x1041d48fa <+127>: movq   0x6b5cd7(%rip), %rsi      ; \"arrayWithCapacity:\"\r\n    0x1041d4901 <+134>: callq  *0x697311(%rip)           ; (void *)0x0000000105494ac0: objc_msgSend\r\n    0x1041d4907 <+140>: movq   %rax, %rdi\r\n    0x1041d490a <+143>: callq  0x1047defb4               ; symbol stub for: objc_retainAutoreleasedReturnValue\r\n    0x1041d490f <+148>: movq   %rax, -0x58(%rbp)\r\n    0x1041d4913 <+152>: movq   -0x40(%rbp), %r13\r\n    0x1041d4917 <+156>: movq   -0x38(%rbp), %rax\r\n    0x1041d491b <+160>: movq   %rax, -0x60(%rbp)\r\n    0x1041d491f <+164>: cmpq   %rax, %r13\r\n    0x1041d4922 <+167>: je     0x1041d49c8               ; <+333> at MGLMapView.mm:2843\r\n    0x1041d4928 <+173>: addq   %r14, %rbx\r\n    0x1041d492b <+176>: movq   %rbx, -0x68(%rbp)\r\n    0x1041d492f <+180>: movq   %rbx, %rdi\r\n    0x1041d4932 <+183>: movq   %r13, %rsi\r\n    0x1041d4935 <+186>: callq  0x1041e73f0               ; std::__1::unordered_map<unsigned int, MGLAnnotationContext, std::__1::hash<unsigned int>, std::__1::equal_to<unsigned int>, std::__1::allocator<std::__1::pair<unsigned int const, MGLAnnotationContext> > >::operator[] at unordered_map:1531\r\n    0x1041d493a <+191>: movq   %rax, %r12\r\n    0x1041d493d <+194>: movq   (%r12), %rdi\r\n    0x1041d4941 <+198>: movq   0x6972e8(%rip), %rax      ; (void *)0x0000000105491cb0: objc_retain\r\n    0x1041d4948 <+205>: movq   %rax, %rbx\r\n    0x1041d494b <+208>: callq  *%rbx\r\n    0x1041d494d <+210>: movq   %rax, -0x50(%rbp)\r\n    0x1041d4951 <+214>: movq   0x8(%r12), %rdi\r\n    0x1041d4956 <+219>: callq  *%rbx\r\n    0x1041d4958 <+221>: movq   %rax, -0x48(%rbp)\r\n    0x1041d495c <+225>: movq   0x10(%r12), %rdi\r\n    0x1041d4961 <+230>: callq  *%rbx\r\n    0x1041d4963 <+232>: movq   %rax, %r14\r\n    0x1041d4966 <+235>: movq   0x18(%r12), %rdi\r\n    0x1041d496b <+240>: callq  *%rbx\r\n    0x1041d496d <+242>: movq   %rax, %r15\r\n    0x1041d4970 <+245>: movq   0x20(%r12), %rdi\r\n    0x1041d4975 <+250>: callq  *%rbx\r\n    0x1041d4977 <+252>: movq   %rax, %rbx\r\n    0x1041d497a <+255>: movq   -0x58(%rbp), %rdi\r\n    0x1041d497e <+259>: movq   0x6b5893(%rip), %rsi      ; \"addObject:\"\r\n    0x1041d4985 <+266>: movq   -0x50(%rbp), %r12\r\n    0x1041d4989 <+270>: movq   %r12, %rdx\r\n    0x1041d498c <+273>: callq  *0x697286(%rip)           ; (void *)0x0000000105494ac0: objc_msgSend\r\n->  0x1041d4992 <+279>: movq   %rbx, %rdi\r\n    0x1041d4995 <+282>: movq   0x69728c(%rip), %rax      ; (void *)0x0000000105491d20: objc_release\r\n    0x1041d499c <+289>: movq   %rax, %rbx\r\n    0x1041d499f <+292>: callq  *%rbx\r\n    0x1041d49a1 <+294>: movq   %r15, %rdi\r\n    0x1041d49a4 <+297>: callq  *%rbx\r\n    0x1041d49a6 <+299>: movq   %r14, %rdi\r\n    0x1041d49a9 <+302>: callq  *%rbx\r\n    0x1041d49ab <+304>: movq   -0x48(%rbp), %rdi\r\n    0x1041d49af <+308>: callq  *%rbx\r\n    0x1041d49b1 <+310>: movq   %r12, %rdi\r\n    0x1041d49b4 <+313>: callq  *%rbx\r\n    0x1041d49b6 <+315>: addq   $0x4, %r13\r\n    0x1041d49ba <+319>: cmpq   %r13, -0x60(%rbp)\r\n    0x1041d49be <+323>: movq   -0x68(%rbp), %rbx\r\n    0x1041d49c2 <+327>: jne    0x1041d492f               ; <+180> at MGLMapView.mm:2839\r\n    0x1041d49c8 <+333>: movq   0x6b5851(%rip), %rsi      ; \"copy\"\r\n    0x1041d49cf <+340>: movq   -0x58(%rbp), %rbx\r\n    0x1041d49d3 <+344>: movq   %rbx, %rdi\r\n    0x1041d49d6 <+347>: callq  *0x69723c(%rip)           ; (void *)0x0000000105494ac0: objc_msgSend\r\n    0x1041d49dc <+353>: movq   %rax, %r15\r\n    0x1041d49df <+356>: movq   %rbx, %rdi\r\n    0x1041d49e2 <+359>: callq  *0x697240(%rip)           ; (void *)0x0000000105491d20: objc_release\r\n    0x1041d49e8 <+365>: movq   -0x40(%rbp), %rdi\r\n    0x1041d49ec <+369>: jmp    0x1041d49f1               ; <+374> [inlined] std::__1::__vector_base<unsigned int, std::__1::allocator<unsigned int> >::~__vector_base() + 9 at vector:457\r\n    0x1041d49ee <+371>: xorl   %r15d, %r15d\r\n    0x1041d49f1 <+374>: testq  %rdi, %rdi\r\n    0x1041d49f4 <+377>: je     0x1041d4a19               ; <+414> at MGLMapView.mm:2847\r\n    0x1041d49f6 <+379>: movq   -0x38(%rbp), %rax\r\n    0x1041d49fa <+383>: cmpq   %rdi, %rax\r\n    0x1041d49fd <+386>: je     0x1041d4a14               ; <+409> [inlined] std::__1::__deallocate(void*) at memory:1722\r\n    0x1041d49ff <+388>: leaq   -0x4(%rax), %rcx\r\n    0x1041d4a03 <+392>: subq   %rdi, %rcx\r\n    0x1041d4a06 <+395>: notq   %rcx\r\n    0x1041d4a09 <+398>: andq   $-0x4, %rcx\r\n    0x1041d4a0d <+402>: addq   %rax, %rcx\r\n    0x1041d4a10 <+405>: movq   %rcx, -0x38(%rbp)\r\n    0x1041d4a14 <+409>: callq  0x1047df542               ; symbol stub for: operator delete(void*)\r\n    0x1041d4a19 <+414>: movq   %r15, %rdi\r\n    0x1041d4a1c <+417>: addq   $0x68, %rsp\r\n    0x1041d4a20 <+421>: popq   %rbx\r\n    0x1041d4a21 <+422>: popq   %r12\r\n    0x1041d4a23 <+424>: popq   %r13\r\n    0x1041d4a25 <+426>: popq   %r14\r\n    0x1041d4a27 <+428>: popq   %r15\r\n    0x1041d4a29 <+430>: popq   %rbp\r\n    0x1041d4a2a <+431>: jmp    0x1047def24               ; symbol stub for: objc_autoreleaseReturnValue\r\n    0x1041d4a2f <+436>: movq   %rax, %r13\r\n    0x1041d4a32 <+439>: jmp    0x1041d4a5b               ; <+480> at MGLMapView.mm:2844\r\n    0x1041d4a34 <+441>: movq   %rax, %r13\r\n    0x1041d4a37 <+444>: movq   %rbx, %rdi\r\n    0x1041d4a3a <+447>: movq   0x6971e7(%rip), %rax      ; (void *)0x0000000105491d20: objc_release\r\n    0x1041d4a41 <+454>: movq   %rax, %rbx\r\n    0x1041d4a44 <+457>: callq  *%rbx\r\n    0x1041d4a46 <+459>: movq   %r15, %rdi\r\n    0x1041d4a49 <+462>: callq  *%rbx\r\n    0x1041d4a4b <+464>: movq   %r14, %rdi\r\n    0x1041d4a4e <+467>: callq  *%rbx\r\n    0x1041d4a50 <+469>: movq   -0x48(%rbp), %rdi\r\n    0x1041d4a54 <+473>: callq  *%rbx\r\n    0x1041d4a56 <+475>: movq   %r12, %rdi\r\n    0x1041d4a59 <+478>: callq  *%rbx\r\n    0x1041d4a5b <+480>: movq   -0x58(%rbp), %rdi\r\n    0x1041d4a5f <+484>: callq  *0x6971c3(%rip)           ; (void *)0x0000000105491d20: objc_release\r\n    0x1041d4a65 <+490>: movq   -0x40(%rbp), %rdi\r\n    0x1041d4a69 <+494>: testq  %rdi, %rdi\r\n    0x1041d4a6c <+497>: je     0x1041d4a91               ; <+534> at new:176\r\n    0x1041d4a6e <+499>: movq   -0x38(%rbp), %rax\r\n    0x1041d4a72 <+503>: cmpq   %rdi, %rax\r\n    0x1041d4a75 <+506>: je     0x1041d4a8c               ; <+529> [inlined] std::__1::__deallocate(void*) at memory:1722\r\n    0x1041d4a77 <+508>: leaq   -0x4(%rax), %rcx\r\n    0x1041d4a7b <+512>: subq   %rdi, %rcx\r\n    0x1041d4a7e <+515>: notq   %rcx\r\n    0x1041d4a81 <+518>: andq   $-0x4, %rcx\r\n    0x1041d4a85 <+522>: addq   %rax, %rcx\r\n    0x1041d4a88 <+525>: movq   %rcx, -0x38(%rbp)\r\n    0x1041d4a8c <+529>: callq  0x1047df542               ; symbol stub for: operator delete(void*)\r\n    0x1041d4a91 <+534>: movq   %r13, %rdi\r\n    0x1041d4a94 <+537>: callq  0x1047df2c0               ; symbol stub for: _Unwind_Resume\r\n    0x1041d4a99 <+542>: movq   %rax, %r13\r\n    0x1041d4a9c <+545>: jmp    0x1041d4a65               ; <+490> [inlined] std::__1::__vector_base<unsigned int, std::__1::allocator<unsigned int> >::~__vector_base() at vector:457\r\n    0x1041d4a9e <+547>: jmp    0x1041d4a2f               ; <+436> at MGLMapView.mm:2847\r\n\r\n```\r\n\r\nRelated https://github.com/mapbox/mapbox-gl-native/pull/6061\r\n\r\n/cc @boundsj \r\n"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/258544355","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/6901#issuecomment-258544355","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/6901","id":258544355,"user":{"login":"boundsj","id":63186,"avatar_url":"https://avatars.githubusercontent.com/u/63186?v=3","gravatar_id":"","url":"https://api.github.com/users/boundsj","html_url":"https://github.com/boundsj","followers_url":"https://api.github.com/users/boundsj/followers","following_url":"https://api.github.com/users/boundsj/following{/other_user}","gists_url":"https://api.github.com/users/boundsj/gists{/gist_id}","starred_url":"https://api.github.com/users/boundsj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boundsj/subscriptions","organizations_url":"https://api.github.com/users/boundsj/orgs","repos_url":"https://api.github.com/users/boundsj/repos","events_url":"https://api.github.com/users/boundsj/events{/privacy}","received_events_url":"https://api.github.com/users/boundsj/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T20:52:11Z","updated_at":"2016-11-04T20:52:11Z","body":"This was fixed in https://github.com/mapbox/mapbox-gl-native/pull/6924 that is currently in the 3.4.0 release branch and will be in the next iOS beta for 3.4.0."}}
{"actor":{"display_login":"boundsj"}}