#7140 mkl_malloc: failed to allocate memory,Traceback (most recent call last): File

183.158**8 Posted at: 1 hour ago

mkl_malloc: failed to allocate memory,Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 55, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 55, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 85, in faster_whisper
File "videotrans\process\stt_faster.py", line 74, in _create_model
File "videotrans\process\stt_faster.py", line 78, in _create_model
File "videotrans\process\stt_faster.py", line 55, in _create_model
File "faster_whisper\transcribe.py", line 689, in __ini
......
File "videotrans\task\_stage_recogn.py", line 65, in recogn
File "videotrans\recognition\__init__.py", line 228, in run
File "videotrans\recognition\_base.py", line 97, in run
File "videotrans\recognition\_whisper.py", line 41, in _exec
File "videotrans\recognition\_whisper.py", line 130, in _faster
File "videotrans\configure\base.py", line 264, in _new_process
videotrans.configure.excepts.VideoTransError: mkl_malloc: failed to allocate memory,Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 55, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 55, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 85, in faster_whisper
File "videotrans\process\stt_faster.py", line 74, in _create_model
File "videotrans\process\stt_faster.py", line 78, in _create_model
File "videotrans\process\stt_faster.py", line 55, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/AAA视频翻译/翻译测试 - 副本 (2) - 副本/1 (1).mp4,
输出结果保存到文件夹: D:/AAA视频翻译/翻译测试 - 副本 (2) - 副本/1 (1)-mp4,
临时文件夹: D://tmp/104488/fc565a39f0
未选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), medium, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunyang(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 不嵌入字幕


=
system:Windows-10-10.0.26100-SP0
version:v4.12
frozen:True
language:zh_CN
root_dir:D:/

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:mkl_malloc: failed to allocate memory内存(RAM)分配失败。由于您未启用 CUDA 加速,faster-whisper 的 medium 模型完全在 CPU 上运行,加载时需要占用较大的物理内存,内存不足即崩溃。

解决方案:

  1. 更换更小的模型:在语音识别渠道中选择 smallbase 模型(内存占用更低,速度更快)。
  2. 关闭其他大内存程序:处理前关闭浏览器、大型软件等,释放系统内存。
  3. 调低识别精度:进入 菜单 → 工具 → 高级选项 → 语音识别参数,将 计算数据类型 改为 int8,将 识别准确度beam_sizebest_of 均设为 1,可显著降低内存占用。
  4. 增加虚拟内存:Windows 系统设置中手动增加虚拟内存(建议设为物理内存的 1.5 倍)。
  5. 检查路径:当前路径包含中文、空格和括号(D:/AAA视频翻译/翻译测试 - 副本 (2) - 副本/1 (1).mp4),虽非直接报错原因,但建议将视频移动至纯英文、数字、无特殊符号的浅层目录(如 D:/test/1.mp4)后重试。

若以上操作后仍无效,请提供软件安装目录下 logs/ 文件夹中最新日志的末尾约30行内容。

请查阅相关文档:

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