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

23.177**9 Posted at: 1 hour ago

mkl_malloc: failed to allocate memory,Traceback (most recent call last):
File "videotrans\process\stt_faster.py", line 54, 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 54, 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 84, in faster_whisper
File "videotrans\process\stt_faster.py", line 73, in _create_model
File "videotrans\process\stt_faster.py", line 77, in _create_model
File "videotrans\process\stt_faster.py", line 54, in _create_model
File "faster_whisper\transcribe.py", line 689, in __ini
......
eotrans\recognition\__init__.py", line 121, in run
File "videotrans\recognition\_base.py", line 99, in run
File "videotrans\recognition\_whisper.py", line 41, in _exec
File "videotrans\recognition\_whisper.py", line 138, 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 54, 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 54, 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 84, in faster_whisper
File "videotrans\process\stt_faster.py", line 73, in _create_model
File "videotrans\process\stt_faster.py", line 77, in _create_model
File "videotrans\process\stt_faster.py", line 54, in _create_model
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/24666/Desktop/9.29动漫/video-1.mp4,
输出结果保存到文件夹: C:/Users/24666/Desktop/9.29动漫/_video_out/video-1-mp4,
临时文件夹: D:/ABC/tmp/33480/96938fc217
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), small, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:DeepSeek,原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Steffan(Male/US), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入软字幕
代理地址:http://127.0.0.1:20799
video_duration_ms=105000


=
system:Windows-10-10.0.22000-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:D:/ABC

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因为内存分配失败导致模型加载崩溃。

这是操作系统的内存(RAM)或虚拟内存不足,无法为 faster-whisper 模型分配所需的运行内存,与显卡显存无关。

解决方案(按顺序尝试):

  1. 降低模型尺寸:将语音识别渠道的模型从 small 更换为更小的 base 或 tiny。

  2. 更改计算数据类型:进入 菜单 → 工具/选项 → 高级选项 → 语音识别参数,将 计算数据类型 改为 int8(消耗资源最少)。

  3. 调整运行设备:高级选项 → 通用设置 → 将 强制指定重型任务运行设备 改为 CPU,避免 MKL 与 GPU 资源抢占。

    (您当前未启用 CUDA,此项可忽略)
  4. 增大系统虚拟内存:Windows 设置 → 系统 → 关于 → 高级系统设置 → 性能设置 → 高级 → 虚拟内存 → 更改,将页面文件大小设置为系统托管或手动调大(建议 8GB 以上),然后重启电脑。

  5. 关闭其他占用内存的程序(浏览器、其他大型软件),释放物理内存后重试。

  6. 更换识别渠道:若物理内存确实较小(如 8GB 以下),可改用 Qwen-ASR(内置) 或 Firered中文(内置) 等更省内存的中文识别渠道。

  7. 调整同时任务数:进入 高级选项 → 通用设置,将 CPU同时任务数 设为 1,GPU同时任务数 设为 1。

若上述操作后依然报错,请开启虚拟内存并重启电脑,同时附带最新日志重试。

请查阅相关文档:

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