|
rknn_api 版本为 1.7 版本,发现有内存泄漏问题,麻烦帮忙确定一下。谢谢
librga:RGA_GET_VERSION:4.00,4.000000
ctx=0x7f8de00be0,ctx->rgaFd=3
Rga built version:version:+2017-09-28 10:12:42
model default confidence threshold: 0.4
librknn_runtime version 1.7.1 (97198ce build: 2021-11-24 09:04:55 base: 1131)
sdk version: librknn_runtime version 1.7.1 (97198ce build: 2021-11-24 09:04:55 base: 1131) driver version: 6.4.6.5.351518
save img ./result.jpg
=================================================================
==21898==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 136 byte(s) in 1 object(s) allocated from:
#0 0x7f91aa7563 in __interceptor_calloc (/usr/lib/libasan.so.3+0x98563)
#1 0x7f86dcf663 in gcoOS_GetTLS (/usr/lib/libGAL.so+0x15b663)
#2 0x7f86cd3cbf in gcoVX_SwitchContext (/usr/lib/libGAL.so+0x5fcbf)
#3 0x7f87db607b in vxCreateContext (/usr/lib64/libOpenVX.so.1+0x4407b)
#4 0x7f8802a98f in vsi_nn_CreateContext (/usr/lib64/librknn_runtime.so+0x6598f)
#5 0x7f880155cf in vnn_CreateRKNN (/usr/lib64/librknn_runtime.so+0x505cf)
#6 0x7f8801cd8f in BuildGraph (/usr/lib64/librknn_runtime.so+0x57d8f)
#7 0x7f8801b59f in rknn_init (/usr/lib64/librknn_runtime.so+0x5659f)
#8 0x7f90c8ab0f in rknn_init (/usr/lib/librknn_api.so+0xb0f)
#9 0x7f9176e63f (/usr/lib64/libgddi_rockchip_sdk.so.8+0xe663f)
#10 0x7f91761c37 in AlgImpl::Init(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int) (/usr/lib64/libgddi_rockchip_sdk.so.8+0xd9c37)
#11 0x402f6f in main (/usr/local/7g/service_engine/service/mng_srv/gddi_rockchip_sdk_test+0x402f6f)
#12 0x7f908e5c1f in __libc_start_main (/lib/libc.so.6+0x20c1f)
#13 0x4046df (/usr/local/7g/service_engine/service/mng_srv/gddi_rockchip_sdk_test+0x4046df)
Indirect leak of 678912 byte(s) in 3 object(s) allocated from:
#0 0x7f91aa73ff in __interceptor_malloc (/usr/lib/libasan.so.3+0x983ff)
#1 0x7f86dce407 in gcoOS_AllocateMemory (/usr/lib/libGAL.so+0x15a407)
#2 0x7f86dce49f in gcoOS_Allocate (/usr/lib/libGAL.so+0x15a49f)
#3 0x7f86c8f3e3 (/usr/lib/libGAL.so+0x1b3e3)
#4 0x7f86c8f533 (/usr/lib/libGAL.so+0x1b533)
#5 0x7f86ce165b (/usr/lib/libGAL.so+0x6d65b)
#6 0x7f86ce1c0b (/usr/lib/libGAL.so+0x6dc0b)
#7 0x7f86d06a8f (/usr/lib/libGAL.so+0x92a8f)
#8 0x7f87db6133 in vxCreateContext (/usr/lib64/libOpenVX.so.1+0x44133)
#9 0x7f8802a98f in vsi_nn_CreateContext (/usr/lib64/librknn_runtime.so+0x6598f)
#10 0x7f880155cf in vnn_CreateRKNN (/usr/lib64/librknn_runtime.so+0x505cf)
#11 0x7f8801cd8f in BuildGraph (/usr/lib64/librknn_runtime.so+0x57d8f)
#12 0x7f8801b59f in rknn_init (/usr/lib64/librknn_runtime.so+0x5659f)
#13 0x7f90c8ab0f in rknn_init (/usr/lib/librknn_api.so+0xb0f)
#14 0x7f9176e63f (/usr/lib64/libgddi_rockchip_sdk.so.8+0xe663f)
#15 0x7f91761c37 in AlgImpl::Init(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned int) (/usr/lib64/libgddi_rockchip_sdk.so.8+0xd9c37)
#16 0x402f6f in main (/usr/local/7g/service_engine/service/mng_srv/gddi_rockchip_sdk_test+0x402f6f)
#17 0x7f908e5c1f in __libc_start_main (/lib/libc.so.6+0x20c1f)
#18 0x4046df (/usr/local/7g/service_engine/service/mng_srv/gddi_rockchip_sdk_test+0x4046df)
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|