Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #8705 actor error after map is removed #8711

Merged
merged 1 commit into from
Aug 30, 2019

Conversation

ansis
Copy link
Contributor

@ansis ansis commented Aug 30, 2019

This attempts to fix #8705. I was able to reproduce that error only with map.style._reloadSource('mapbox'); map.remove(); on debug/satellite.html

If a tile was reloaded shortly before a map.remove(), raster tiles that were in the middle of being loaded would not be aborted leading to an error when the tried to work with the removed map.

The broader problem happens whenever a tile is removed while it is being reloaded.

Overall all the code that deals with tile state and map removing seems very brittle and something worth looking at for a refactor.

I'm not sure how to test this.

Launch Checklist

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • manually test the debug page

If a tile was reloaded shortly before a `map.remove()`, raster tiles
that were in the middle of being loaded would not be aborted leading to
an error when the tried to work with the removed map.

The problem applies to removing and reloading tile.
@ansis ansis merged commit 572bbb5 into master Aug 30, 2019
@ansis ansis deleted the fix-reload-during-map-remove-8705 branch August 30, 2019 19:16
mourner pushed a commit that referenced this pull request Sep 4, 2019
If a tile was reloaded shortly before a `map.remove()`, raster tiles
that were in the middle of being loaded would not be aborted leading to
an error when the tried to work with the removed map.

The problem applies to removing and reloading tile.
mourner added a commit that referenced this pull request Sep 4, 2019
If a tile was reloaded shortly before a `map.remove()`, raster tiles
that were in the middle of being loaded would not be aborted leading to
an error when the tried to work with the removed map.

The problem applies to removing and reloading tile.
stepankuzmin pushed a commit to stepankuzmin/mapbox-gl-js that referenced this pull request Sep 9, 2019
If a tile was reloaded shortly before a `map.remove()`, raster tiles
that were in the middle of being loaded would not be aborted leading to
an error when the tried to work with the removed map.

The problem applies to removing and reloading tile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cacheEntryPossiblyAdded: TypeError Cannot read property 'send' of undefined
2 participants