-
-
Notifications
You must be signed in to change notification settings - Fork 825
fix: missing children in retained tiles #5630
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
base: main
Are you sure you want to change the base?
Conversation
Can you check which version was the first version that has this issue? |
Had to have been 5 as I only started getting these errors with v5+. |
@wagewarbler can you check if this issue might have been introduced by your change somehow? |
Seems like there's no response from @wagewarbler. |
@HarelM I've been catching up on the issue. It's not immediately clear to me how my PR would have affected this but I understand your point about the nature of the underlying cache potentially being an issue. At a high level, do you have a sense of how this tilt/angle differently utilizes the cache vs. the standard perpendicular view? Or does this require some deeper digging? |
I don't have a lot of insights, also I didn't fully investigate to find the possibly offending PR, so it's only a hunch at this point... Deeper investigation is needed... |
Ok, I can do some looking in parallel. Entirely your call here, but there is the option to spin off a separate issue to re-evaluate the cache model and flow and link related PRs (this one and my previous one for example). Then merge this one as a tightly scoped PR that prevents array element access that exceed the array's bounds. |
Hi yall. I say merge it. Sorry I have not been more involved -- I broke my leg a week ago :( |
I would prefer to have a better understanding of this issue before merging this so that we don't just use "defensive" coding approach for no reason. |
I feel ya but it is currently causing crashes. My guess is it has to do with at high pitches the child tiles get reduced/collapsed to single parent tiles. Is it possible this collapsing happens multiple times? Or for tiles outside of the range of webmercator bounds (which might make sense at extreme tilts)? |
I don't have a clear understand at the moment. |
I think what happens is when at a high pitch, certain tiles are "collapsed" to a single over zoomed tile if they are super far out. The tiles that get collapsed are always far off in the distance. Either way checking that the array is length 1 or 4 seems like a simple sanity check and I would be very happy if this were merged. For now I have just limited my usage to not allow a pitch greater than 60. Using patch package seems like a huge pita. @HarelM What do you need to merge this? |
I prefer to have a better root cause analysis of the original issue or what might cause this, sorry for delaying this, but it's very easy to add this type of code, but extremely hard to remove it, so I'm trying to get a more concrete answer here. |
I'm seeing the same issue with the ancient version - 1.14.0
var rn = Rt.children(this._source.maxzoom);
if (X[rn[0].key] && X[rn[1].key] && X[rn[2].key] && X[rn[3].key])
continue It is intermittent, it seems to happen about 1 in 5 times. I am seeing it when loading a
My guess was it was something to do with the raster layer, blob or the Hopefully another useful datapoint for your investigation. |
@MrBlenny can you reproduce this issue without |
I was able to point my repro at an older version and still see the issue. |
Is it possible to add a unit test to cover this issue? |
Fix for #5616
CHANGELOG.md
under the## main
section.