FS#3272 - crash when leaving to menu with -v allegro -m extmidi

Attached to Project: OpenTTD
Opened by Zdeněk Sojka (SmatZ) - Monday, 19 October 2009, 19:56 GMT
Last edited by Remko Bijker (Rubidium) - Wednesday, 16 December 2009, 23:49 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System Linux
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



OTTD sometimes crashes (1 in 4 tries) when aborting world generation when run with:
-v allegro
-m extmidi
-s (any)

With "-m null", it doesn't crash. Sound driver doesn't seem to affect behaviour.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Wednesday, 16 December 2009, 23:49 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r18520
Comment by Zdeněk Sojka (SmatZ) - Monday, 19 October 2009, 22:33 GMT
Crashes when leaving the game to menu too. Music has to be playing (for me, using extmidi, but no midi output is available, so no music can be heard).
Comment by Zdeněk Sojka (SmatZ) - Tuesday, 20 October 2009, 20:01 GMT
Another crashy combinations:

-v sdl -s allegro -m extmidi

or run without parameters, allegro music driver is just probed in that case:
# bin/openttd -d driver=9
dbg: [driver] Successfully probed blitter '8bpp-optimized'
dbg: [driver] Loading drivers...
dbg: [driver] Successfully probed sound driver 'sdl'
dbg: [driver] allegro: no midi card found
dbg: [driver] Probing music driver 'allegro' failed with error: No sound card found
dbg: [driver] Successfully probed music driver 'extmidi'
dbg: [driver] SDL: using mode 1280x960x8
dbg: [driver] SDL: using driver 'x11'
dbg: [driver] Successfully probed video driver 'sdl'
dbg: [driver] extmidi: set volume not implemented
dbg: [driver] SDL: using threads
Shutting down Allegro due to signal #15
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 1460 requests (1459 known processed) with 0 events remaining.
Comment by Remko Bijker (Rubidium) - Tuesday, 15 December 2009, 00:07 GMT
Does it also happen when you skip songs in-game?