When I set a label to a folder, sometimes the whole disk starts rattling, like it's scanning through all files and folders. This is particularly noticeable on a 6 TB HDD with lots of files and folders and takes a minute or two to complete.
It does not happen when I label subsequence folders. It's once in a while during the day this is happening. I'm not yet really sure what is triggering it other than assigning a label. Can you shed any light?
How are you assigning the label?
Right clicking the folder and than choosing the Set Label menu in the context menu.
It only happens after I assigned a label, not when right clicking the folder.
That shouldn't cause Opus to rescan the whole folder.
I would try looking with Process Monitor to see if it shows what is accessing the drive, and which parts of the drive. If it is dopus.exe then we can use the ProcMon logs (saved in PML format) to see which code or DLL is responsible, but it may be something other than Opus.
This is assuming you don't have automatic size calculations on or anything similar that would require scanning everything below the folder when the folder is refreshed.
It's when I assign a label in DO so there is to be a connection. I'll give monitoring a try to find out what that connectio is.
Automatic size calculations etc are turned off. But if those things were turned on, why is the parent folder or whole disk scanned when I assign a label? That shouldn't happen at all IMO.
Do we know that is happening for sure yet?
Thanks for sending the Process Monitor log.
It looks like the disk access is because it is re-calculating folder colors based on some label filters that are defined in your settings.
Under Preferences / Favorites and Recent / Label Assignments, does your list have a Label Filters section? If so, what is in it?
- A filter marking junk files (files that save to delete like temp files, MacOS files etc).
- A filter marking empty folders
- A filter marking files modified within the last 4 hours.
What happens if you turn all of them off in Preferences, click OK or Apply, and then try again?
I turned all of them off.
The scanning didn't happen all the time when I set a label so I can't reproduce and test immediately. I'll come back later with my findings..
It's not happening every time but still very often.
It doesn't matter on what drive I assign a label to a folder, if it starts scanning, it's always the same drive. A HDD with a lot of files so scanning takes a while. The folder is opened in a destination tab. It doesn't matter if that tab has the focus or not.
I removed all label settings for this particular drive, including in the folder format.
But even if there were labels used on the other drive, why does DO needs scanning it when I assign a label to a folder on another physical disc? What's the purpose? Why it's just scanning that one particular drive and not all drives or every time a random one? What can I further do to investigate?
Assuming you've turned the labels back on in the last 3 months: I suspect one/some of the labels are defined in a way which is making Opus do a recursive scan of the whole drive, or maybe all drives when the folder tree is visible.
What are the label definitions?
Yes, in the meanwhile the labels turned back. There are also three label filters. One for specific filenames and one for empty folders (size equal to 0), both having a simple color label.
The third one is for recent files (files and folders modified within the last 2 hours) This last filter has Status label including a status icon.
I turned all off again and when I turned on the Recent File filter that one drive starts scanning. I removed all columns extra, including the one for status icon. I now only have the columns Name, Size, Type and Modified. Could not reproduce the scanning anymore.
It looked like the status icon was the culprit.
So I decided to turn on label filters again, including the status icon to see if the scanning started again but it did not. Also no scanning when I add the Status Icon column back again.
It's a difficult one to reproduce so I have no idea what the exact cause is.
I restarted DO after every change I made by the way.
It's still scanning all folders but not inside anymore. Takes still 15 seconds to query 6300 folders from a HDD (blue circle in the address bar).
I also tested a folder on a SSD with only files in it, 56 thousand CSV files and only the four basic columns. It takes ages for DO to scan all these files. This one I can reproduce because it happens every time I open this folder.
I don't know why and what DO exactly is doing here because when I open those folders in Explorer none of this scanning happens. No activity in Process Monitor.
I will send you a PML file via email for the scanning of the CSV-files. Maybe you can detect what is happening. Maybe that's also the cause for the other scanning problems.
What are the label definitions?
This is still an issue. I really don't get why some other disks must be scanned when I add or remove (reset) a simple color label.
A few minutes ago I added a label and even my NAS, that was in sleep mode, turned on. No folder tabs to NAS folders where open in the Lister.
Why does this scanning happen? No need for this.
It doesn't happen when I apply a label to a second, third etc folder.
We haven't been able to reproduce what you're seeing.
If you want, make a config backup and send it via a private message or email to crashdumps@gpsoft.com.au and we'll try again with that when we can.