Skip to content

LobbyServer/WorldServer crash with NullReferenceException when launched headless (stdin closed) #2

Description

@eaxiumnet

Symptom

Both servers die shortly after startup when launched from a script/redirected environment (no console input). Console windows close with no visible error; the stack "works" only when run interactively.

Root cause

Program.cs console loop calls Console.ReadLine() and passes the result straight to ProccessCommand(...); with stdin closed it returns null → NullReferenceException → unhandled crash.

Fix (applied locally, uncommitted)

Null-guard the read loop in both LobbyServer/Program.cs and WorldServer/Program.cs (treat null as "no command", keep the timer/loop alive).

This matters for anyone supervising the stack headless or via service managers / redirects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions