mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-09 21:24:36 +00:00
Work around frozen progress dialog
* It seems that matchblock.getmatches() returns too early and the (multi-)processes become zombies * This is a workaround which seems to work by sleeping for one second and avoid zombie processes
This commit is contained in:
parent
1167519730
commit
63b2f95cfa
@ -9,6 +9,7 @@
|
||||
import logging
|
||||
import multiprocessing
|
||||
from itertools import combinations
|
||||
from time import sleep
|
||||
|
||||
from hscommon.util import extract, iterconsume
|
||||
from hscommon.trans import tr
|
||||
@ -254,6 +255,9 @@ def getmatches(pictures, cache_path, threshold, match_scaled=False, j=job.nulljo
|
||||
ref.dimensions # pre-read dimensions for display in results
|
||||
other.dimensions
|
||||
result.append(get_match(ref, other, percentage))
|
||||
# HACK this is a workaround for when the progress bar gets stuck sometimes,
|
||||
# as we enter a deadlock somewhere and the sub-processes become zombies.
|
||||
sleep(1)
|
||||
return result
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user