Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Game server randomly crush.

Discussion in 'Unity Transport' started by XRTS, Feb 19, 2024.

  1. XRTS


    Jul 11, 2018
    I made a cs-like game using NetCode with UnityTransport. The game server is running on Linux platform. It just crushed after 2 - 10 hours running and logging errors below until I manually kill it.

    Trying to get pipeline buffers for invalid connection.
    NullReferenceException: Object reference not set to an instance of an object
    at Unity.Netcode.Transports.UTP.UnityTransport.ExtractNetworkMetricsFromPipeline (Unity.Networking.Transport.NetworkPipeline pipeline, Unity.Networking.Transport.NetworkConnection networkConnection) [0x00029] in .\Library\PackageCache\com.unity.netcode.gameobjects@1.7.1\Runtime\Transports\UTP\UnityTransport.cs:1014
    at Unity.Netcode.Transports.UTP.UnityTransport.ExtractNetworkMetricsForClient (System.UInt64 transportClientId) [0x00007] in .\Library\PackageCache\com.unity.netcode.gameobjects@1.7.1\Runtime\Transports\UTP\UnityTransport.cs:985
    at Unity.Netcode.Transports.UTP.UnityTransport.ExtractNetworkMetrics () [0x0004e] in .\Library\PackageCache\com.unity.netcode.gameobjects@1.7.1\Runtime\Transports\UTP\UnityTransport.cs:970
    at Unity.Netcode.Transports.UTP.UnityTransport.Update () [0x000e5] in .\Library\PackageCache\com.unity.netcode.gameobjects@1.7.1\Runtime\Transports\UTP\UnityTransport.cs:946
    (Filename: ./Library/PackageCache/com.unity.netcode.gameobjects@1.7.1/Runtime/Transports/UTP/UnityTransport.cs Line: 1014)
  2. simon-lemay-unity


    Unity Technologies

    Jul 19, 2021
    I believe this is fixed in version 1.8.0 of Netcode for GameObjects.