Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak in Jestontx2 by realsense2.35.so #6734

Closed
shiguangzqz opened this issue Jul 1, 2020 · 4 comments
Closed

Memory leak in Jestontx2 by realsense2.35.so #6734

shiguangzqz opened this issue Jul 1, 2020 · 4 comments

Comments

@shiguangzqz
Copy link

shiguangzqz commented Jul 1, 2020

this is my code :
void testGetData()
{
std::cout<<"test GetData"<<std::endl;
rs2::pointcloud pc;
}
while(100000)
{
testGetData();
}

when I run the testGetData fun more and more times, I find the process's Memory is bigger and bigger .I see the memory by top in linux.

This the top Data :
First:
top - 11:52:13 up 1 day, 21:31, 10 users, load average: 3.36, 3.13, 2.87
Tasks: 1 total, 1 running, 0 sleeping, 0 stopped, 0 zombie
%Cpu(s): 23.3 us, 13.3 sy, 0.0 ni, 63.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 8034040 total, 1421780 free, 1295924 used, 5316336 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 5738924 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30785 root 20 0 158604 122352 8948 R 120.0 1.5 0:18.15 realsensetest
Second:
top - 11:52:56 up 1 day, 21:32, 10 users, load average: 3.54, 3.18, 2.90
Tasks: 1 total, 1 running, 0 sleeping, 0 stopped, 0 zombie
%Cpu(s): 23.8 us, 19.0 sy, 0.0 ni, 57.1 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 8034040 total, 1162672 free, 1554836 used, 5316532 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 5480028 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30785 root 20 0 418332 382268 8948 R 75.0 4.8 1:00.26 realsensetest
Third:
top - 11:53:34 up 1 day, 21:32, 10 users, load average: 3.45, 3.20, 2.92
Tasks: 1 total, 1 running, 0 sleeping, 0 stopped, 0 zombie
%Cpu(s): 17.6 us, 5.9 sy, 0.0 ni, 70.6 id, 0.0 wa, 0.0 hi, 5.9 si, 0.0 st
KiB Mem : 8034040 total, 937304 free, 1780036 used, 5316700 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 5254852 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30785 root 20 0 641960 605896 8948 R 100.0 7.5 1:38.00 realsensetest

@MartyG-RealSense
Copy link
Collaborator

Hi @shiguangzqz A memory leak in the pointcloud processing block is on the list of Known Issues. It dates back a long time. The link below, which is also quoted in the release notes regarding this known issue, contains advice about dealing with it.

#2860

@shiguangzqz
Copy link
Author

OK,Thanks!

@ev-mp
Copy link
Collaborator

ev-mp commented Jul 7, 2020

Duplicate of #2860

@ev-mp ev-mp marked this as a duplicate of #2860 Jul 7, 2020
@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comnments received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants