Run $env:DOTNETgcServer=1 Test run for…
- User
Run $env:DOTNET_gcServer=1 Test run for /home/runner/work/space-station-14-fobos/space-station-14-fobos/bin/Content.IntegrationTests/Content.IntegrationTests.dll (.NETCoreApp,Version=v9.0) VSTest version 17.13.0 (x64)
Starting test execution, please wait... A total of 1 test files matched the specified pattern. Failed SpawnAndDeleteAllEntitiesOnDifferentMaps [4 s] Error Message: Robust.Shared.GameObjects.EntityCreationException : Exception inside InitializeAndStartEntity ----> NUnit.Framework.AssertionException : SERVER: 4,679s [ERRO] loc: "ru-RU"/null: "System.NullReferenceException: Object reference not set to an instance of an object. at Robust.Shared.Localization.LocalizationManager.TryGetString(String messageId, ValueTuple`2 bundle, String& value) in /home/runner/work/space-station-14-fobos/space-station-14-fobos/RobustToolbox/Robust.Shared/Localization/LocalizationManager.cs:line 136" Exception:
- Test was dirty-disposed.
Stack Trace: at Robust.Shared.GameObjects.EntityManager.InitializeAndStartEntity(Entity
1 entity, Boolean doMapInit) in /home/runner/work/space-station-14-fobos/space-station-14-fobos/RobustToolbox/Robust.Shared/GameObjects/EntityManager.cs:line 926 at Robust.Shared.GameObjects.EntityManager.SpawnAttachedTo(String protoName, EntityCoordinates coordinates, ComponentRegistry overrides, Angle rotation) in /home/runner/work/space-station-14-fobos/space-station-14-fobos/RobustToolbox/Robust.Shared/GameObjects/EntityManager.Spawn.cs:line 82 at Robust.Shared.GameObjects.EntityManager.SpawnEntity(String protoName, EntityCoordinates coordinates, ComponentRegistry overrides) in /home/runner/work/space-station-14-fobos/space-station-14-fobos/RobustToolbox/Robust.Shared/GameObjects/EntityManager.Spawn.cs:line 16 at Content.IntegrationTests.Tests.EntityTest.<>c__DisplayClass1_0.<SpawnAndDeleteAllEntitiesOnDifferentMaps>b__0() in /home/runner/work/space-station-14-fobos/space-station-14-fobos/Content.IntegrationTests/Tests/EntityTest.cs:line 53 at Robust.UnitTesting.RobustIntegrationTest.IntegrationGameLoop.SingleThreadRunUntilEmpty() in /home/runner/work/space-station-14-fobos/space-station-14-fobos/RobustToolbox/Robust.UnitTesting/RobustIntegrationTest.cs:line 1098 at Robust.UnitTesting.RobustIntegrationTest.IntegrationGameLoop.Run() in /home/runner/work/space-station-14-fobos/space-station-14-fobos/RobustToolbox/Robust.UnitTesting/RobustIntegrationTest.cs:line 1085 at Robust.UnitTesting.RobustIntegrationTest.ServerIntegrationInstance._serverMain() in /home/runner/work/space-station-14-fobos/space-station-14-fobos/RobustToolbox/Robust.UnitTesting/RobustIntegrationTest.cs:line 656 --- End of stack trace from previous location --- at Robust.UnitTesting.RobustIntegrationTest.IntegrationInstance.WaitIdleImplAsync(Boolean throwOnUnhandled, CancellationToken cancellationToken) in /home/runner/work/space-station-14-fobos/space-station-14-fobos/RobustToolbox/Robust.UnitTesting/RobustIntegrationTest.cs:line 450 at Robust.UnitTesting.RobustIntegrationTest.IntegrationInstance.WaitPost(Action post) in /home/runner/work/space-station-14-fobos/space-station-14-fobos/RobustToolbox/Robust.UnitTesting/RobustIntegrationTest.cs:line 573 at Content.IntegrationTests.Tests.EntityTest.SpawnAndDeleteAllEntitiesOnDifferentMaps() in /home/runner/work/space-station-14-fobos/space-station-14-fobos/Content.IntegrationTests/Tests/EntityTest.cs:line 35 at Content.IntegrationTests.Tests.EntityTest.SpawnAndDeleteAllEntitiesOnDifferentMaps() in /home/runner/work/space-station-14-fobos/space-station-14-fobos/Content.IntegrationTests/Tests/EntityTest.cs:line 81 at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter1.BlockUntilCompleted() at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter) at NUnit.Framework.Internal.AsyncToSyncAdapter.Await[TResult](TestExecutionContext context, Func1 invoke) at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context) at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context) at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass3_0.b__0() at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_01 func) at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork() --AssertionException at NUnit.Framework.Assert.ReportFailure(String message) at Content.IntegrationTests.PoolTestLogHandler.Log(String sawmillName, LogEvent message) in /home/runner/work/space-station-14-fobos/space-station-14-fobos/Content.IntegrationTests/PoolTestLogHandler.cs:line 66 at Robust.Shared.Log.LogManager.Sawmill.LogInternal(String sourceSawmill, LogEvent message) in /home/runner/work/space-station-14-fobos/space-station-14-fobos/RobustToolbox/Robust.Shared/Log/LogManager.Sawmill.cs:line 111 at Robust.Shared.Log.LogManager.Sawmill.LogInternal(String sourceSawmill, LogEvent message) in /home/runner/work/space-station-14-fobos/space-station-14-fobos/RobustToolbox/Robust.Shared/Log/LogManager.Sawmill.cs:line 129 at Robust.Shared.Log.LogManager.Sawmill.Log(LogLevel level, String message, Object[] args) in /home/runner/work/space-station-14-fobos/space-station-14-fobos/RobustToolbox/Robust.Shared/Log/LogManager.Sawmill.cs:line 101 at Robust.Shared.Log.LogManager.Sawmill.Error(String message, Object[] args) in /home/runner/work/space-station-14-fobos/space-station-14-fobos/RobustToolbox/Robust.Shared/Log/LogManager.Sawmill.cs:line 174 at Robust.Shared.Localization.LocalizationManager.TryGetString(String messageId, ValueTuple1 segments, String separator) in /home/runner/work/space-station-14-fobos/space-station-14-fobos/Content.Server/RandomMetadata/RandomMetadataSystem.cs:line 58 at Content.Server.RandomMetadata.RandomMetadataSystem.OnMapInit(EntityUid uid, RandomMetadataComponent component, MapInitEvent args) in /home/runner/work/space-station-14-fobos/space-station-14-fobos/Content.Server/RandomMetadata/RandomMetadataSystem.cs:line 29 at Robust.Shared.GameObjects.EntityEventBus.DispatchOrderedEvents(Unit& eventArgs, ValueList1 entity, Boolean doMapInit) in /home/runner/work/space-station-14-fobos/space-station-14-fobos/RobustToolbox/Robust.Shared/GameObjects/EntityManager.cs:line 921 - Assistant
Судя по выводу из вашего теста, возникла ошибка, связанная с попыткой обратиться к объекту, который не был инициализирован, что приводит к
NullReferenceException. Ошибка происходит внутри методаTryGetStringклассаLocalizationManagerв строке 136, когда тест пытается получить строку локализации.Вот несколько шагов, которые вы можете предпринять для диагностики и устранения проблемы: