Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/pydevd.py", line 1477, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Volumes/GREY/code/csgo/parse_csgo.py", line 19, in <module>
main()
File "/Volumes/GREY/code/csgo/parse_csgo.py", line 14, in main
data = demo_parser._parse_demo()
File "/Volumes/GREY/code/csgo/csgo/parser/demoparser.py", line 117, in _parse_demo
self.output_file = output[0]
IndexError: list index out of range
INFO: 2021/02/24 11:52:36 parse_demo.go:631: Started demoparser
INFO: 2021/02/24 11:52:36 parse_demo.go:655: Parsed arguments, reading in /Volumes/GREY/code/csgo/data/secret-club-vs-triumph-m2-inferno.dem and a parse rate of 8
INFO: 2021/02/24 11:52:36 parse_demo.go:677: Parsed demo header and mesh for map de_inferno
INFO: 2021/02/24 11:52:36 parse_demo.go:710: Demo is of type GOTV Demo with tickrate 128
INFO: 2021/02/24 11:52:36 parse_demo.go:711: Demo name is secret-club-vs-triumph-m2-inferno from /Volumes/GREY/code/csgo/data/secret-club-vs-triumph-m2-inferno.dem
INFO: 2021/02/24 11:52:36 parse_demo.go:712: Registering event handlers, parsing demo
ERROR: 2021/02/24 11:52:43 parse_demo.go:1700: DEMO STREAM ERROR
WARNING: 2021/02/24 11:52:43 parse_demo.go:1701: Demo stream errors can still write output, check for JSON file
ERROR: 2021/02/24 11:52:43 parse_demo.go:1702: runtime error: index out of range [-1]
stacktrace:
goroutine 6 [running]:
runtime/debug.Stack(0x203000, 0x203000, 0x1f149f0)
/usr/local/Cellar/go/1.15.8/libexec/src/runtime/debug/stack.go:24 +0x9f
github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs.NewParserWithConfig.func1(0x14be200, 0xc0028073e0)
/Users/ask/.local/go/pkg/mod/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs/parser.go:316 +0x2f
github.com/markus-wa/godispatch.(*Dispatcher).dispatchWithRecover.func1(0xc00005e2a0)
/Users/ask/.local/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:190 +0x6b
panic(0x14be200, 0xc0028073e0)
/usr/local/Cellar/go/1.15.8/libexec/src/runtime/panic.go:969 +0x1b9
github.com/markus-wa/godispatch.callConsumerCode.func1()
/Users/ask/.local/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:120 +0x88
panic(0x14be200, 0xc0028073d0)
/usr/local/Cellar/go/1.15.8/libexec/src/runtime/panic.go:969 +0x1b9
github.com/markus-wa/godispatch.callConsumerCode.func1()
/Users/ask/.local/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:120 +0x88
panic(0x14d4ea0, 0xc003ec6a80)
/usr/local/Cellar/go/1.15.8/libexec/src/runtime/panic.go:969 +0x1b9
main.main.func13()
/Volumes/GREY/code/csgo/csgo/parser/parse_demo.go:1592 +0x168e
reflect.Value.call(0x147b440, 0xc00008c060, 0x13, 0x151a4a6, 0x4, 0xc0005e5ae0, 0x1, 0x1, 0x14bcb80, 0xc003c6efd0, ...)
/usr/local/Cellar/go/1.15.8/libexec/src/reflect/value.go:476 +0x8c7
reflect.Value.Call(0x147b440, 0xc00008c060, 0x13, 0xc0005e5ae0, 0x1, 0x1, 0xc001efe948, 0x70decf1d78da4601, 0x70000000013fcf25)
/usr/local/Cellar/go/1.15.8/libexec/src/reflect/value.go:337 +0xb9
github.com/markus-wa/godispatch.callConsumerCode(0x147b440, 0xc00008c060, 0x13, 0xc0005e5ae0, 0x1, 0x1)
/Users/ask/.local/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:123 +0x8c
github.com/markus-wa/godispatch.(*Dispatcher).Dispatch(0xc00005e300, 0x149ab00, 0x18d5bd0)
/Users/ask/.local/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:109 +0x252
github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs.(*parser).handleFrameParsed(0xc000001200, 0x18d5bd0)
/Users/ask/.local/go/pkg/mod/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs/parsing.go:374 +0xa5
reflect.Value.call(0x147adc0, 0xc000052660, 0x13, 0x151a4a6, 0x4, 0xc0005e5f28, 0x1, 0x1, 0xc0005e5e30, 0x0, ...)
/usr/local/Cellar/go/1.15.8/libexec/src/reflect/value.go:476 +0x8c7
reflect.Value.Call(0x147adc0, 0xc000052660, 0x13, 0xc0005e5f28, 0x1, 0x1, 0xc0000211e8, 0x836af79e65938001, 0x830000000105f940)
/usr/local/Cellar/go/1.15.8/libexec/src/reflect/value.go:337 +0xb9
github.com/markus-wa/godispatch.callConsumerCode(0x147adc0, 0xc000052660, 0x13, 0xc0005e5f28, 0x1, 0x1)
/Users/ask/.local/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:123 +0x8c
github.com/markus-wa/godispatch.(*Dispatcher).Dispatch(0xc00005e2a0, 0x1469460, 0x18d5bd0)
/Users/ask/.local/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:109 +0x252
github.com/markus-wa/godispatch.(*Dispatcher).dispatchWithRecover(0xc00005e2a0, 0x1469460, 0x18d5bd0)
/Users/ask/.local/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:195 +0x66
github.com/markus-wa/godispatch.(*Dispatcher).dispatchQueue(0xc00005e2a0, 0xc00005e360)
/Users/ask/.local/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:171 +0xf4
created by github.com/markus-wa/godispatch.(*Dispatcher).AddQueues
/Users/ask/.local/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:157 +0x148
INFO: 2021/02/24 11:52:43 parse_demo.go:1610: Parsed %s /Volumes/GREY/code/csgo/data/secret-club-vs-triumph-m2-inferno.dem
The bug appears on macOS 11.2.1, Python 3.9.1, Go 1.15.8.