Comments (8)
Hi, I tried both demos without issue - are you sure it's the correct demo?
The stack trace would be helpful too, thanks
from demoinfocs-golang.
Yeah, just retested with the same demo. It was the ancient m1 demo and I am still getting this error. Here is the stacktrace. Thanks!
2023/11/22 10:57:52 failed to parse demo: interface conversion: interface {} is *sendtables2.fieldState, not uint64
stacktrace:
goroutine 6 [running]:
runtime/debug.Stack()
/usr/lib/go-1.18/src/runtime/debug/stack.go:24 +0x65
github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs.NewParserWithConfig.func1({0x791480, 0xc00101e080})
/home/gonzo/go/pkg/mod/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs/parser.go:388 +0x30
github.com/markus-wa/godispatch.(*Dispatcher).dispatchWithRecover.func1()
/home/gonzo/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:197 +0x42
panic({0x791480, 0xc00101e080})
/usr/lib/go-1.18/src/runtime/panic.go:838 +0x207
github.com/markus-wa/godispatch.callConsumerCode.func1()
/home/gonzo/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:122 +0x5f
panic({0x76bb00, 0xc000f05200})
/usr/lib/go-1.18/src/runtime/panic.go:838 +0x207
github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables.PropertyValue.S2UInt64(...)
/home/gonzo/go/pkg/mod/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs/sendtables/propdecoder.go:152
github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs.(*parser).bindPlayerWeaponsS2.func3({{0x0, 0x0, 0x0}, 0x0, 0x0, {0x0, 0x0, 0x0}, {0x8b1990, 0x0}, ...})
/home/gonzo/go/pkg/mod/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs/datatables.go:732 +0x93
github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables2.(*Parser).OnPacketEntities(0xc0000a6190, 0xc000596270)
/home/gonzo/go/pkg/mod/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs/sendtables2/entity.go:568 +0x8f9
reflect.Value.call({0x743720?, 0xc00000c5d0?, 0xc0002e7ad0?}, {0x84030e, 0x4}, {0xc000b93f08, 0x1, 0x0?})
/usr/lib/go-1.18/src/reflect/value.go:556 +0x845
reflect.Value.Call({0x743720?, 0xc00000c5d0?, 0x0?}, {0xc000b93f08, 0x1, 0x1})
/usr/lib/go-1.18/src/reflect/value.go:339 +0xbf
github.com/markus-wa/godispatch.callConsumerCode({0x743720?, 0xc00000c5d0?, 0x8230c0?}, {0xc000b93f08?, 0xc000a80000?, 0x436656?})
/home/gonzo/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:125 +0x4a
github.com/markus-wa/godispatch.(*Dispatcher).Dispatch(0xc00009c300, {0x8230c0?, 0xc000596270})
/home/gonzo/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:111 +0x293
github.com/markus-wa/godispatch.(*Dispatcher).dispatchWithRecover(0xc00009c300?, {0x8230c0?, 0xc000596270?})
/home/gonzo/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:202 +0x5a
github.com/markus-wa/godispatch.(*Dispatcher).dispatchQueue(0xc00009c300, 0x0?)
/home/gonzo/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:177 +0xb1
created by github.com/markus-wa/godispatch.(*Dispatcher).AddQueues
/home/gonzo/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:162 +0x18e
panic: failed to parse demo: interface conversion: interface {} is *sendtables2.fieldState, not uint64
stacktrace:
goroutine 6 [running]:
runtime/debug.Stack()
/usr/lib/go-1.18/src/runtime/debug/stack.go:24 +0x65
github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs.NewParserWithConfig.func1({0x791480, 0xc00101e080})
/home/gonzo/go/pkg/mod/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs/parser.go:388 +0x30
github.com/markus-wa/godispatch.(*Dispatcher).dispatchWithRecover.func1()
/home/gonzo/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:197 +0x42
panic({0x791480, 0xc00101e080})
/usr/lib/go-1.18/src/runtime/panic.go:838 +0x207
github.com/markus-wa/godispatch.callConsumerCode.func1()
/home/gonzo/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:122 +0x5f
panic({0x76bb00, 0xc000f05200})
/usr/lib/go-1.18/src/runtime/panic.go:838 +0x207
github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables.PropertyValue.S2UInt64(...)
/home/gonzo/go/pkg/mod/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs/sendtables/propdecoder.go:152
github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs.(*parser).bindPlayerWeaponsS2.func3({{0x0, 0x0, 0x0}, 0x0, 0x0, {0x0, 0x0, 0x0}, {0x8b1990, 0x0}, ...})
/home/gonzo/go/pkg/mod/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs/datatables.go:732 +0x93
github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/sendtables2.(*Parser).OnPacketEntities(0xc0000a6190, 0xc000596270)
/home/gonzo/go/pkg/mod/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs/sendtables2/entity.go:568 +0x8f9
reflect.Value.call({0x743720?, 0xc00000c5d0?, 0xc0002e7ad0?}, {0x84030e, 0x4}, {0xc000b93f08, 0x1, 0x0?})
/usr/lib/go-1.18/src/reflect/value.go:556 +0x845
reflect.Value.Call({0x743720?, 0xc00000c5d0?, 0x0?}, {0xc000b93f08, 0x1, 0x1})
/usr/lib/go-1.18/src/reflect/value.go:339 +0xbf
github.com/markus-wa/godispatch.callConsumerCode({0x743720?, 0xc00000c5d0?, 0x8230c0?}, {0xc000b93f08?, 0xc000a80000?, 0x436656?})
/home/gonzo/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:125 +0x4a
github.com/markus-wa/godispatch.(*Dispatcher).Dispatch(0xc00009c300, {0x8230c0?, 0xc000596270})
/home/gonzo/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:111 +0x293
github.com/markus-wa/godispatch.(*Dispatcher).dispatchWithRecover(0xc00009c300?, {0x8230c0?, 0xc000596270?})
/home/gonzo/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:202 +0x5a
github.com/markus-wa/godispatch.(*Dispatcher).dispatchQueue(0xc00009c300, 0x0?)
/home/gonzo/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:177 +0xb1
created by github.com/markus-wa/godispatch.(*Dispatcher).AddQueues
/home/gonzo/go/pkg/mod/github.com/markus-wa/[email protected]/dispatch.go:162 +0x18e
goroutine 1 [running]:
log.Panic({0xc00008df40?, 0x738c40?, 0x855f68?})
/usr/lib/go-1.18/src/log/log.go:385 +0x65
main.main()
/home/gonzo/Refrag/2d-demo-parser/cmd/main.go:38 +0x1f2
from demoinfocs-golang.
I have the same experience as @akiver - not seeing this issue on noesis.gg.
What machine are you running this on? OS and processor architecture?
from demoinfocs-golang.
Running this on WSL on Windows 11.
On WSL im running Ubuntu 22.04
from demoinfocs-golang.
@maddenbjames would you be able to create a zip with the full code code including go.mod & go.sum that you are using?
from demoinfocs-golang.
Yeah, here is the attached file.
Its too big to upload here so here is the download
Google Drive: https://drive.google.com/file/d/1MndKeZneUirM_RVROW8NSw4vJS60tdNY/view?usp=sharing
from demoinfocs-golang.
Hmm - I run the exact same code on my macbook and it seems to work. Maybe a weird issue related to WSL Ubuntu?
from demoinfocs-golang.
I figured it out, sorry for the trouble. Turns out that I had an outdated gopls version via VS Code and it was messing with a lot of go related stuff. Seems to be working as expected.
from demoinfocs-golang.
Related Issues (20)
- Player equipment incorrect HOT 6
- How to get crc-map code? HOT 8
- Missing - Unknown granade model HOT 1
- There is no kill events on Esportal demos but kills are there when demo is played with the game HOT 3
- interface conversion: interface {} is *sendtables2.fieldState, not uint64 HOT 1
- Missing player in TeamState.Members() HOT 6
- No ItemDrop events fround from CS2 demos HOT 2
- Players are assigned to the wrong teams HOT 13
- Events are not firing in CS2 GOTV demo HOT 5
- Parser crashes after CS2 update 2/6/2024 HOT 18
- Parsing is crashing with signal: killed (CS2 update 2/6/2024) HOT 1
- panic: serializer CWorld: field path has no field (CS2 update 2/6/2024) HOT 1
- Proper support for polymorphic fields HOT 1
- Go 1.22 is not supported HOT 1
- Event PlayerDisconnected is not triggered anymore for bot leaving the game (on v4.0.2, it was working on v4.0.1) HOT 1
- Bot doesn't leave connected player list after PlayerDisconnected event (it was working on v4.0.1) HOT 1
- unknown equipment with index 526
- POV demo support for CS2 HOT 2
- generate heatmap and nade trajectories - invalid memory address or nil pointer dereference
- Possible panic since v4.1.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from demoinfocs-golang.