[REQUEST]Track Down MemLeak
2013-08-21, 09:17 PM
#1
[REQUEST]Track Down MemLeak
We need some help to track down some apparent memleaks(one user reported using 1.5gb of ram with ACR). The easiest way to do this is running it through a program called valgrind on linux. The problem with this is that valgrind slows down the game by a factor of 30 or more as it forces all computation to the cpu(where it does lots of abstraction and extra work). I get about 3 fps playing single player with it. We need someone who could possibly play a full game with bots in singleplayer and even better also a game online. If you think you have a good computer with powerful CPU(needs at least a recent i7 or equivalent AMD CPU). I have a i7-2720QM and I die trying so that should give you an idea of what you would need. I don't think GPU matters, but I'm not certain. If you think you can help and have linux installed or are willing to install it please tell me so we can get it setup. If it tells us what we need to know ACR should run faster with less memory and less crashes.

TL;DR. Do you have a nice computer and are willing to install linux(if you haven't already) then tell us below to help make ACR more awesome.
Post Reply Quote this message in a reply
2013-08-22, 07:55 AM
#2
RE: [REQUEST]Track Down MemLeak
You could run the debugger on Windows too, right? Also, if the GPU mattered, the game would become unplayable. The CPU can do specialized operations, but the GPU can do more operations that are simpler. Forcing the CPU to do the GPU's work would cause it to be very slow (probably by a factor of 1000).

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply
2013-08-22, 11:03 AM
#3
RE: [REQUEST]Track Down MemLeak
This specific debugger does not run on windows and I do not know of an alternate that creates as detailed of a report. It reports everywhere there is a memleak or other memory management problem.
Post Reply Quote this message in a reply
2013-08-23, 01:11 PM (This post was last modified: 2013-08-23, 02:39 PM by Victor.)
#4
RE: [REQUEST]Track Down MemLeak
My memory usage went up and crashed in KTF on ac_elevation.

EDIT:
See Issue 59 comment 20.

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply
2013-08-23, 02:13 PM
#5
RE: [REQUEST]Track Down MemLeak
I had a problem with KTF too...

I wonder if that area might be a good part of the problem. I'll see if I can run in single player with valgrind(a little hard with 5fps Tongue )
Post Reply Quote this message in a reply
2013-08-24, 08:48 AM (This post was last modified: 2013-08-24, 08:49 AM by Victor.)
#6
RE: [REQUEST]Track Down MemLeak
It just crashed in CTF on ac_depot. It most likely, like my stack says, is due to AC's glitchy A-Star bot algorithms being done for bots to move to flags.

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply
2013-08-25, 09:45 PM (This post was last modified: 2013-08-25, 09:46 PM by ruler501.)
#7
RE: [REQUEST]Track Down MemLeak
I found where in the loop it messes up, but I just moved into college so it may be a few days till I can try and fix it. It's a problem with there being a problem with the parent[0] member of the waypoint_s class. I think it is recursive somewhere, but I can't figure out why yet.
Post Reply Quote this message in a reply
2013-09-07, 05:28 PM
#8
RE: [REQUEST]Track Down MemLeak
blueblob11 from the Issue Tracker says that he uses gdb to debug because it's more lightweight compared to valgrind.

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply
2013-09-07, 10:51 PM
#9
RE: [REQUEST]Track Down MemLeak
it tells you a lot less about how memory is used though. Valgrind tells you about every single memory leak(tracks free's delete's and references) and where it happened in the code.
Post Reply Quote this message in a reply
2013-09-19, 08:19 PM
#10
RE: [REQUEST]Track Down MemLeak
[Image: bug_zps3d677041.png]

lol, the dreaded 1.8k MB memleak strikes again!

nothing responded after this. I had to end the program

DSO
Windows 8 fanboy =D
"Not dead, can't quit"
Post Reply Quote this message in a reply


Forum Jump: