Page 2 of 2

Re: Latest git master - ": not an instrument" on startup

Posted: Sat Mar 03, 2018 2:54 pm
by Marisa the Magician
You're right, if I set it to 0 it doesn't crash.

Re: Latest git master - ": not an instrument" on startup

Posted: Sun Mar 04, 2018 7:53 am
by _mental_
Small correction: to make it crash timidity_chorus and timidity_reverb CVARs must be enabled.

Re: Latest git master - ": not an instrument" on startup

Posted: Sun Mar 04, 2018 10:16 pm
by Talon1024
I'm getting this crash, too. However, I don't see the "not an instrument" message on startup; just a crash. I've also tried making a build from commit 2541bd93, which is the parent commit of 8145b520 and it also crashed on me.

However, setting timidity_chorus to 0 also fixes the crash, as _mental_ mentioned above.

Code: Select all

*** Fatal Error ***
Address not mapped to object (signal 11)
Address: 0x454

System: Linux Gamer2015 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

GZDoom version g3.3pre-554-gc9613b2 (c9613b2fd1405055fd19f892fc232ae0546c143b)
Compiler version: 5.4.0 20160609

Command line: /home/kevinc/Games/doom/gzdoom-master-20180303/gzdoom -iwad /home/kevinc/Games/doom/IWADS/DOOM2.WAD +sv_cheats 1 -file /home/kevinc/Games/doom/gzdoom/Doom2VMods/AV.WAD /home/kevinc/Games/doom/gzdoom/D2GameplayMods/Trailblazer_v1.4b.pk3 /home/kevinc/Games/doom/gzdoom/D2GameplayMods/Trailblazer_v1.4b_fix.pk3 /home/kevinc/Games/doom/gzdoom/D2GameplayMods/Trailblazer_v1.4b_sidekicksound.pk3 /home/kevinc/Games/doom/gzdoom/D2GameplayMods/Trailblazer_v1.4b_zshud.pk3 /home/kevinc/Games/doom/gzdoom/D2GameplayMods/ColourfulHell929.pk3 /home/kevinc/Games/doom/gzdoom/misc/MachoMan.wad

Wad 0: gzdoom.pk3
Wad 1: zd_extra.pk3
Wad 2: DOOM2.WAD
Wad 3: lights.pk3
Wad 4: brightmaps.pk3
Wad 5: pk_doom_sfx_20120224.wad
Wad 6: Doom2PK3.pk3
Wad 7: AV.WAD
Wad 8: Trailblazer_v1.4b.pk3
Wad 9: Trailblazer_v1.4b_fix.pk3
Wad 10: Trailblazer_v1.4b_sidekicksound.pk3
Wad 11: Trailblazer_v1.4b_zshud.pk3
Wad 12: ColourfulHell929.pk3
Wad 13: MachoMan.wad

Not in a level.

