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

[core] Update glyph requestors _before_ requesting from file source #10153

Merged
merged 2 commits into from
Oct 9, 2017

Conversation

brunoabinader
Copy link
Member

If the file source request happens immediately (e.g. when obtaining from a memory cache), then the glyph manager response processing happens before the glyph requestors map gets updated, causing the notification to never happen in such cases.

@brunoabinader brunoabinader added bug Core The cross-platform C++ core, aka mbgl labels Oct 6, 2017
@brunoabinader brunoabinader self-assigned this Oct 6, 2017
@brunoabinader
Copy link
Member Author

/cc @bsudekum

Copy link
Contributor

@tmpsantos tmpsantos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, I hope this solves the longstanding bug on the node bindings.

@brunoabinader brunoabinader merged commit c9e9cd2 into master Oct 9, 2017
@brunoabinader brunoabinader deleted the update-glyph-requestors branch October 9, 2017 10:33
@jfirebaugh
Copy link
Contributor

What file sources are returning results synchronously? f053feb is supposed to prevent that.

@brunoabinader
Copy link
Member Author

What file sources are returning results synchronously? f053feb is supposed to prevent that.

I believe this situation can happen when we replace the original fileSource implementation, in particular its request component.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Core The cross-platform C++ core, aka mbgl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants