Issue410

Title game crashes on exit if tux suicides and kills many bots
Priority bug Status resolved
Assigned To Keywords opengl
Linked issues Watchers

Submitted on 2011-07-26 08h57 by matthiaskrgr, last changed by matthiaskrgr.

Messages
Author: matthiaskrgr Date: 2011-07-26   08h57
When I have a lot of bots on the square I am on, die (explode), kill the bots
and get some sound warnings like

----------------------------------------------------------------------
Freedroid has encountered a problem:
In function: play_sound_cached_pos.
FreedroidRPG package and version number: freedroidrpg 0.14.1+svn.
				        The SDL mixer was unable to register an effect on given channel.
The problem mentioned above is not fatal, we continue the execution.
----------------------------------------------------------------------


SoundSampleFileName: 'effects/bot_sounds/death_sound_123.ogg' channel: '246'
Mix_GetError(): Invalid channel number 


and then exit the game, it often crashes

----------------------------------------------------------------------
Termination of freedroidRPG initiated...Thank you for playing freedroidRPG.

print_trace:  Obtained 35 stack frames.
print_trace:  Obtaining symbols now done.
./src(print_trace+0x12) [0x4440f2]
/lib/x86_64-linux-gnu/libc.so.6(+0x33d80) [0x7fc4d4857d80]
/lib/x86_64-linux-gnu/libc.so.6(+0x77b5d) [0x7fc4d489bb5d]
/lib/x86_64-linux-gnu/libc.so.6(+0x78528) [0x7fc4d489c528]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x73) [0x7fc4d48a08e3]
/usr/lib/dri/r300_dri.so(+0x515b2) [0x7fc4d07be5b2]
/usr/lib/dri/r300_dri.so(+0x1b7980) [0x7fc4d0924980]
/usr/lib/dri/r300_dri.so(+0x116ec3) [0x7fc4d0883ec3]
/usr/lib/dri/r300_dri.so(+0x11d4de) [0x7fc4d088a4de]
/usr/lib/dri/r300_dri.so(+0x11d579) [0x7fc4d088a579]
/usr/lib/dri/r300_dri.so(+0x117041) [0x7fc4d0884041]
/usr/lib/dri/r300_dri.so(+0x85760) [0x7fc4d07f2760]
/usr/lib/dri/r300_dri.so(+0x10ca80) [0x7fc4d0879a80]
/usr/lib/dri/r300_dri.so(+0x364ed) [0x7fc4d07a34ed]
/usr/lib/dri/r300_dri.so(+0x32530) [0x7fc4d079f530]
/usr/lib/mesa/libGL.so.1(+0x4f655) [0x7fc4d4c07655]
/usr/lib/libSDL-1.2.so.0(+0x38702) [0x7fc4d4e6d702]
/usr/lib/libSDL-1.2.so.0(+0x3c37c) [0x7fc4d4e7137c]
/usr/lib/libSDL-1.2.so.0(+0x3c585) [0x7fc4d4e71585]
/usr/lib/libSDL-1.2.so.0(SDL_VideoQuit+0x42) [0x7fc4d4e636e2]
/usr/lib/libSDL-1.2.so.0(SDL_QuitSubSystem+0x45) [0x7fc4d4e3bca5]
/usr/lib/libSDL-1.2.so.0(SDL_Quit+0xe) [0x7fc4d4e3bd5e]
./src(Terminate+0x47) [0x443fd7]
./src(do_death_menu+0x9e) [0x43f00e]
./src(ThouArtDefeated+0x1f6) [0x438c76]
./src(CheckIfCharacterIsStillOk+0x4e) [0x43eafe]
./src(move_tux+0x12) [0x440652]
./src(Game+0x76) [0x44ebb6]
./src(TestMap+0x28) [0x469cd8]
./src(DoLevelEditorMainMenu+0xaa8) [0x46f578]
./src(leveleditor_process_input+0x6ec) [0x46df6c]
./src(LevelEditor+0x35) [0x469d35]
./src(main+0x165) [0x44ed75]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xff) [0x7fc4d4842eff]
./src() [0x415319]

print_trace():  received SIGSEGV!

----------------------------------------------------------------------


This happens in OGL as well as in SDL

rev4877
Author: matthiaskrgr Date: 2011-07-26   08h57
Lets try the revision thing once again:

r4877
Author: ahuillet Date: 2011-07-27   07h35
Why the "SDL" keyword? Does that happen in SDL mode as well?
Author: matthiaskrgr Date: 2011-07-27   09h03
IIRC I was able to reproduce it in SDL as well.
Author: ahuillet Date: 2011-07-27   09h29
Impossible - the crash is in your OpenGL driver. You can't reproduce it without it.
Author: matthiaskrgr Date: 2011-07-27   14h40
Might be fixed with r4883 , Ill reopen if I experience this bug again.
History
Date User Action Args
2011-07-27 14:40:53matthiaskrgrsetstatus: open -> resolved
messages: + msg1345
2011-07-27 09:29:30ahuilletsetmessages: + msg1323
keyword: - sdl
2011-07-27 09:03:14matthiaskrgrsetmessages: + msg1319
2011-07-27 07:35:45ahuilletsetmessages: + msg1316
2011-07-26 08:57:35matthiaskrgrsetmessages: + msg1297
2011-07-26 08:57:06matthiaskrgrcreate