Executing: gdb --quiet --batch --command=gdb-respfile-q4IJKI
[New LWP 9689]
[New LWP 9690]
[New LWP 9691]
[New LWP 9887]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f5c95052f7b in __waitpid (pid=9891, stat_loc=0x561475f142ac, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29

* Loaded Libraries
From                To                  Syms Read   Shared Object Library
0x00007f5c95278110  0x00007f5c9532e2e0  Yes (*)     /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0
0x00007f5c95047a30  0x00007f5c95054a51  Yes         /lib/x86_64-linux-gnu/libpthread.so.0
0x00007f5c94e3c100  0x00007f5c94e3f1df  Yes         /lib/x86_64-linux-gnu/librt.so.1
0x00007f5c94c21db0  0x00007f5c94c32810  Yes (*)     /lib/x86_64-linux-gnu/libz.so.1
0x00007f5c949cad50  0x00007f5c94a04e80  Yes (*)     /usr/lib/x86_64-linux-gnu/libjpeg.so.8
0x00007f5c947b83c0  0x00007f5c947c4092  Yes (*)     /lib/x86_64-linux-gnu/libbz2.so.1.0
0x00007f5c94570250  0x00007f5c9459ff42  Yes (*)     /usr/lib/x86_64-linux-gnu/libgme.so.0
0x00007f5c94365da0  0x00007f5c9436698e  Yes         /lib/x86_64-linux-gnu/libdl.so.2
0x00007f5c9406cd20  0x00007f5c94118cc9  Yes (*)     /usr/lib/x86_64-linux-gnu/libstdc++.so.6
0x00007f5c93cdf600  0x00007f5c93d50d0a  Yes         /lib/x86_64-linux-gnu/libm.so.6
0x00007f5c93ab2670  0x00007f5c93abdbcb  Yes         /lib/x86_64-linux-gnu/libmvec.so.1
0x00007f5c938951b0  0x00007f5c938a8ffe  Yes (*)     /usr/lib/x86_64-linux-gnu/libgomp.so.1
0x00007f5c9367ba70  0x00007f5c9368b8b5  Yes (*)     /lib/x86_64-linux-gnu/libgcc_s.so.1
0x00007f5c932ce8b0  0x00007f5c93421b04  Yes         /lib/x86_64-linux-gnu/libc.so.6
0x00007f5c92fd9aa0  0x00007f5c93069b02  Yes (*)     /usr/lib/x86_64-linux-gnu/libasound.so.2
0x00007f5c92d6ab20  0x00007f5c92d97b59  Yes (*)     /usr/lib/x86_64-linux-gnu/libpulse.so.0
0x00007f5c92b51be0  0x00007f5c92b58347  Yes (*)     /usr/lib/x86_64-linux-gnu/libsndio.so.6.1
0x00007f5c9282d870  0x00007f5c928b52e4  Yes (*)     /usr/lib/x86_64-linux-gnu/libX11.so.6
0x00007f5c92606590  0x00007f5c9261039f  Yes (*)     /usr/lib/x86_64-linux-gnu/libXext.so.6
0x00007f5c923fb3e0  0x00007f5c923fffd7  Yes (*)     /usr/lib/x86_64-linux-gnu/libXcursor.so.1
0x00007f5c921f6af0  0x00007f5c921f73ec  Yes (*)     /usr/lib/x86_64-linux-gnu/libXinerama.so.1
0x00007f5c91fe81a0  0x00007f5c91ff26f7  Yes (*)     /usr/lib/x86_64-linux-gnu/libXi.so.6
0x00007f5c91ddcc70  0x00007f5c91de2a82  Yes (*)     /usr/lib/x86_64-linux-gnu/libXrandr.so.2
0x00007f5c91bd7cd0  0x00007f5c91bd8a8c  Yes (*)     /usr/lib/x86_64-linux-gnu/libXss.so.1
0x00007f5c919d1fc0  0x00007f5c919d48c8  Yes (*)     /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1
0x00007f5c917cf6a0  0x00007f5c917cf8d6  Yes (*)     /usr/lib/x86_64-linux-gnu/libwayland-egl.so.1
0x00007f5c915c5180  0x00007f5c915c99ff  Yes (*)     /usr/lib/x86_64-linux-gnu/libwayland-client.so.0
0x00007f5c913b9200  0x00007f5c913bad71  Yes (*)     /usr/lib/x86_64-linux-gnu/libwayland-cursor.so.0
0x00007f5c9117ce70  0x00007f5c91197895  Yes (*)     /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0
0x00007f5c95572ac0  0x00007f5c95590850  Yes         /lib64/ld-linux-x86-64.so.2
0x00007f5c90f70800  0x00007f5c90f75612  Yes (*)     /lib/x86_64-linux-gnu/libjson-c.so.2
0x00007f5c90d04e70  0x00007f5c90d47899  Yes (*)     /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-8.0.so
0x00007f5c90ab1460  0x00007f5c90adc1e4  Yes (*)     /lib/x86_64-linux-gnu/libdbus-1.so.3
0x00007f5c90895400  0x00007f5c908a261f  Yes (*)     /lib/x86_64-linux-gnu/libbsd.so.0
0x00007f5c906796b0  0x00007f5c906881a5  Yes (*)     /usr/lib/x86_64-linux-gnu/libxcb.so.1
0x00007f5c90467ad0  0x00007f5c9046d9e5  Yes (*)     /usr/lib/x86_64-linux-gnu/libXrender.so.1
0x00007f5c90261530  0x00007f5c90263756  Yes (*)     /usr/lib/x86_64-linux-gnu/libXfixes.so.3
0x00007f5c900597f0  0x00007f5c9005e09c  Yes (*)     /usr/lib/x86_64-linux-gnu/libffi.so.6
0x00007f5c956e1810  0x00007f5c95738b4f  Yes (*)     /lib/x86_64-linux-gnu/libsystemd.so.0
0x00007f5c8fe50d70  0x00007f5c8fe54798  Yes (*)     /lib/x86_64-linux-gnu/libwrap.so.0
0x00007f5c8fbeb0d0  0x00007f5c8fc2d54c  Yes (*)     /usr/lib/x86_64-linux-gnu/libsndfile.so.1
0x00007f5c8f9e0300  0x00007f5c8f9e2988  Yes (*)     /usr/lib/x86_64-linux-gnu/libasyncns.so.0
0x00007f5c8f7dbe50  0x00007f5c8f7dcacc  Yes (*)     /usr/lib/x86_64-linux-gnu/libXau.so.6
0x00007f5c8f5d61d0  0x00007f5c8f5d7b38  Yes (*)     /usr/lib/x86_64-linux-gnu/libXdmcp.so.6
0x00007f5c8f3b8ab0  0x00007f5c8f3cb29b  Yes (*)     /lib/x86_64-linux-gnu/libselinux.so.1
0x00007f5c8f1930d0  0x00007f5c8f1a724d  Yes (*)     /lib/x86_64-linux-gnu/liblzma.so.5
0x00007f5c8eeb8d00  0x00007f5c8ef59548  Yes (*)     /lib/x86_64-linux-gnu/libgcrypt.so.20
0x00007f5c8ec9aff0  0x00007f5c8eca81e1  Yes         /lib/x86_64-linux-gnu/libnsl.so.1
0x00007f5c8ea2a420  0x00007f5c8ea8bcfd  Yes (*)     /usr/lib/x86_64-linux-gnu/libFLAC.so.8
0x00007f5c8e78ca60  0x00007f5c8e78f1a7  Yes (*)     /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2
0x00007f5c8e561950  0x00007f5c8e5712b8  Yes         /lib/x86_64-linux-gnu/libresolv.so.2
0x00007f5c8e2ef530  0x00007f5c8e33e623  Yes (*)     /lib/x86_64-linux-gnu/libpcre.so.3
0x00007f5c8e0dc8d0  0x00007f5c8e0e5db9  Yes (*)     /lib/x86_64-linux-gnu/libgpg-error.so.0
0x00007f5c8ded2a70  0x00007f5c8ded6c05  Yes (*)     /usr/lib/x86_64-linux-gnu/libogg.so.0
0x00007f5c8dca7d90  0x00007f5c8dcbde6d  Yes (*)     /usr/lib/x86_64-linux-gnu/libvorbis.so.0
0x00007f5c956ac720  0x00007f5c956bde9a  Yes (*)     /lib/x86_64-linux-gnu/libudev.so.1
0x00007f5c8da9d2d0  0x00007f5c8daa2bf1  Yes         /lib/x86_64-linux-gnu/libnss_compat.so.2
0x00007f5c8d8920b0  0x00007f5c8d8988aa  Yes         /lib/x86_64-linux-gnu/libnss_nis.so.2
0x00007f5c8d6801b0  0x00007f5c8d6862a1  Yes         /lib/x86_64-linux-gnu/libnss_files.so.2
0x00007f5c8d3edc80  0x00007f5c8d438d48  Yes         /usr/local/lib/libopenal.so.1
0x00007f5c8d1de3b0  0x00007f5c8d1e06a8  Yes (*)     /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so
0x00007f5c882a23f0  0x00007f5c8831a7d1  Yes (*)     /usr/lib/nvidia-387/libGL.so.1
0x00007f5c8804f9a0  0x00007f5c88051683  Yes (*)     /usr/lib/nvidia-387/tls/libnvidia-tls.so.387.34
0x00007f5c7d397fa0  0x00007f5c7e574d87  Yes (*)     /usr/lib/nvidia-387/libnvidia-glcore.so.387.34
(*): Shared library is missing debugging information.

* Threads
  Id   Target Id         Frame 
* 1    Thread 0x7f5c956c9940 (LWP 9687) "gzdoom" 0x00007f5c95052f7b in __waitpid (pid=9891, stat_loc=0x561475f142ac, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29
  2    Thread 0x7f5c891da700 (LWP 9689) "threaded-ml" 0x00007f5c933aa74d in poll () at ../sysdeps/unix/syscall-template.S:84
  3    Thread 0x7f5c889d9700 (LWP 9690) "gzdoom" 0x00007f5c933aa74d in poll () at ../sysdeps/unix/syscall-template.S:84
  4    Thread 0x7f5c9578e940 (LWP 9691) "gzdoom" 0x00007f5c94e3eee5 in timer_helper_thread (arg=<optimized out>) at ../sysdeps/unix/sysv/linux/timer_routines.c:89
  5    Thread 0x7f5c7f7a8700 (LWP 9887) "gzdoom" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225

* FPU Status
  R7: Empty   0x00000000000000000000
  R6: Empty   0x00000000000000000000
  R5: Empty   0x00000000000000000000
  R4: Empty   0x00000000000000000000
  R3: Empty   0x00000000000000000000
  R2: Empty   0x00000000000000000000
  R1: Empty   0x00000000000000000000
=>R0: Empty   0x00000000000000000000

Status Word:         0x0000                                            
                       TOP: 0
Control Word:        0x027f   IM DM ZM OM UM PM
                       PC: Double Precision (53-bits)
                       RC: Round to nearest
Tag Word:            0xffff
Instruction Pointer: 0x7f5c:0x7e301c5d
Operand Pointer:     0x7ffc:0x7a87310c
Opcode:              0x0000

* Registers
rax            0xfffffffffffffe00	-512
rbx            0x26a3	9891
rcx            0x7f5c95052f7b	140035613863803
rdx            0x0	0
rsi            0x561475f142ac	94645878080172
rdi            0x26a3	9891
rbp            0x561475f142ac	0x561475f142ac
rsp            0x561475f14270	0x561475f14270
r8             0x0	0
r9             0x7f5c956c9940	140035620641088
r10            0x0	0
r11            0x246	582
r12            0x0	0
r13            0x1090	4240
r14            0x561475f11780	94645878069120
r15            0x28	40
rip            0x7f5c95052f7b	0x7f5c95052f7b <__waitpid+107>
eflags         0x246	[ PF ZF IF ]
cs             0x33	51
ss             0x2b	43
ds             0x0	0
es             0x0	0
fs             0x0	0
gs             0x0	0

* Backtrace

Thread 5 (Thread 0x7f5c7f7a8700 (LWP 9887)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
No locals.
#1  0x00005614755ebd53 in OpenALSoundRenderer::BackgroundProc() ()
No symbol table info available.
#2  0x00007f5c9409bc80 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#3  0x00007f5c950496ba in start_thread (arg=0x7f5c7f7a8700) at pthread_create.c:333
        __res = <optimized out>
        pd = 0x7f5c7f7a8700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140035252455168, -7830743771647842767, 0, 140722364166607, 8388608, 140034992769632, 7920533168188548657, 7920343067929470513}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#4  0x00007f5c933b641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 4 (Thread 0x7f5c9578e940 (LWP 9691)):
#0  0x00007f5c94e3eee5 in timer_helper_thread (arg=<optimized out>) at ../sysdeps/unix/sysv/linux/timer_routines.c:89
        resultvar = <optimized out>
        sc_cancel_oldtype = 0
        sc_ret = <optimized out>
        si = {si_signo = 32, si_errno = 0, si_code = -2, _sifields = {_pad = {1, 0, 2018970608, 22036, 0 <repeats 24 times>}, _kill = {si_pid = 1, si_uid = 0}, _timer = {si_tid = 1, si_overrun = 0, si_sigval = {sival_int = 2018970608, sival_ptr = 0x561478570bf0}}, _rt = {si_pid = 1, si_uid = 0, si_sigval = {sival_int = 2018970608, sival_ptr = 0x561478570bf0}}, _sigchld = {si_pid = 1, si_uid = 0, si_status = 2018970608, si_utime = 0, si_stime = 0}, _sigfault = {si_addr = 0x1, si_addr_lsb = 3056, si_addr_bnd = {_lower = 0x0, _upper = 0x0}}, _sigpoll = {si_band = 1, si_fd = 2018970608}, _sigsys = {_call_addr = 0x1, _syscall = 2018970608, _arch = 22036}}}
        ss = {__val = {2147483648, 0 <repeats 15 times>}}
#1  0x00007f5c950496ba in start_thread (arg=0x7f5c9578e940) at pthread_create.c:333
        __res = <optimized out>
        pd = 0x7f5c9578e940
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140035621448000, -7830743771647842767, 0, 140722364166527, 140035621448704, 140722364167744, 7920344066205935153, 7920343067929470513}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#2  0x00007f5c933b641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 3 (Thread 0x7f5c889d9700 (LWP 9690)):
#0  0x00007f5c933aa74d in poll () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1  0x00007f5c92ffd706 in ?? () from /usr/lib/x86_64-linux-gnu/libasound.so.2
No symbol table info available.
#2  0x00007f5c8d42e447 in ALCplaybackAlsa_mixerNoMMapProc (ptr=ptr@entry=0x5614785baa60) at /home/kevinc/Games/code/openal-soft/Alc/backends/alsa.c:613
        state = 3
        self = 0x5614785baa60
        device = 0x5614785d5890
        update_size = 1024
        num_updates = <optimized out>
        avail = <optimized out>
        WritePtr = <optimized out>
        err = <optimized out>
        __FUNCTION__ = "ALCplaybackAlsa_mixerNoMMapProc"
#3  0x00007f5c8d3eefb7 in althrd_starter (arg=<optimized out>) at /home/kevinc/Games/code/openal-soft/common/threads.c:526
        cntr = {func = 0x7f5c8d42e340 <ALCplaybackAlsa_mixerNoMMapProc>, arg = 0x5614785baa60}
#4  0x00007f5c950496ba in start_thread (arg=0x7f5c889d9700) at pthread_create.c:333
        __res = <optimized out>
        pd = 0x7f5c889d9700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140035405747968, -7830743771647842767, 0, 140722364166527, 140035405748672, 94645918607968, 7920298184622204465, 7920343067929470513}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#5  0x00007f5c933b641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 2 (Thread 0x7f5c891da700 (LWP 9689)):
