Skip to content

Netcode 2.13.0 introduces race conditions and breaks flow after upgrading #4048

Description

@AliasgarBohra

Description

After upgrading from the previous Netcode version to 2.13.0, my multiplayer project started experiencing multiple issues that were not present before the update.

The problems appear to be related to race conditions during the connection and spawning lifecycle. Since upgrading, I have observed:

  • Player spawning no longer occurs consistently.
  • Errors are thrown while hosting or joining sessions.
  • Initialization order appears to have changed, causing systems that previously worked reliably to fail.
  • Existing multiplayer flow is no longer functional without code changes.

No gameplay logic was intentionally modified besides updating the Netcode package.

Reproduction Steps

  1. Open a project that works correctly on the previous Netcode version.
  2. Upgrade the Netcode package to 2.13.0.
  3. Host or join a multiplayer session.
  4. Observe connection, spawning, and initialization behavior.

Actual Result

  • Player spawning fails or becomes inconsistent.
  • Multiple errors occur during host/client connection.
  • Race condition-related issues appear during initialization.
  • Multiplayer flow that previously worked correctly is broken.

Expected Result

Updating from the previous Netcode version should not introduce regressions. Existing multiplayer flow, including player spawning and session initialization, should continue to function as before.

Environment

  • OS: Windows
  • Unity Version: 6000.3.18f1
  • Netcode Version: 2.13.0
  • Netcode Commit: (if applicable)
  • Topology: Client-Server

Additional Information

Downgrading to 2.12.0 makes everything work aggain.

Metadata

Metadata

Labels

stat:InvestigatingIssue is currently being investigatedstat:awaiting-responseAwaiting response from author. This label should be added manually.type:bugBug Report

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions