Closed joyrider3774 closed 7 months ago
Hi!
Which version of SDL2_mixer and SDL2 are you running ?
Hi,
on my debian x86_64 wsl2 instance it are these libs (from the repo's):
on the arm rg35xx plus it was
however be aware this is a patched SDL2 library that adds support for mali driver
edit: i also noticed in the build i did for arm RG35xx plus without SDL2 mixer changes (https://github.com/omf2097/openomf/commit/4287067184d9f16d02035f6cf0abcafb0f9755be) after a while in the demo mode only music is playing no more sound effects but not sure it's relevant to this crash as i noticed in the SDL_Mixer build it also said no free audio channels available just before the crash
Those library dumps don't really mean much since they only have the major version. Please try "apt-cache policy libsdl2-mixer-2.0 libsdl2-2.0".
hi sorry here is the output of it for the debian one on the arm one i can't do it as they do not come from apt
Ok, thanks. Those seem to be fine. I might have a fix, it seems to be a combination of too low a channel count for the mixer and a buffer index issue.
ok i can easily test it out on my pc, I just had it crashed on another location and it indeed mentioned again no available free channels so i think you are on the right track
Can you try compiling from this branch/PR: https://github.com/omf2097/openomf/pull/500 ?
The "No free channels" might still show up, as that is just preventing the audio system from hogging too much processor time. No point in playing a kiloton of sounds at the same time, since they will just start souding like mush at that point anyways :)
ok i'm testing it (my build did not have your last commit about memory clearing but did have the 3 inital commits in that branch. The game has been running the demo mode already for about 15 minutes. It also loaded the arena with figther jets bombing the ground and the game did not crash so it seems to have fixed it. I'll quit the demo and pull the last commit as well and retest but so far it seems all good and no crashes yet on the x86_64 version
Went ahead and merged the changes. I'll just roll a new branch if (when) more problems show up ;)
np, demo mode is still running fine.
I also checked what happened when the sound of the jetfighters bombing the ground played and it showed this but no crash so should indeed be fixed i think. I still need to test it on the handheld but i'm guessing it will be fine as before the game crashed within 1-2 minutes when running the demo mode
so think its safe to close this
Alrighty then. Please open up a new ticket if stuff shows up :)
Thanks for testing!
Closed as fixed.
Hi,
during testing and creating a build for my RG35XX plus handheld i noticed openomf was very unstable. It kept segfaulting. I also saw a big change related to SDL2_mixer was done recently, and when i build a version of openomf just before these merged changes (https://github.com/omf2097/openomf/commit/4287067184d9f16d02035f6cf0abcafb0f9755be) the game was no longer unstable. I observed this on both ARM and X86_64 archictecture (debian running under wsl2)
Now it is not very hard to get it to crash so could be easily debugged. Just start the demo mode and wait till the cpu players play in the desert like arena. When those airplaines arive (at least i think it are airplaines) and they fire their bombs its a garantueed crash every time. It also happens on other locations in the game, but this specific one i could easily pinpoint.
I also have stacktraces of these crashes happening from gdb but not sure if they are helpfull
not sure if the
[ 237][E] audio_play_sound(): Unable to play sound: No free channels available
has something todo with itI thought i'd mention this here just in case others come across it