#0  0x00007f5c933aa74d in poll () at ../sysdeps/unix/syscall-template.S:84
No locals.
#1  0x00007f5c92d91861 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
No symbol table info available.
#2  0x00007f5c92d82e11 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
No symbol table info available.
#3  0x00007f5c92d834ae in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
No symbol table info available.
#4  0x00007f5c92d83560 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
No symbol table info available.
#5  0x00007f5c92d917a9 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
No symbol table info available.
#6  0x00007f5c90d43078 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-8.0.so
No symbol table info available.
#7  0x00007f5c950496ba in start_thread (arg=0x7f5c891da700) at pthread_create.c:333
        __res = <optimized out>
        pd = 0x7f5c891da700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140035414140672, -7830743771647842767, 0, 140722364157983, 140035414141376, 1, 7920299284670703153, 7920343067929470513}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
        pagesize_m1 = <optimized out>
        sp = <optimized out>
        freesize = <optimized out>
        __PRETTY_FUNCTION__ = "start_thread"
#8  0x00007f5c933b641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
No locals.

Thread 1 (Thread 0x7f5c956c9940 (LWP 9687)):
#0  0x00007f5c95052f7b in __waitpid (pid=9891, stat_loc=0x561475f142ac, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29
        resultvar = 18446744073709551104
        sc_cancel_oldtype = 0
