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

crash in metrics gesture tracking #1116

Closed
incanus opened this issue Mar 26, 2015 · 6 comments
Closed

crash in metrics gesture tracking #1116

incanus opened this issue Mar 26, 2015 · 6 comments
Assignees
Labels
crash iOS Mapbox Maps SDK for iOS telemetry Integration with Mapbox Telemetry libraries
Milestone

Comments

@incanus
Copy link
Contributor

incanus commented Mar 26, 2015

Crashes are occurring inside of -[MGLMapView trackGestureEvent:forRecognizer:], probably compounded the extreme rapid-fire nature of them during pans and zooms.

This ticket tracks crashes related to mutation of objects during iteration.

@incanus incanus added iOS Mapbox Maps SDK for iOS crash labels Mar 26, 2015
@incanus incanus added this to the iOS Beta 1 milestone Mar 26, 2015
@incanus
Copy link
Contributor Author

incanus commented Mar 26, 2015

There are other lingering crashes in -[MGLMapView trackGestureEvent:forRecognizer:] as well, but let's knock out the above, which looks to me like a clear sign of non-threadsafety, first.

@bleege
Copy link
Contributor

bleege commented Mar 26, 2015

The first 2 crash reports from HockeyApp both give the following as the crash point:

10 UIKit 0x000000018aa6ba40 -[UIGestureRecognizer locationInView:] + 264
10 UIKit 0x000000018b25ba40 -[UIGestureRecognizer locationInView:] + 264

The final 3 crash reports all report:

We have determined that the link register (lr) is very likely to contain the return address of frame #0's calling function, and have inserted it into the crashing thread's backtrace as frame #1 to aid in analysis. This determination was made by applying a heuristic to determine whether the crashing function was likely to have created a new stack frame at the time of the crash.

@incanus
Copy link
Contributor Author

incanus commented Mar 26, 2015 via email

@bleege
Copy link
Contributor

bleege commented Mar 26, 2015

@incanus incanus added the telemetry Integration with Mapbox Telemetry libraries label Mar 26, 2015
@incanus
Copy link
Contributor Author

incanus commented Mar 27, 2015

Just about through with a large refactor here. The main cause of crashes here is that we are crossing access to _queue from both of our custom serial queues as well as the main UI thread.

@bleege
Copy link
Contributor

bleege commented Mar 27, 2015

keep-calm-and-don-t-cross-the-streams-6

incanus added a commit that referenced this issue Mar 27, 2015
fixes #1116: metrics stability & performance refactor
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crash iOS Mapbox Maps SDK for iOS telemetry Integration with Mapbox Telemetry libraries
Projects
None yet
Development

No branches or pull requests

2 participants