You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
The backtrace is not very helpful because lambdas. Manually keeping track of function calls I found out that the crash has something to do with recursion.
The issue lies on calling view.notifyMapChange(isAnimated ? MapChangeRegionDidChangeAnimated : MapChangeRegionDidChange); that depending on what the client is doing, can cause the recursion.
As a rule, MGLMapView responds to these notifications by calling out to the main thread asynchronously, avoiding any recursion. Maybe we can put in a guard of some sort to fail sooner instead of crashing this way.
As a rule, MGLMapView responds to these notifications by calling out to the main thread asynchronously, avoiding any recursion. Maybe we can put in a guard of some sort to fail sooner instead of crashing this way.
The problem of responding this async is that if you wanna paint things on top of the map in sync with the transform, you are always going to be one frame behind.
Activity
tmpsantos commentedon Jan 19, 2016
The backtrace is not very helpful because lambdas. Manually keeping track of function calls I found out that the crash has something to do with recursion.
The usually looks like:
But when it crashes, what I get is:
So
easeTois callingsetLatLngwhich calleaseToagain. Possibly invalidating the state set bysetScale.tmpsantos commentedon Jan 19, 2016
The issue lies on calling
view.notifyMapChange(isAnimated ? MapChangeRegionDidChangeAnimated : MapChangeRegionDidChange);that depending on what the client is doing, can cause the recursion.1ec5 commentedon Jan 19, 2016
As a rule, MGLMapView responds to these notifications by calling out to the main thread asynchronously, avoiding any recursion. Maybe we can put in a guard of some sort to fail sooner instead of crashing this way.
tmpsantos commentedon Jan 19, 2016
The problem of responding this async is that if you wanna paint things on top of the map in sync with the transform, you are always going to be one frame behind.
tmpsantos commentedon Jan 29, 2016
Closing as it was mostly an API misuse from my side.
1ec5 commentedon Jan 29, 2016
What explains the failure on Travis, then? Has that crash appeared since?
tmpsantos commentedon Jan 29, 2016
I've not seen this one on Travis again.
I ran the utests literally thousand times trying to reproduce without success. We can re-open if we ever see it again.