#1  0x000056147542dd04 in ?? ()
No symbol table info available.
#2  <signal handler called>
No locals.
#3  0x00005614756066aa in TimidityPlus::Reverb::do_ch_stereo_chorus(int*, int, TimidityPlus::InfoStereoChorus*) ()
No symbol table info available.
#4  0x0000561475b2415d in TimidityPlus::Player::do_compute_data(int) ()
No symbol table info available.
#5  0x0000561475b244b7 in TimidityPlus::Player::compute_data(float*, int) ()
No symbol table info available.
#6  0x0000561475abe23a in SoftSynthMIDIDevice::ServiceStream(void*, int) ()
No symbol table info available.
#7  0x00005614755eed10 in OpenALSoundStream::Play(bool, float) ()
No symbol table info available.
#8  0x0000561475abddbb in SoftSynthMIDIDevice::Resume() ()
No symbol table info available.
#9  0x0000561475acbf11 in MIDIStreamer::Play(bool, int) ()
No symbol table info available.
#10 0x0000561475ab6cad in MusInfo::Start(bool, float, int) ()
No symbol table info available.
#11 0x00005614758a651d in S_ChangeMusic(char const*, int, bool, bool) ()
No symbol table info available.
#12 0x00005614756e46be in D_DoAdvanceDemo() ()
No symbol table info available.
#13 0x00005614756f0ad5 in TryRunTics() ()
No symbol table info available.
#14 0x00005614756e701b in D_DoomLoop() ()
No symbol table info available.
#15 0x00005614756e8987 in D_DoomMain() ()
No symbol table info available.
#16 0x00005614754157ee in main ()
No symbol table info available.

