When I run gzdoom with the fluidsynth midi device, I get this crash:
Code: Select all
*** Fatal Error ***
Invalid permissions for mapped object (signal 11)
Address: 0x7f5489088000
Before the crash, there's also this message:
Code: Select all
fluidsynth: warning: Found samples with invalid loops, audible glitches possible.
Here's the backtrace:
Spoiler:Code: Select all
#0 0x00007fffc5d2a657 in fluid_voice_optimize_sample () from /usr/lib/x86_64-linux-gnu/libfluidsynth.so.1
No symbol table info available.
#1 0x00007fffc5d15359 in fluid_defsfont_load () from /usr/lib/x86_64-linux-gnu/libfluidsynth.so.1
No symbol table info available.
#2 0x00007fffc5d15474 in fluid_defsfloader_load () from /usr/lib/x86_64-linux-gnu/libfluidsynth.so.1
No symbol table info available.
#3 0x00007fffc5d22ab9 in fluid_synth_sfload () from /usr/lib/x86_64-linux-gnu/libfluidsynth.so.1
No symbol table info available.
#4 0x000055555789e136 in FluidSynthMIDIDevice::LoadPatchSets (this=0x60d00000c340, patches=0x60d000061c5c "/home/edward-san/.config/gzdoom/soundfonts/SC-55.sf2") at /home/edward-san/zdoom/gzdoom/trunk/src/sound/mididevices/music_fluidsynth_mididevice.cpp:521
path = {Chars = 0x60700031167c "/home/edward-san/.config/gzdoom/soundfonts/SC-55.sf2", static NullString = {Len = 0, AllocLen = 2, RefCount = 124777, Nothing = "\000"}}
info = 0x61500001b600
count = 0
wpatches = 0x6060001e9260 "/home/edward-san/.config/gzdoom/soundfonts/SC-55.sf2"
tok = 0x6060001e9260 "/home/edward-san/.config/gzdoom/soundfonts/SC-55.sf2"
delim = 0x555557f994c0 ":"
#5 0x000055555789d742 in FluidSynthMIDIDevice::FluidSynthMIDIDevice (this=0x60d00000c340, args=0x55555851e2ec <FString::NullString+12> "", samplerate=0) at /home/edward-san/zdoom/gzdoom/trunk/src/sound/mididevices/music_fluidsynth_mididevice.cpp:315
res = 0
res = <optimized out>
#6 0x00005555578c7c95 in MIDIStreamer::CreateMIDIDevice (this=0x61f0000dba80, devtype=MDEV_FLUIDSYNTH, samplerate=0) at /home/edward-san/zdoom/gzdoom/trunk/src/sound/musicformats/music_midistream.cpp:220
checked = {false, false, false, false, false, false, false, false, false}
dev = 0x0
requestedDevice = MDEV_FLUIDSYNTH
selectedDevice = MDEV_FLUIDSYNTH
#7 0x00005555578c8449 in MIDIStreamer::Play (this=0x61f0000dba80, looping=false, subsong=0) at /home/edward-san/zdoom/gzdoom/trunk/src/sound/musicformats/music_midistream.cpp:296
devtype = MDEV_FLUIDSYNTH
__PRETTY_FUNCTION__ = "virtual void MIDIStreamer::Play(bool, int)"
#8 0x0000555557888b02 in MusInfo::Start (this=0x61f0000dba80, loop=false, rel_vol=1, subsong=0) at /home/edward-san/zdoom/gzdoom/trunk/src/sound/i_music.cpp:202
No locals.
#9 0x0000555556ff8dc4 in S_ChangeMusic (musicname=0x60300016a1ac "D_dm2ttl", order=0, looping=false, force=false) at /home/edward-san/zdoom/gzdoom/trunk/src/s_sound.cpp:2737
DEH_Music = {Chars = 0x60300016a1ac "D_dm2ttl", static NullString = {Len = 0, AllocLen = 2, RefCount = 124777, Nothing = "\000"}}
aliasp = 0x0
#10 0x0000555556c68725 in D_DoAdvanceDemo () at /home/edward-san/zdoom/gzdoom/trunk/src/d_main.cpp:1288
demoname = "DEMO1\000\000"
democount = 0
pagecount = 0
pagename = {Chars = 0x60300021733c "TITLEPIC", static NullString = {Len = 0, AllocLen = 2, RefCount = 124777, Nothing = "\000"}}
#11 0x0000555556c800d1 in TryRunTics () at /home/edward-san/zdoom/gzdoom/trunk/src/d_net.cpp:1990
i = 8
lowtic = 1
realtics = 1
availabletics = 1
counts = 0
numplaying = 1
doWait = true
Steps to reproduce:
Code: Select all
gzdoom -iwad DOOM2.WAD +"snd_mididevice -5"
If it may be useful, my copy of SC-55.sf2 has the following SHA-1 hash:
Code: Select all
0ff4cd97bd2ed5fd3e1a97b1528fd4d3855f093a /home/edward-san/.config/gzdoom/soundfonts/SC-55.sf2
Also, it works fine with the Timidity++ device ("snd_mididevice -2")
.
OS: Ubuntu 18.04 x64
[edit] Added a crash log.