#8411 System Error (22): Insufficient system resources exist to complete the requested serviceTraceback (most recent call last

2405**7c89 Posted at: 1 hour ago

System Error (22): Insufficient system resources exist to complete the requested service
Traceback (most recent call last):
File "videotrans\task\only_one.py", line 71, in run
File "videotrans\task\_stage_recogn.py", line 64, in recogn
File "videotrans\recognition\__init__.py", line 141, in run
File "videotrans\recognition\_base.py", line 101, in run
File "videotrans\recognition\_whisper.py", line 39, in _exec
File "videotrans\recognition\_whisper.py", line 136, in _faster
File "videotrans\configure\base.py", line 265, in _new_process
File "pathlib.py", line 1290, in exists
File "pathlib.py", line 1097, in stat
OSError: [WinError 1450] Insufficient system resources exist to complete the requested service: 'D:\SOFT TAO BAO 10-10-26\电脑手机屏幕翻译\电脑\win-pyvideotrans-v4.17\tmp\faster-20261023-23_38_02.srt'

trk=[TransCreate]: uuid='0008be8312', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/TAM MUOI CHAN HOA TAU/【ZTN】詹唐宁-三昧御光三昧真火/3.2.音光法门:DNA激活疗愈.mp4,
输出结果保存到文件夹: D:/TAM MUOI CHAN HOA TAU/【ZTN】詹唐宁-三昧御光三昧真火/_video_out/3.2.音光法门:DNA激活疗愈-mp4,
临时文件夹: D:/SOFT TAO BAO 10-10-26/电脑手机屏幕翻译/电脑/win-pyvideotrans-v4.17/tmp/18028/0008be8312
已选 清理已存在
未启用CUDA加速
STT Service:faster-whisper(Built-in), large-v3-turbo, 发音语言: Simplified Chinese, , 数据类型:default
TranslateSrt:Google Translate (Free),原始语言:Simplified Chinese,目标语言:Vietnamese, 已选 SendSRT, settings.get('trans_thread')=5, settings.get('aitrans_thread')=40
TTS Service:Edge-TTS (Free), 角色:HoaiMy(Female/VN), 配音语言:Vietnamese, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: Soft Subtitles , precent=4, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=9058960


=
system:Windows-10-10.0.26200-SP0
version:v4.17
frozen:True
language:en_US
root_dir:D:/SOFT TAO BAO 10-10-26/电脑手机屏幕翻译/电脑/win-pyvideotrans-v4.17

1 Replies

#1 DeepSeek reply at 1 hour ago

This is not an error in the translation logic; it is a Windows system-level resource exhaustion (WinError 1450). The OS already has no spare paged pool/file handles to perform one more stat on the temp file. In pyVideoTrans this almost always comes from the following combination: a huge number of leftover files in the tmp/ directory, a path containing Chinese characters/spaces/brackets, and antivirus real-time scanning of those fragments.

Judging from your log, there are three high-risk factors: the software root is at D:\SOFT TAO BAO 10-10-26\电脑手机屏幕翻译\电脑\win-pyvideotrans-v4.17 (spaces + Chinese), the video path contains 【ZTN】/:/spaces, and the video is 9058960 ms (~2.5 hours), which produces a very large number of temp fragments.

Handling steps (in this order):

  1. Close pyVideoTrans completely.
  2. Manually open the tmp/ folder under the software root directory, clear all its contents (do not delete the tmp folder itself), and confirm that the free space on drive D is sufficient.
  3. Move the whole software to a short pure-English path, e.g. D:\pyVideoTrans, and start sp.exe from there.
  4. Rename the video to a short English name without brackets, colons or spaces, e.g. D:\videos\video1.mp4, and put it in a shallow directory.
  5. Add the software directory to the antivirus whitelist (or temporarily disable real-time protection) to prevent it from locking temp files during scanning.
  6. Restart the computer to release the accumulated handles/paged pool, then run again.
  7. If it still fails on a long video, open Menu → Tools/Options → Advanced Options → General, set Max Concurrent CPU Tasks and Max Concurrent GPU Tasks to 1, and set Batch Size for Video Translation to 1, to reduce the number of simultaneous temp files.

If the error still appears after all the above, please provide the last 30 lines of the latest log in the logs/ folder under the software installation directory, and note the free space on the drive where tmp resides.

Please refer to the related documentation:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource