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: runtime error: invalid memory address or nil pointer dereference #757

Closed
RestartFU opened this issue Mar 27, 2023 · 2 comments
Closed

Comments

@RestartFU
Copy link
Contributor

RestartFU commented Mar 27, 2023

happened when trying to shoot an arrow with a bow

panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x790093]

goroutine 26192 [running]:
github.com/df-mc/dragonfly/server/session.(*Session).handlePackets.func1()
        C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.4/server/session/session.go:303 +0x74
panic({0xbce7c0, 0x16684d0})
        C:/Program Files/Go/src/runtime/panic.go:884 +0x213
github.com/df-mc/dragonfly/server/item.Bow.Release({}, {0xe466f8, 0xc00cbc98c0}, 0xf55ef18, 0xc00e5428f0)
        C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.4/server/item/bow.go:85 +0x973
github.com/df-mc/dragonfly/server/player.(*Player).ReleaseItem(0xc00cbc98c0)
        C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.4/server/player/player.go:1400 +0x302
github.com/df-mc/dragonfly/server/session.(*InventoryTransactionHandler).handleReleaseItemTransaction(...)
        C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.4/server/session/handler_inventory_transaction.go:171
github.com/df-mc/dragonfly/server/session.(*InventoryTransactionHandler).Handle(0xbca940?, {0xe38980?, 0xc00395b180?}, 0xc005048600)
        C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.4/server/session/handler_inventory_transaction.go:47 +0x5f3
github.com/df-mc/dragonfly/server/session.(*Session).handlePacket(0xc005048600, {0xe38980, 0xc00395b180})
        C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.4/server/session/session.go:431 +0x9b
github.com/df-mc/dragonfly/server/session.(*Session).handlePackets(0xc005048600)
        C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.4/server/session/session.go:312 +0xef
created by github.com/df-mc/dragonfly/server/session.(*Session).Start
        C:/Users/Administrator/go/pkg/mod/github.com/df-mc/dragonfly@v0.9.4/server/session/session.go:217 +0xa5
@Sandertv
Copy link
Member

Could you make sure you're filling out the (world.Config).Entities field if this is a world created by you?

@RestartFU
Copy link
Contributor Author

Could you make sure you're filling out the (world.Config).Entities field if this is a world created by you?

oh yeah it's a world created by me, that makes sense, i'll try that, and reopen the issue if it still happens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants