Coder Social home page Coder Social logo

Comments (8)

akiver avatar akiver commented on May 20, 2024

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.

maddenbjames avatar maddenbjames commented on May 20, 2024

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.

micvbang avatar micvbang commented on May 20, 2024

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.

maddenbjames avatar maddenbjames commented on May 20, 2024

Running this on WSL on Windows 11.

On WSL im running Ubuntu 22.04

from demoinfocs-golang.

markus-wa avatar markus-wa commented on May 20, 2024

@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.

maddenbjames avatar maddenbjames commented on May 20, 2024

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.

maddenbjames avatar maddenbjames commented on May 20, 2024

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.

maddenbjames avatar maddenbjames commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.