Skip to content

v2.8.5: Segmentation Fault and WebSocket Closure Error (1006) #164

@VHPL-UIS

Description

@VHPL-UIS

I'm trying to run the example on Ubuntu 22.04.4 LTS, but I get a segmentation fault. Also, the server-side log is included. Could someone provide insights or suggest potential solutions for resolving this issue?

[Nakama::RestClient::authenticateDevice] ...
[tick] invoking curl callback
[NRtClient::NRtClient] Created
[NRtClient::connect] ...
[tick] curl_multi_remove_handle() failed, code 2.

[tick] Wslay state: Connecting
[tick] Wslay state: Connecting
[tick] Wslay state: Handshake sending
[tick] Wslay state: Handshake receiving
[tick] Wslay state: Handshake receiving
[1]    56295 segmentation fault (core dumped)

========================================================================================================

nakama    | {"level":"info","ts":"2025-04-18T12:20:01.870Z","caller":"server/session_ws.go:81","msg":"New WebSocket session connected","uid":"33c58550-fc17-44ef-a3e1-352c33c7fea1","sid":"73c41321-1c4f-11f0-915c-7106fdcb5b46","format":0}
nakama    | {"level":"debug","ts":"2025-04-18T12:20:01.871Z","caller":"server/tracker.go:912","msg":"Processing presence event","joins":1,"leaves":0}
nakama    | {"level":"debug","ts":"2025-04-18T12:20:02.046Z","caller":"server/session_ws.go:205","msg":"Error reading message from client","uid":"33c58550-fc17-44ef-a3e1-352c33c7fea1","sid":"73c41321-1c4f-11f0-915c-7106fdcb5b46","error":"websocket: close 1006 (abnormal closure): unexpected EOF"}
nakama    | {"level":"info","ts":"2025-04-18T12:20:02.046Z","caller":"server/session_ws.go:442","msg":"Cleaning up closed client connection","uid":"33c58550-fc17-44ef-a3e1-352c33c7fea1","sid":"73c41321-1c4f-11f0-915c-7106fdcb5b46"}
nakama    | {"level":"info","ts":"2025-04-18T12:20:02.046Z","caller":"server/session_ws.go:450","msg":"Cleaned up closed connection matchmaker","uid":"33c58550-fc17-44ef-a3e1-352c33c7fea1","sid":"73c41321-1c4f-11f0-915c-7106fdcb5b46"}
nakama    | {"level":"info","ts":"2025-04-18T12:20:02.046Z","caller":"server/session_ws.go:454","msg":"Cleaned up closed connection tracker","uid":"33c58550-fc17-44ef-a3e1-352c33c7fea1","sid":"73c41321-1c4f-11f0-915c-7106fdcb5b46"}
nakama    | {"level":"info","ts":"2025-04-18T12:20:02.046Z","caller":"server/session_ws.go:458","msg":"Cleaned up closed connection status registry","uid":"33c58550-fc17-44ef-a3e1-352c33c7fea1","sid":"73c41321-1c4f-11f0-915c-7106fdcb5b46"}
nakama    | {"level":"debug","ts":"2025-04-18T12:20:02.046Z","caller":"server/tracker.go:912","msg":"Processing presence event","joins":0,"leaves":1}
nakama    | {"level":"info","ts":"2025-04-18T12:20:02.046Z","caller":"server/session_ws.go:462","msg":"Cleaned up closed connection session registry","uid":"33c58550-fc17-44ef-a3e1-352c33c7fea1","sid":"73c41321-1c4f-11f0-915c-7106fdcb5b46"}
nakama    | {"level":"info","ts":"2025-04-18T12:20:02.046Z","caller":"server/session_ws.go:520","msg":"Closed client connection","uid":"33c58550-fc17-44ef-a3e1-352c33c7fea1","sid":"73c41321-1c4f-11f0-915c-7106fdcb5b46"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions