#8506 Unable to allocate 116. MiB for an array with shape (30388791,) and data type float32:Traceback (most recent call last):

151.44**7 Posted at: 2 hours ago

Unable to allocate 116. MiB for an array with shape (30388791,) and data type float32:Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 121, in faster_whisper
File "faster_whisper\transcribe.py", line 876, in transcribe
File "faster_whisper\audio.py", line 69, in decode_audio
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 116. MiB for an array with shape (30388791,) and data type float32

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 148, 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 277, in _new_process
videotrans.configure.excepts.VideoTransError: Unable to allocate 116. MiB for an array with shape (30388791,) and data type float32:Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 121, in faster_whisper
File "faster_whisper\transcribe.py", line 876, in transcribe
File "faster_whisper\audio.py", line 69, in decode_audio
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 116. MiB for an array with shape (30388791,) and data type float32

trk=[TransCreate]: uuid='ebf1735851', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/navar/Downloads/fundamentals-2.mp4,
输出结果保存到文件夹: C:/Users/navar/Downloads/_video_out/fundamentals-2-mp4,
临时文件夹: D:/pyVideoTrans/tmp/13564/ebf1735851
已选 清理已存在
未启用CUDA加速
STT Service:faster-whisper(Built-in), large-v3-turbo, 发音语言: English, , 数据类型:default
TranslateSrt:Google Translate (Free),原始语言:English,目标语言:Italian, 已选 SendSRT, settings.get('trans_thread')=5, settings.get('aitrans_thread')=40
TTS Service:Edge-TTS (Free), 角色:GiuseppeMultilingual(Male/IT), 配音语言:Italian
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: Hard 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=1899166


=
system:Windows-10-10.0.19045-SP0
version:v4.17
frozen:True
language:en_US
root_dir:D:/pyVideoTrans

1 Replies

#1 DeepSeek reply at 2 hours ago

This is not a model failure — it is system RAM exhaustion. decode_audio decodes the whole 31.6-minute audio track into a single float32 array (30,388,791 samples ≈ 116 MiB). numpy failed to allocate even 116 MiB, which means available physical + virtual memory was already nearly used up at that moment (the large-v3-turbo model is also loaded into RAM because CUDA is not enabled, and the single-video interactive mode plus Edge-TTS/translation run in parallel).

Handling steps, in order:

  1. Confirm the memory state: open Task Manager → Performance → Memory, and check "Available" before starting the task. If available is below ~1 GB during recognition, this error is confirmed.
  2. Restart the software: close sp.exe and start it again to release memory left over from long-running child processes. Also empty D:/pyVideoTrans/tmp/.
  3. Increase virtual memory (page file): System Properties → Advanced → Performance Settings → Advanced → Virtual memory → Change → set to "System managed" or a custom size of at least 8192–16384 MB (custom sizes apply only after a reboot).
  4. Reduce concurrency: Menu → Tools/Options → Advanced Options → General → set Max Concurrent CPU Tasks to 1 and Max Concurrent GPU Tasks to 1; uncheck Folder batch processing; disable "Identify Speakers" in More Settings (it loads additional models and RAM and is not needed for this video).
  5. Reduce the model size: change the STT model from large-v3-turbo to medium or small (lower RAM), or switch the STT channel to Whisper.cpp (Win Built-in) with a .bin model, which uses noticeably less memory.
  6. Split the source video: if this machine has 8 GB RAM or less, cut fundamentals-2.mp4 into 10–15 minute segments and translate them separately.
  7. Rule out the file-length/name factor: the input path C:/Users/navar/Downloads/fundamentals-2.mp4 is already short and alphanumeric, so it can be excluded as a cause.
  8. After changing settings, check Clear Output before rerunning.

If available memory is clearly sufficient (for example over 4 GB free) and the error persists, the cause cannot be determined from the current information. Please provide the last 30 lines of the latest log file in the D:/pyVideoTrans/logs/ directory, together with your total RAM size and the current page-file settings.

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