bvibber / hdrfix

tool for converting HDR screenshots to SDR with suitable tone-mapping
114 stars 10 forks source link

Crash when watching folder #14

Open maksg opened 6 months ago

maksg commented 6 months ago

Sometimes when I watch my folder the tool crashes with error: thread 'main' panicked at 'called 'Option::unwrap()' on a 'None' value', src\main.rs:837:32

Command I'm running looks like this: .\hdrfix.exe --watch=C:\Users\{user}\iCloudPhotos\Photos

I'm using Nvidia Experience to take screenshots and I'm saving them in my iCloud Photos folder. The issue happens mostly after taking first screenshot and after it gets converted (not sure if it happens immediately or after some time) but once I run the command again it no longer happens. Maybe somehow it tries to convert some other file or even recording from Nvidia Experience.

I'm using compiled binary of version 1.0.5 from the Releases tab.