read_info crashes if the file doesn't exist
-
Virgil Dupras
- Tag changed from feature to bug
-
Virgil Dupras
- State changed from new to accepted
- Assigned user set to Virgil Dupras
This crash is pretty hard to reproduce. I've tried starting a scan and then deleting some files from under the nose of dupeGuru before it could read its metadata, but it didn't crash (I think it checks that the file exists before reading metadata). I guess that with the right timing, it would be possible, so it can't hurt to wrap the info reading method around a try..except.
-
Virgil Dupras
Ooh, stupid, the crash is during result loading. Yeah, if you're fast enough and remove a file in the middle of metadata reading, you get that crash.
The thing is, a proper fix of this bug would mean to remove problematic files individually, and it would cause problem if the file is a group's ref file because there's no easy way to remove such a file in
Resultsmethods.So, since it's a rare bug, what I'll do is simply to clear out the results when such thing happens.
-
Virgil Dupras
- State changed from accepted to fixed
(from [7a1418e6528f]) [#90 read_info crashes if the file doesn't exist state:fixed] Fixed a rare crash on results loading. http://bitbucket.org/hsoft/dupeguru/changeset/7a1418e6528f/
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.