From: Warzone 2. T. <in...@de...> - 2012-02-25 20:17:52
|
#3218: memory leaks in 3.1_beta4 ------------------------------------+---------------------------------- Reporter: neofutur | Type: bug Status: new | Priority: normal Milestone: unspecified | Component: other Version: 3.1 beta4 | Keywords: memory leak valgrind Blocked By: | Blocking: Operating System: GNU/Linux 32bit | ------------------------------------+---------------------------------- on a small map , MP 4p game, warzone2100 is reaching more than 1200 MB RAM usage, is this normal ? top information after the end of a 4p MP game : PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 8523 neofutur 20 0 1158m 277m 3236 D 1 56.9 56:59.24 warzone2100 in my case its swapping , but i can end the game, but when the game ends wz have a problem to free RAM and swap 10 mins after the end of the game its still using 1200 mb memory I have to kill -9 everytime I end a game or memory will never be freed kill -9 frees it immediately its beta4 built with nodebug ( had same problem before building with nodebug and launched with ./warzone2100 --nosound --noshadows --window --resolution=800x600, with 128 for textures I waited up to 30 mins to see if it finally frees the memory, but no it will never free it a strange thing is that an strace -p 8523 ( wz2100 process number ) shows nothing, the process does nothing at this time when it should free the memory trying to use valgrind to find memory leaks : {{{ valgrind --tool=memcheck ./warzone2100 --nosound --noshadows --window --resolution=800x600 }}} i found many ones like : {{{ ==8523== Address 0xb7152980 is not stack'd, malloc'd or (recently) free'd ==8523== Invalid write of size 1 }}} -- Ticket URL: <http://developer.wz2100.net/ticket/3218> Warzone 2100 Trac <http://developer.wz2100.net/> The Warzone 2100 Project |