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

2a09**81 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
......
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(内置), large-v3-turbo, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunyang(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 不嵌入字幕
代理地址:http://127.0.0.1:7890


=
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

这是由于系统内存不足,导致 faster-whisper 加载 large-v3-turbo 模型时无法分配所需内存。该模型在纯 CPU 模式下运行时需要较大的物理内存(约 6GB 以上),若你的电脑内存不足或已被其他程序占用,就会触发此错误。

请按以下顺序处理:

  1. 更换更小的模型
    在主界面的语音识别渠道中选择 faster-whisper 后,将模型从 large-v3-turbo 改为 mediumsmallbase。模型越小,内存占用越低。
  2. 关闭其他占用内存的程序
    停止正在运行的浏览器、游戏、大型软件等,释放系统内存后再重试。
  3. 增加虚拟内存
    进入 Windows 系统设置 → 高级系统设置 → 性能 → 设置 → 高级 → 虚拟内存,为 C 盘或软件所在盘设置更大的虚拟内存(例如初始 16GB、最大 32GB)。
  4. 检查 32 位/64 位系统
    确保你使用的是 64 位 Windows 系统。32 位系统无法分配超过 4GB 内存,必然报此错误。
  5. 不要勾选“启用 CUDA 加速”
    如你未安装 CUDA,请确保未勾选 CUDA 加速,避免程序尝试加载 GPU 相关库引发额外内存开销。

若以上措施仍无法解决,请提供日志顶部更完整的信息(你的软件版本 v4.12,日志已足够),并告知你电脑的物理内存总量,以便进一步判断。

请查阅相关文档:

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