University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

Smartbody Memory leaking | General SmartBody Discussion | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Smartbody Memory leaking
June 19, 2015
8:16 am
Avatar
Member
Members
Forum Posts: 9
Member Since:
May 18, 2015
sp_UserOfflineSmall Offline

Hi, I think I encountered some problems with smartbody. There seems to be some potential memory leaking problem.

 

For example, when I use SBGUI to run the example script HeadDemo.py, it works fine. But once I delete the zebra-2-map part or I do not create a new skeleton but just set ChrBrad.sk to my character, there would be memory leaking problem. May you help me take a look that what happens there?

 

Thanks so much.

June 19, 2015
4:49 pm
Avatar
Admin
Forum Posts: 980
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

I wouldn't be surprised if there were numerous memory leaks...

A couple of years ago, my team tried to eliminate as many leaks as possible. We were using the Google profiling tools (https://code.google.com/p/gperftools/) to track them down. There is an option in the linux build to use those tools (see the top level CMakeLists.txt file and change:

set( GOOGLE_PROFILER FALSE)

 

to

set( GOOGLE_PROFILER TRUE)

 

then you can run sbgui like this:

 

HEAPCHECK=normal ./sbgui

 

which will produce a set of data, that can be converted into a graph that shows the function calls that have memory leaks.

Ari

June 22, 2015
2:05 am
Avatar
Member
Members
Forum Posts: 9
Member Since:
May 18, 2015
sp_UserOfflineSmall Offline

Got it. Thanks.

 

I may try these tools and I would reply to you as soon as I solve the problem.

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 733

Currently Online: mondayneedle1, worriedutopia9579, DixieDelgado, lyinglegacy8966, eric506784, t9rrzpi307
93 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

jwwalker: 80

jyambao: 51

rbaral: 47

adiaz: 30

WargnierP: 29

lucky7456969: 28

mbarros: 28

avida.matt: 26

JonathanW: 24

laguerre: 23

Member Stats:

Guest Posters: 65

Members: 52460

Moderators: 3

Admins: 4

Forum Stats:

Groups: 1

Forums: 5

Topics: 427

Posts: 2343