Re: Latest git master - ": not an instrument" on startup

Posted: Mon Mar 05, 2018 12:10 am
by _mental_
It’s not a platform specific issue. I guess this could be related to commented out option in MENUDEF

Code: Select all

// This one needs reworking
//Option "$ADVSNDMNU_REVERB", 			"timidity_reverb", "OnOff"

Re: Latest git master - ": not an instrument" on startup

Posted: Mon Mar 05, 2018 5:11 am
by _mental_
The crash can fixed by replacing init_reverb() with init_for_effect() function here. Effects seem to apply correctly after that.
Graf, is this the right way to fix it? I'm still curious about commented reverb menu option.

Re: Latest git master - ": not an instrument" on startup

Posted: Mon Mar 05, 2018 10:54 am
by Graf Zahl
Trying to fix the allocation issues in code that just assumes that no buffers will ever be reallocated is a tricky thing. Calling init_for_effect should be fine, but don't take my word for it.
About the menu option, if the feature works, the option can be uncommented. And before we forget, timidity_reverb is not a bool ,but I'm not sure yet what should be exposed and what not.

Re: Latest git master - ": not an instrument" on startup

Posted: Mon Mar 05, 2018 2:35 pm
by _mental_
Regarding reverb values manpage says

Code: Select all

0   Disable MIDI reverb effect control.
1   Enable  MIDI  reverb  effect control.  This
    effect is only available in stereo.
