You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a catalog of over 30k files and align.py will spawn multiple times until it will crash with too many open files error:
OSError: SoX failed! [Errno 24] Too many open files
ERROR:sox:OSError: SoX failed! [Errno 24] Too many open files
Traceback (most recent call last):
File "/home/tobias/dev/git/DSAlign/align/align.py", line 689, in <module>
main()
File "/home/tobias/dev/git/DSAlign/align/align.py", line 499, in main
samples = list(progress(pre_filter(), desc='VAD splitting'))
File "/home/tobias/dev/git/DSAlign/venv/lib/python3.7/site-packages/tqdm/std.py", line 1107, in __iter__
for obj in iterable:
File "/home/tobias/dev/git/DSAlign/align/align.py", line 488, in pre_filter
for i, segment in enumerate(segments):
File "/home/tobias/dev/git/DSAlign/align/audio.py", line 225, in vad_split
for frame_index, frame in enumerate(audio_frames):
File "/home/tobias/dev/git/DSAlign/align/audio.py", line 200, in read_frames_from_file
with AudioFile(audio_path, audio_format=audio_format) as wav_file:
File "/home/tobias/dev/git/DSAlign/align/audio.py", line 173, in __enter__
convert_audio(self.audio_path, self.tmp_file_path, file_type='wav', audio_format=self.audio_format)
File "/home/tobias/dev/git/DSAlign/align/audio.py", line 134, in convert_audio
transformer.build(src_audio_path, dst_audio_path)
File "/home/tobias/dev/git/DSAlign/venv/lib/python3.7/site-packages/sox/transform.py", line 441, in build
"Stdout: {}\nStderr: {}".format(out, err)
sox.core.SoxError: Stdout: None
Stderr: None
transcripts = []
for sample in samples:
init_stt(output_graph_path, lm_path, trie_path)
transcripts.append(stt(sample))
And now its no longer keeping files open. Previously you could run lsof to see a large number of deleted files kept open and now the files are no longer kept open. I'm not sure where the problem is but at least I can continue, albeit with only one thread.
Hi,
I have a catalog of over 30k files and align.py will spawn multiple times until it will crash with too many open files error:
Best regards
The text was updated successfully, but these errors were encountered: