Quick Search without System Folder

Features wanted...
admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Quick Search without System Folder

Post by admin »

Is the stale cache issue maybe related to the use of View | Tab | Relocate Tab...?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Quick Search without System Folder

Post by highend »

I've never used that function. Not even once.
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Quick Search without System Folder

Post by admin »

Currently out of ideas. Cannot reproduce these issues.

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Quick Search without System Folder

Post by highend »

It's definitely (at least) a caching issue

With Configuration | Find and Filter | Find Files & Branch View | Find Files | Cache search results
unticked

it doesn't happen anymore...

The interesting thing is: It doesn't happen when I startup my configured instance

I do normal file management tasks, switch tabs, folders, do searches, start scripts, etc., yaddayadda and (maybe) then I can reproduce the issue :blackstorm:

I normally only restart my instance on an XY upgrade and I only use it as a read-only clone

And regarding the unticked cache search result (I've did this while I didn't restart it and the issue immediately went away)
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Quick Search without System Folder

Post by admin »

I fixed a couple of related glitches now. Let's see what happens.

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Quick Search without System Folder

Post by jupe »

Well I get blank QS tab now always .0316 when tab switching (even non multi-loc QS), here is an example slog:

Code: Select all

2022-05-18 06:00:20.461 >> This PC | found: 27 items | total: 27 folders | quick search done in 17.8 ms (scanned 159 files)
2022-05-18 06:00:36.090 >> C:\test | 18/19 items (70.11 GB free) | total: 248.74 MB (260,827,606 bytes)   12 files, 6 folders | drive C:  used: 40.61 GB   free: 70.11 GB (63%)
2022-05-18 06:00:37.082 >> This PC | found: 0 items |  | reading cache...
2022-05-18 06:00:37.086 >> This PC | found: 0 items | total: 0 bytes | cached quick search done in 4.1 ms
  • Line 1 is the original multiloc quicksearch (but now happens with single folder QS too)
  • Line 2 tabswitch (to a normal non QS tab)
  • Line 3 tabswitch back to QS tab
  • Line 4 Result = 0 items now for the same Line 1 QS tab
In my normal config it is 100% reproducible every tab switch with cache enabled, disable cache and all works as expected. I guess I will have to live without QS cache.

Here is an example (not from same event as above slog) of a single folder basic QS and tab switch:
xyQS.gif
xyQS.gif (214.37 KiB) Viewed 1386 times

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Quick Search without System Folder

Post by admin »

Can you show the address bar as well? Then I can even see the search pattern. :)

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Quick Search without System Folder

Post by jupe »

xyQS1.gif
xyQS1.gif (206.48 KiB) Viewed 1381 times

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Quick Search without System Folder

Post by admin »

I haven't the slightest idea what could be causing this. :veryconfused:

Could you show a screenshot of Configuration | Find and Filter | Find Files & Branch View?

Or maybe your tabset is somehow corrupt. :eh:
Well, unlikely with just two tabs...

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Quick Search without System Folder

Post by admin »

In the next beta, when you hover the caption part of a tab header and hold SHIFT, the tooltip will give you the path to the tab_*.ini file where the cache data is stored. You can check then whether this file actually has the cache data.

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Quick Search without System Folder

Post by jupe »

I could send a screenshot if you really want, but I have fiddled with all those settings for hours trying to repro in fresh so they aren't relevant, but anyway, I am confident that I just worked out the cause. Since all the recent QS issues sprung up that I mentioned earlier in this thread, I have been doing all my testing in a RO instance because I was trying all sorts of things, anyway based on your last comment I realized that the QS cache isn't in RAM, it is on disk immediately (I'd never checked), which doesn't happen in a RO instance, and depending on the tab number of the QS tab, it reads from the stale cache of the non-RO instance for that tab number, that explains why I got different results sometimes, and it also theoretically explains why sometimes I get the path column with chars trimmed from front, I assume that it trims c:\test (the AB path) char count from c:\whatever folder which becomes "ever" in relative path column (when wrong files from wrong path added to list from different cache).

I guess, if it is feasible, the obvious solution to this issue would be auto disabling QS cache in RO mode, unless you can think of a better alternative.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Quick Search without System Folder

Post by admin »

Ah, you got it! :tup:
jupe wrote: 18 May 2022 23:31 I guess, if it is feasible, the obvious solution to this issue would be auto disabling QS cache in RO mode, unless you can think of a better alternative.
Yeah, I think that's the way to go.

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Quick Search without System Folder

Post by highend »

Is there no way to do this in ram instead or in a tmp file (for ro-instances)?
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Quick Search without System Folder

Post by admin »

In theory a lot is possible. And XY went the way it is now.

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Quick Search without System Folder

Post by highend »

Cool! Then... make it possible :titter:

I only use XY in ro-mode, a never changing version, like fresh but fully configured.
But uncached searches are a big letdown...
One of my scripts helped you out? Please donate via Paypal

Post Reply