bradharding / doomretro

The classic, refined DOOM source port. For Windows PC.
https://www.doomretro.com
GNU General Public License v3.0
698 stars 88 forks source link

Crash on startup on Linux (Fedora rawhide) #843

Closed tokyovigilante closed 2 months ago

tokyovigilante commented 2 months ago

As above, Fedora rawhide with SDL 2.30.3.

Testing with the DOOM shareware IWAD:


HU_Init () at /home/ryan/Projects/Develop/doomretro/src/hu_stuff.c:222
222                         + sprites[state->sprite].spriteframes[state->frame & FF_FRAMEMASK].lump[0]);
(gdb) bt
#0  HU_Init () at /home/ryan/Projects/Develop/doomretro/src/hu_stuff.c:222
#1  0x000000000044863f in D_DoomMainSetup () at /home/ryan/Projects/Develop/doomretro/src/d_main.c:2705
#2  0x0000000000448be9 in D_DoomMain () at /home/ryan/Projects/Develop/doomretro/src/d_main.c:2835
#3  0x0000000000448c97 in main (argc=3, argv=0x7fffffffda38) at /home/ryan/Projects/Develop/doomretro/src/doomretro.c:212
(gdb) p sprites
$1 = (spritedef_t *) 0xd117f30
(gdb) p sprites[0]
$2 = {numframes = 21, spriteframes = 0xcf3ba90}
(gdb) p sprites[state->sprite]
$3 = {numframes = 0, spriteframes = 0x0}
(gdb) p state->sprite
$4 = SPR_CELL
(gdb)```
tokyovigilante commented 2 months ago

Interestingly this only occurs with the shareware episode, just tested with the full DOOM IWAD (Steam release) which works fine (well, no music, but that looks like a known bug).

bradharding commented 2 months ago

Thanks @tokyovigilante! Fixed in 749e9e0665c52467caf5de7b4240c86aa3cd39c3.

tokyovigilante commented 2 months ago

Thanks for the quick fix! Seems I was wrong about the music too, just needed to install all the required sound fonts. Great work!