-
Notifications
You must be signed in to change notification settings - Fork 10
Description
重现方法:
启动go-mud连接服务器,exit退回终端,重复多次后在游戏界面输入 Ctrl+C
$ ~/go-mud/go-mud --mud.encoding GBK -c ~/go-mud/profile/JHL/config.json
$ ~/go-mud/go-mud --mud.encoding GBK -c ~/go-mud/profile/JHL/config.json
$ ~/go-mud/go-mud --mud.encoding GBK -c ~/go-mud/profile/JHL/config.json
panic: runtime error: slice bounds out of range [-3:] [recovered]
panic: runtime error: slice bounds out of range [-3:]
goroutine 10 [running]:
github.com/rivo/tview.(*Application).Run.func1(0xc000106580)
github.com/rivo/[email protected]/application.go:149 +0x82
panic(0x162c400, 0xc000528000)
runtime/panic.go:679 +0x1b2
github.com/mudclient/go-mud/ui.(*UI).stopScrolling(0xc0000b6580)
github.com/mudclient/go-mud@/ui/ui.go:239 +0x235
github.com/mudclient/go-mud/ui.(*UI).InputCapture(0xc0000b6580, 0xc0002a6000, 0xc000106580)
github.com/mudclient/go-mud@/ui/ui.go:118 +0x5d
github.com/rivo/tview.(*Application).Run(0xc000106580, 0x0, 0x0)
github.com/rivo/[email protected]/application.go:219 +0x486
github.com/mudclient/go-mud/ui.(*UI).Run(0xc0000b6580)
github.com/mudclient/go-mud@/ui/ui.go:197 +0x67
created by main.(*Client).Run
github.com/mudclient/go-mud@/main.go:66 +0x202