Hang up

It often happens that my EL client hangs up mid-game (and only kill -9 will terminate it) where I can't exactly pin-point any ingame related reason.

I attached gdb to the running process and obtained the backtrace as below. It looks that the hang-up is here also somewhere in the sound modules - place where I also get frequently crashes (with frequently I mean that I usually experience at least one of these events per day). Two crash logs found at http://devs.openttd....es/el-crash.log and http://devs.openttd....s/el-crash2.log

Apparently all crashes are in the Apple sound system, so it's hard to track that down to a specific part of EL but maybe an EL sound developer can look into it, though i doubt it is a general EL problem. Hopefully there will be an update from Apple soon; until then, disable sound should avoid these crashes.

Which version of the OS are you running? I'm on LION and have no problems with sound on or off. To be honest I've had sound off for a good while but turned it on to test when I saw this post. No issues at all. Any info you can give us on software/hardware may help at least narrow it down.

EDIT: Also is this a new issue? Or are you a new to game and having these issues?

EDIT: Also is this a new issue? Or are you a new to game and having these issues?

I'm running OSX 10.6.8 (SnowLeopard) on a macbook, model MacBook2,1. Thus the default onboard sound hardware is in use. I play the game since about January and the issue is present ever since; I can't judge the time before that.Anyhow, the issue only appears with EL, other programmes don't quite have this issue like for video or audio playback or streaming nor do I see that when I play other games (mostly OpenTTD). Still, it may be some issue with the audio drivers per se as sometimes it has issues with video streaming; but it still doesn't crash the browser (FF) then but just leads to somewhat scrambled output.

Looks like it's an error in the threading code :
semaphore_wait_signal_trap ()
in pthread_mutex_lock ()
in SDL_mutexP ()
and the problem occurs while in the SDL library, so I'm not sure El developers can do anything about it. Most likely a problem in either SDL or below,
in the Apple system software (and not necessarily the hardware driver either :/). For the time being, the only solution I see is disabling sound
(and music) completely in EL (in game: options->audio->'disable sound and music system')

In more detail: it looks like the program hangs while trying to get exclusive acces to the sound system (SDL_mutexP and calls from there), while
something else holds on to the sound system ->
EL never gets the lock, and there seems to be no time-out provided -> hang
(NOTE: this is not a crash, EL keeps on running happily ever after, it just can't do anything; that should make for one happy grue )