ReinhardPrix / FreedroidClassic

The original Freedroid, a free & open-source clone of the C64 classic 'Paradroid'.
GNU General Public License v2.0
35 stars 5 forks source link

editor: memleak - spawning and dying on top of droid exiting editor #22

Open matthiaskrgr opened 6 years ago

matthiaskrgr commented 6 years ago

sometimes when exiting the editor I was position on top of another droid which caused the 001 to be killed

WARNING: Could not play sound-sample: Collision_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: Collision_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: Collision_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: Collision_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: Collision_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: Collision_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: Collision_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: Collision_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: Collision_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: Collision_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: Collision_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: Collision_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: Collision_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: Collision_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: Collision_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: InfluExplosion.wav Error: No free channels available
This usually just means that too many samples where played at the same time
WARNING: Could not play sound-sample: GotIntoBlast_Sound_0.wav Error: No free channels available
This usually just means that too many samples where played at the same time

this also caused a memleak when exiting the game

Direct leak of 127744 byte(s) in 16 object(s) allocated from:
    #0 0x31326a in __interceptor_calloc /home/matthias/LLVM/LLVM6/stage_2/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:97:3
    #1 0x3a86b1 in MyMalloc /tmp/FreedroidClassic/src/misc.c:1086:15
    #2 0x391a90 in LevelToStruct /tmp/FreedroidClassic/src/map.c:558:23
    #3 0x3916d9 in LoadShip /tmp/FreedroidClassic/src/map.c:287:30
    #4 0x378133 in InitNewMission /tmp/FreedroidClassic/src/init.c:689:8
    #5 0x38d622 in main /tmp/FreedroidClassic/src/main.c:86:7
    #6 0x7f7dc27a1222 in __libc_start_main (/usr/lib/libc.so.6+0x24222)