zmnpl/twad

panic: runtime error: index out of range [1] with length 0

Opened this issue · 1 comments

Hey. I just started getting this error after a system update.

$ twad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
panic: runtime error: index out of range [1] with length 0

goroutine 20 [running]:
github.com/zmnpl/twad/ports/savesStats.reSubMatchMap(0xc00096e0a0, {0xc0003b2140?, 0x0?})
        github.com/zmnpl/twad/ports/savesStats/helper.go:110 +0x10c
github.com/zmnpl/twad/ports/savesStats.GetBoomStats({0xc0003b20c0?, 0xc0003b0000?})
        github.com/zmnpl/twad/ports/savesStats/boom.go:23 +0x105
github.com/zmnpl/twad/games.(*Game).GetStats(0xc00014a818, {0x0, 0x0})
        github.com/zmnpl/twad/games/game.go:378 +0xf2
github.com/zmnpl/twad/games.(*Game).ReadLatestStats(0xc00014a818)
        github.com/zmnpl/twad/games/game.go:389 +0x32
created by github.com/zmnpl/twad/games.loadGames in goroutine 1
        github.com/zmnpl/twad/games/gameList.go:127 +0x90
$ uname -r                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
6.10.3-arch1-2
$ pacman -Qi twad-git
Name            : twad-git
Version         : 0.22.1.3-1
Description     : Manage DOOM engines and mods with the terminal wad launcher
Architecture    : any
URL             : https://github.com/zmnpl/twad
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : None
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 8.90 MiB
Packager        : Unknown Packager
Build Date      : Sun 11 Aug 2024 05:57:32 AM EDT
Install Date    : Sun 11 Aug 2024 05:57:38 AM EDT
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None

I'm getting this same issue (Linux Mint 22, bug has been around for at least a few months now). I noticed it only happened to me after I ran dsda-doom for the first time though.