Newer versions of MixerX will crash the game on start if midi settings are changed at all
after you enable midi if you close the game, the game crashes, also this is a clean build
backtrace:
Added file /home/bitten2up/.srb2/music.dta (181 lumps)
I_StartupGraphics()...
CPU Info: 486: 0, 586: 1, MMX: 1, 3DNow: 0, MMXExt: 0, SSE2: 1
Number of console HUD lines is now 5
I_InitJoystick()...
HU_LoadGraphics()...
executing /home/bitten2up/.srb2/config.cfg
An error occurred within SRB2! Send this stack trace to someone who can help!
(Or find crash-log.txt in your SRB2 directory.)
Backtrace:
bin/lsdl2srb2(+0x854a0)[0x555a9a6a64a0]
bin/lsdl2srb2(+0x855c8)[0x555a9a6a65c8]
/usr/lib/libc.so.6(+0x3e710)[0x7fa4ca3ca710]
/usr/lib/libc.so.6(+0x1696bb)[0x7fa4ca4f56bb]
bin/lsdl2srb2(I_LoadSong+0x176)[0x555a9a6b1a26]
bin/lsdl2srb2(S_ChangeMusicEx+0x205)[0x555a9a88cd05]
bin/lsdl2srb2(+0x116a56)[0x555a9a737a56]
bin/lsdl2srb2(COM_BufExecute+0xd2)[0x555a9a737052]
bin/lsdl2srb2(COM_BufInsertTextEx+0x3a)[0x555a9a73710a]
bin/lsdl2srb2(M_FirstLoadConfig+0xb3)[0x555a9a77e6d3]
bin/lsdl2srb2(D_SRB2Main+0x602)[0x555a9a6de502]
bin/lsdl2srb2(main+0x54)[0x555a9a6a5964]
/usr/lib/libc.so.6(+0x27cd0)[0x7fa4ca3b3cd0]
/usr/lib/libc.so.6(__libc_start_main+0x8a)[0x7fa4ca3b3d8a]
bin/lsdl2srb2(_start+0x25)[0x555a9a6a5b95]
Process killed by signal: SIGSEGV (core dumped)
Shutdown tty console
addr2line output:
master f644877b
/home/bitten2up/srb2/src/sdl/i_system.c:314
/home/bitten2up/srb2/src/sdl/i_system.c:820
??:0
/home/bitten2up/srb2/src/p_enemy.c:2526
/home/bitten2up/srb2/src/sdl/mixer_sound.c:143 (discriminator 2)
/home/bitten2up/srb2/src/command.c:2446
/home/bitten2up/srb2/src/command.c:265
/home/bitten2up/srb2/src/command.c:191
/home/bitten2up/srb2/src/m_misc.c:563
/home/bitten2up/srb2/src/d_main.c:1505
/home/bitten2up/srb2/src/sdl/i_main.c:219
??:0
??:0
??:?
when building I am getting these warnings
sdl/mixer_sound.c: In function ‘Midiplayer_Onchange’:
sdl/mixer_sound.c:151:9: warning: ‘Mix_Timidity_addToPathList’ is deprecated: Use Mix_SetTimidityCfg(path) instead [-Wdeprecated-declarations]
151 | Mix_Timidity_addToPathList(cv_miditimiditypath.string);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sdl/mixer_sound.c:53:
/usr/include/SDL2/SDL_mixer_ext.h:3857:30: note: declared here
3857 | extern DECLSPEC void MIXCALL Mix_Timidity_addToPathList(const char *path);/*MixerX*/
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
sdl/mixer_sound.c: In function ‘I_StartupSound’:
sdl/mixer_sound.c:289:9: warning: ‘Mix_Timidity_addToPathList’ is deprecated: Use Mix_SetTimidityCfg(path) instead [-Wdeprecated-declarations]
289 | Mix_Timidity_addToPathList(cv_miditimiditypath.string);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/SDL2/SDL_mixer_ext.h:3857:30: note: declared here
3857 | extern DECLSPEC void MIXCALL Mix_Timidity_addToPathList(const char *path);/*MixerX*/
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
sdl/mixer_sound.c: In function ‘I_GetSongLength’:
sdl/mixer_sound.c:945:17: warning: ‘Mix_GetMusicTotalTime’ is deprecated: Use Mix_MusicDuration(Mix_Music*) instead [-Wdeprecated-declarations]
945 | double xlength = Mix_GetMusicTotalTime(music);
| ^~~~~~
/usr/include/SDL2/SDL_mixer_ext.h:3312:32: note: declared here
3312 | extern DECLSPEC double MIXCALL Mix_GetMusicTotalTime(Mix_Music *music);/*MixerX*/
| ^~~~~~~~~~~~~~~~~~~~~
sdl/mixer_sound.c: In function ‘I_LoadSong’:
sdl/mixer_sound.c:1203:9: warning: ‘Mix_Timidity_addToPathList’ is deprecated: Use Mix_SetTimidityCfg(path) instead [-Wdeprecated-declarations]
1203 | Mix_Timidity_addToPathList(cv_miditimiditypath.string); // this overwrites previous custom path
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/SDL2/SDL_mixer_ext.h:3857:30: note: declared here
3857 | extern DECLSPEC void MIXCALL Mix_Timidity_addToPathList(const char *path);/*MixerX*/
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Edited by bitten2up