A few years ago the "Files on demand" technology was transformed into the Windows Cloud Files, so now OneDrive, YandexDisk and others use it to map virtual cloud files (photos, videos) on real filesystem. When an app requires a file, the CreateFile() won't return until the file is downloaded and become real.
You should probably try cloud files in order to see: MP is horribly incompatible with this new stuff.
First issue is accessing the photo in normal mode. The GUI freezes all the way the file (and the next one) are being downloaded. The suggestions are: 1) do it in a separate thread unrelated with the gui and 2) probably request more than 1 next file, just in case.
The second issue is the gallery view where all the files are shown as thumbnails. In order to check the filetype MP tries to open all the files (regardless of their extension) causing Windows to download the whole folder from Net. Suggestions: MP should be aware about the cloud nature of the folder and avoid reading headers if files are not on disk (there's an api to check that, it's a simple file attribute). And thumbnails may be also obtained via the standard shell api, as this api is safe and never request the file from cloud provider, but request only a thumbnail.
MP freezes on cloud files - please add support
Moderators: helmut, XnTriq, xnview
-
- Posts: 1
- Joined: Sat Jun 07, 2025 4:30 pm
MP freezes on cloud files - please add support
- Attachments
-
- Безымянный 1.jpg (538.19 KiB) Viewed 60 times
Re: MP freezes on cloud files - please add support
I'll checkPostscripter wrote: Sat Jun 07, 2025 7:35 pm First issue is accessing the photo in normal mode. The GUI freezes all the way the file (and the next one) are being downloaded. The suggestions are: 1) do it in a separate thread unrelated with the gui and 2) probably request more than 1 next file, just in case.
The problem is for labels, we need to load file's header foe image size, metadata, ...The second issue is the gallery view where all the files are shown as thumbnails. In order to check the filetype MP tries to open all the files (regardless of their extension) causing Windows to download the whole folder from Net. Suggestions: MP should be aware about the cloud nature of the folder and avoid reading headers if files are not on disk (there's an api to check that, it's a simple file attribute). And thumbnails may be also obtained via the standard shell api, as this api is safe and never request the file from cloud provider, but request only a thumbnail.
Pierre.