FunASR icon indicating copy to clipboard operation
FunASR copied to clipboard

valgraind 检测 onnxruntime 发现 内存泄漏

Open locasxe opened this issue 1 year ago • 0 comments
trafficstars

🐛 Bug

用 valgrind 检测 2pass 下 的可执行文件,发现存在 definitely lost: 98 bytes in 10 blocks log 如下: ==29486== 51 bytes in 5 blocks are definitely lost in loss record 177 of 246 ==29486== at memalign (in valgrind/vgpreload_memcheck-amd64-linux.so) ==29486== by posix_memalign (in valgrind/vgpreload_memcheck-amd64-linux.so) ==29486== by ??? (in third_party/onnxruntime-linux-x64-1.14.0/lib/libonnxruntime.so.1.14.0) ==29486== by ??? (in third_party/onnxruntime-linux-x64-1.14.0/lib/libonnxruntime.so.1.14.0) ==29486== by ??? (in third_party/onnxruntime-linux-x64-1.14.0/lib/libonnxruntime.so.1.14.0) ==29486== by Ort::detail::ConstSessionImpl<OrtSession>::GetOutputNameAllocated(unsigned long, OrtAllocator*) const ==29486== by FsmnVad::GetInputOutputInfo(std::shared_ptrOrt::Session const&, std::vector<char const*, std::allocator<char const*> >, std::vector<char const, std::allocator<char const*> >*) 推测原因可能在GetOutputNameAllocated和GetInputNameAllocated的使用?

Environment

  • OS Linux
  • FunASR Version 最新
  • PyTorch Version 2.0.0
  • How you installed funasr pip
  • Python version: 3.9
  • CUDA/cuDNN version cuda12.0

locasxe avatar Apr 16 '24 12:04 locasxe