2   Global reverb effect.
3   Freeverb   MIDI   reverb   effect   control
    (default).
4   Global Freeverb effect.
Negative values represent reverb level from 0 to 127. Not sure that it's possible to express that in menu.

Could it be better to split timidity_reverb onto two distinct CVARs, one for mode and one for level.
It will nice to have short but expressive names for modes too.

Re: ": not an instrument" on startup + timidity reverb crash

Posted: Sun Mar 25, 2018 12:28 am
by Graf Zahl
I do not know what the problem is The message appears when it tries to load a patch but cannot identify its format. To do any further analysis here I need to have the exact patch set that caused the error.

Some of the things that came up later in that thread have been addressed.

Re: Latest git master - ": not an instrument" on startup

Posted: Sun Mar 25, 2018 1:18 am
by _mental_
It's about a crash when timidity_chorus and timidity_reverb are non-zero.
_mental_ wrote:The crash can fixed by replacing init_reverb() with init_for_effect() function here.
GZDoom still crashes with these settings.

Re: ": not an instrument" on startup + timidity reverb crash

Posted: Sun Mar 25, 2018 2:15 am
by Graf Zahl
I cannot fix this because the memory allocation of Timidity++ is too messed up. I think the only solution is to restart the song when changes are being made that require a non-trivial memory reallocation.

Re: ": not an instrument" on startup + timidity reverb crash

Posted: Sun Mar 25, 2018 4:14 am
by Graf Zahl
For now I added a band-aid fix, but to do this properly I first need to understand what screwed up logic this code follows to decide what to initialize and what not.