-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
cacheEntryPossiblyAdded: TypeError Cannot read property 'send' of undefined #8705
Comments
Thanks for the report! We'll try to find a solution, but it will be hard without a reproducible test case — if you do get to reproduce locally eventually, let us know. |
@javiergarciagonzalez how often are you seeing this error reported? is it a couple errors here and there or something most users are hitting? Also, are you using |
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.
I was able to reproduce this error with raster map found in I don't really have a way of knowing if this is the exact issue you were seeing though. |
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.
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.
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.
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.
Hi!
Since we bumped this morning to v1.3.0, we are getting production error that says "Cannot read property 'send' of undefined".
This is happening in the method
cacheEntryPossiblyAdded
from the filesrc/utils/tile_request_cache.js
.This method receives a dispatcher and that dispatcher has a method
getActor()
that it's sometimes returning undefined. That causes the error in the title of this issue.I couldn't reproduce it locally, but I hope this can ring the bell for you mapbox team.
mapbox-gl-js version: 1.3.0
browser: Chrome 71.0.3578
Expected Behavior
Code doesn't give typeErrors
Actual Behavior
It does when
dispatch.getActor()
returns undefinedThe text was updated successfully, but these errors were encountered: