Steps to reproduce:
- Open the attached project
- Enter Play mode
- Wait until the cubes are spawned both in the Editor and for the Virtual Player
- Exit Play mode
- Observe the Console window
Actual results: "[ServicesCore]: System.NullReferenceException: Object reference not set to an instance of an object" error is thrown after exiting the Play mode
Expected results: No errors are thrown after exiting Play mode in a Sample project
Reproducible with versions: 2.2.2(6000.6.0a5), 2.2.4, 2.3.0(6000.7.0a3)
Not reproducible with versions: 2.2.1(6000.6.0a5)
Tested on (OS): macOS 26.5.2
Notes:
- Casual co-op sample project is used to reproduce the issue
- Full error message:
- [ServicesCore]: System.NullReferenceException: Object reference not set to an instance of an object
at Unity.Services.Multiplayer.NetworkManagerSession.OnStopCompleted () [0x00027] in ./Library/PackageCache/com.unity.services.multiplayer@17f5d8518517/Runtime/Multiplayer/Modules/Network/Handlers/NetworkHandler/NetworkManagerSession.cs:417
at Unity.Services.Multiplayer.NetworkManagerSession.<OnManagerStopped>g__ScheduleCompletion|37_0 () [0x00006] in ./Library/PackageCache/com.unity.services.multiplayer@17f5d8518517/Runtime/Multiplayer/Modules/Network/Handlers/NetworkHandler/NetworkManagerSession.cs:476
at Unity.Services.Core.Scheduler.Internal.ActionScheduler.ExecuteExpiredActions () [0x000cc] in ./Library/PackageCache/com.unity.services.core@3464cb68d709/Runtime/Scheduler/ActionScheduler.cs:116
UnityEngine.Logger:Log (UnityEngine.LogType,string,object)
Unity.Services.Core.Internal.CoreLogger:LogException (System.Exception) (at ./Library/PackageCache/com.unity.services.core@3464cb68d709/Runtime/Core.Internal/Logging/CoreLogger.cs:19)
Unity.Services.Core.Scheduler.Internal.ActionScheduler:ExecuteExpiredActions () (at ./Library/PackageCache/com.unity.services.core@3464cb68d709/Runtime/Scheduler/ActionScheduler.cs:120)