-
Notifications
You must be signed in to change notification settings - Fork 4
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
Search returning out-of-bounds results #30
Comments
I've sent the data and the instructions offline since they are too big to upload here. |
Just wanted to give one point of direction to @bryevdv. What I showed you on the call was the draw path. But I think invalidating the meta tiles is not the right approach there. I think the place to check is Lines 783 to 787 in 2f8dfcd
(If you follow up the call stack you'll get to the place where this is called in the search algorithm.) |
I think we fixed this with #32? |
@elliottslaughter I don't think so? #32 just added the whole-word search option, which makes it easier to pare down search for certain kinds of results, e.g. ids that have fences like |
You're right. The cache invalidation bug is still there. Sorry about the noise. |
Hi @elliottslaughter @lightsighter I want to make sure I understand this bug.
By contrast: If I start from the zoomed out view with a search result (bullet two above), and then zoom away, without resetting anything first, then the result stays in the search, which I would not expect: Is this different from the original reported bug? Regardless, just to confirm: the search results should reset when the view interval changes? |
If I scroll right or left, will the results automatically refresh?
I honestly don't remember what I was trying to do that was behaving funny. I just remembered you guys agreed with me that it was strange when I showed it to you. 😇
By "zoom away" do you mean "zoom in"? If so I think this might have been my case too. I was trying to refine a search and wanted to see results getting pruned out as the window size shrunk.
I think in general this in the invariant we want to maintain: the search results should always reflect what is visible. Anything that causes the viewport to change, should cause the search results to refresh. |
I think the bug involved a combination of zooming + the "search unexpanded processors" option. Because those processors are unexpanded, the cache invalidation logic doesn't kick in and we get stale results. I think that's why I made my comment about Try this in a fresh profile:
|
When the viewport is zoomed into a smaller interval, and the search is invoked, then the returned results can include items outside the viewport, contrary to expectation. The root cause appears to be a missed cache invalidation for unexpanded results.
cc @lightsighter for a profile and search term to use to reproduce.
The text was updated successfully, but these errors were encountered: