FunASR icon indicating copy to clipboard operation
FunASR copied to clipboard

2pass模式内存泄漏

Open yangzhaohui26 opened this issue 2 months ago • 1 comments
trafficstars

Notice: In order to resolve issues more efficiently, please raise issue following the template. (注意:为了更加高效率解决您遇到的问题,请按照模板提问,补充细节)

🐛 Bug

2pass模式时出现内存泄漏,泄漏速度取决于音频大小

To Reproduce

Steps to reproduce the behavior (always include the command you ran):

  1. 运行2pass模式,大量发送识别请求
  2. 长时间运行并观察内存会发现内存会增长,且与业务量有关

Code sample

Expected behavior

长时间运行均不再泄漏

Environment

  • OS (e.g., Linux): Linux
  • FunASR Version (e.g., 1.0.0): lastest
  • ModelScope Version (e.g., 1.11.0):
  • PyTorch Version (e.g., 2.0.0):
  • How you installed funasr (pip, source):
  • Python version:
  • GPU (e.g., V100M32)
  • CUDA/cuDNN version (e.g., cuda11.7):
  • Docker version (e.g., funasr-runtime-sdk-cpu-0.4.1)
  • Any other relevant information:

Additional context

——>已查到原因,FunTpassInferBuffer函数中buff、len等指针未释放

yangzhaohui26 avatar Sep 18 '25 09:09 yangzhaohui26