Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic when joining the server #649

Closed
RestartFU opened this issue Aug 19, 2022 · 0 comments
Closed

panic when joining the server #649

RestartFU opened this issue Aug 19, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@RestartFU
Copy link
Contributor

RestartFU commented Aug 19, 2022

my server is on commit 8b34c23

I tried to join my server with different versions, and it looks like it started happening on 970d29b

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x55c438]

goroutine 99 [running]:
github.com/df-mc/dragonfly/server/player.(*Player).DeathPosition(0x3fd3333333333333?)
C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.2-0.20220819190209-8b34c2314dc4/server/player/player.go:865 +0xb8
github.com/df-mc/dragonfly/server/session.(*Session).parseEntityMetadata(0xc0003a7e00, {0xb4f140, 0xc000146840})
C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.2-0.20220819190209-8b34c2314dc4/server/session/entity_metadata.go:110 +0x2022
github.com/df-mc/dragonfly/server/session.(*Session).ViewEntityState(0xc0003a7e00, {0xb4f140, 0xc000146840})
C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.2-0.20220819190209-8b34c2314dc4/server/session/world.go:857 +0x45
github.com/df-mc/dragonfly/server/session.(*Session).ViewEntity(0xc0003a7e00, {0xb4f140?, 0xc000146840?})
C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.2-0.20220819190209-8b34c2314dc4/server/session/world.go:42 +0xa88
github.com/df-mc/dragonfly/server/world.showEntity({0xb4f140, 0xc000146840}, {0xb53370, 0xc0003a7e00})
C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.2-0.20220819190209-8b34c2314dc4/server/world/world.go:1143 +0x3d
github.com/df-mc/dragonfly/server/world.(*World).addViewer(0x0?, 0xc0007f2840, 0xc001274bd0)
C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.2-0.20220819190209-8b34c2314dc4/server/world/world.go:1086 +0x21a
github.com/df-mc/dragonfly/server/world.(*Loader).Load(0xc001274bd0, 0x4)
C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.2-0.20220819190209-8b34c2314dc4/server/world/loader.go:95 +0x12b
github.com/df-mc/dragonfly/server/session.(*Session).sendChunks(0xc0003a7e00)
C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.2-0.20220819190209-8b34c2314dc4/server/session/session.go:370 +0xef
github.com/df-mc/dragonfly/server/session.(*Session).background(0xc0003a7e00)
C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.2-0.20220819190209-8b34c2314dc4/server/session/session.go:336 +0x13b
created by github.com/df-mc/dragonfly/server/session.(*Session).handlePackets
C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.8.2-0.20220819190209-8b34c2314dc4/server/session/session.go:295 +0x8a
exit status 2

@JustTalDevelops JustTalDevelops added the bug Something isn't working label Aug 28, 2022
@JustTalDevelops JustTalDevelops added this to the v0.9.0 milestone Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants