This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
Always call onSourceLoaded observers - #15548
Merged
Merged
Conversation
kkaefer
force-pushed
the
always-call-source-load-observers
branch
from
September 3, 2019 09:24
89afc63 to
861d5d6
Compare
pozdnyakov
approved these changes
Sep 3, 2019
springmeyer
approved these changes
Sep 4, 2019
springmeyer
left a comment
Contributor
There was a problem hiding this comment.
👍 confirmed that this fixes my downstream crash as well. Thank you @kkaefer !
This was referenced Sep 4, 2019
Contributor
|
I'm suspecting this fixed an issue that I was seeing on the Thread Sanitizer bot. I will bisect to double check. cc @pozdnyakov |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When no network requests have to be made because the TileJSON metadata is included inline in a style, we never triggered a
onSourceLoadcall. This PR adds calls.We found this by way of #15514. Here's what happened:
Sourceobject to thesourcescollection in the style to before we callloadDescription. In that call, however, we are mutating the implementation and updatingbaseImpl. Now, theimplpointer in the collection is out of date with the updatedimpl. If we never schedule aonSourceLoadeded, we never callsources.update(...)if no other sources are loaded, so the change is not picked up.onSourceLoadedevent.This PR includes and supersedes #15531.
After merge:
delay-source-loadbranch/cc @springmeyer