File size is 20KB while in reality it is 35GB

Discussion related to "Everything" 1.5 Alpha.
Post Reply
aybe
Posts: 17
Joined: Wed Nov 23, 2022 3:49 am

File size is 20KB while in reality it is 35GB

Post by aybe »

So I have this unit test in Visual Studio that produces an absurd amount of data when profiled... :lol:

However, for some reason, Everything sees it only being 20KB:
Screenshot 2023-08-11 105746.png
Screenshot 2023-08-11 105746.png (96.43 KiB) Viewed 1126 times
Closing the software, refreshing the window or redoing the search didn't help.

But if I force rebuild the database, it then shows up as expected:
Screenshot 2023-08-11 110150.png
Screenshot 2023-08-11 110150.png (12.33 KiB) Viewed 1126 times
Thanks!
void
Developer
Posts: 16669
Joined: Fri Oct 16, 2009 11:31 pm

Re: File size is 20KB while in reality it is 35GB

Post by void »

Thanks for the issue report aybe,

This issue should be fixed in Everything 1.5.0.1353a.

Everything 1.5.0.1353a fixes an issue with reading the file size of heavily fragmented files.

Please let me know if the issue persists with this version.



Everything will not update the file size until all handles to the file are closed.
aybe
Posts: 17
Joined: Wed Nov 23, 2022 3:49 am

Re: File size is 20KB while in reality it is 35GB

Post by aybe »

I've enabled `Check for updates on startup` so that next time it'll always be on last version!

The problem is still present on latest version:
Screenshot 2023-08-11 120047.png
Screenshot 2023-08-11 120047.png (67.34 KiB) Viewed 1115 times
Testing a bit more, seems like it's Visual Studio's fault somehow...

If you cancel a running test, there's an outstanding handle on the file and one must log off to be able to delete it:
Screenshot 2023-08-11 111142.png
Screenshot 2023-08-11 111142.png (20.12 KiB) Viewed 1115 times
But if you run any test up to the end, all handles are released and Everything immediately shows the right size.

However... Explorer is able to show the right size no matter whether file is locked in some way, that's a mystery!
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: File size is 20KB while in reality it is 35GB

Post by therube »

(
heavily fragmented files
Contig is a utility that defragments a specified file or files. Use it to optimize execution of your frequently used files.

(Or check fragmentation of an existing file.)
Contig.exe [-a] [-s] [-q] [-v] [existing file]
Contig.exe [-f] [-q] [-v] [drive:]
Contig.exe [-v] [-l] -n [new file] [new file length]

Code: Select all

-a 	Analyze fragmentation
)
aybe
Posts: 17
Joined: Wed Nov 23, 2022 3:49 am

Re: File size is 20KB while in reality it is 35GB

Post by aybe »

Not sure what I'm supposed to do with this, these files are generated on the fly and not by me.

I only use them once then delete them, i.e. once you change the profiled code they naturally become obsolete.
Post Reply