Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got this 2 error while attempting to launch server from editor #116

Open
314pies opened this issue May 9, 2020 · 1 comment
Open

Got this 2 error while attempting to launch server from editor #116

314pies opened this issue May 9, 2020 · 1 comment

Comments

@314pies
Copy link

314pies commented May 9, 2020

I got this 2 error while launching server from the editor, any idea what may go wrong?
I'm able to run editor as a client and connect to a standalone headless server build however.
image

First error:

ArgumentException: During destruction and constructor of a system you are not allowed to get or create more systems.
Unity.Entities.World.CheckGetOrCreateManager () (at Library/PackageCache/[email protected]/Unity.Entities/Injection/World.cs:189)
Unity.Entities.World.GetOrCreateManager[T] () (at Library/PackageCache/[email protected]/Unity.Entities/Injection/World.cs:218)
Unity.Entities.GameObjectEntity.Initialize () (at Library/PackageCache/[email protected]/Unity.Entities.Hybrid/Components/GameObjectEntity.cs:119)
Unity.Entities.GameObjectEntity.OnEnable () (at Library/PackageCache/[email protected]/Unity.Entities.Hybrid/Components/GameObjectEntity.cs:126)
UnityEngine.Object:Instantiate(GameObject, Vector3, Quaternion)
GameWorld:SpawnInternal(GameObject, Vector3, Quaternion, Entity&) (at Assets/Scripts/Game/Entity/GameWorld.cs:179)
GameWorld:Spawn(GameObject, Vector3, Quaternion) (at Assets/Scripts/Game/Entity/GameWorld.cs:154)
GameWorld:Spawn(GameObject) (at Assets/Scripts/Game/Entity/GameWorld.cs:148)
GameModeSystemServer:.ctor(GameWorld, ChatSystemServer, BundledResourceManager) (at Assets/Scripts/Game/Systems/GameMode/GameModeSystemServer.cs:67)
System.Activator:CreateInstance(Type, Object[])
Unity.Entities.World:CreateManagerInternal(Type, Object[]) (at Library/PackageCache/[email protected]/Unity.Entities/Injection/World.cs:115)
Unity.Entities.World:CreateManager(Object[]) (at Library/PackageCache/[email protected]/Unity.Entities/Injection/World.cs:213)
ServerGameWorld:.ctor(GameWorld, NetworkServer, Dictionary`2, ChatSystemServer, BundledResourceManager) (at Assets/Scripts/Game/Main/ServerGameLoop.cs:41)
ServerGameLoop:EnterActiveState() (at Assets/Scripts/Game/Main/ServerGameLoop.cs:560)
StateMachine`1:SwitchTo(ServerState) (at Assets/Scripts/Utils/StateMachine.cs:47)
ServerGameLoop:UpdateLoadingState() (at Assets/Scripts/Game/Main/ServerGameLoop.cs:541)
StateMachine`1:Update() (at Assets/Scripts/Utils/StateMachine.cs:26)
ServerGameLoop:Update() (at Assets/Scripts/Game/Main/ServerGameLoop.cs:416)
Game:Update() (at Assets/Scripts/Game/Main/Game.cs:611)

Second Error:

NullReferenceException: Object reference not set to an instance of an object
GameMode.OnEnable () (at Assets/Scripts/Game/Systems/GameMode/Components/GameMode.cs:25)
UnityEngine.Object:Instantiate(GameObject, Vector3, Quaternion)
GameWorld:SpawnInternal(GameObject, Vector3, Quaternion, Entity&) (at Assets/Scripts/Game/Entity/GameWorld.cs:179)
GameWorld:Spawn(GameObject, Vector3, Quaternion) (at Assets/Scripts/Game/Entity/GameWorld.cs:154)
GameWorld:Spawn(GameObject) (at Assets/Scripts/Game/Entity/GameWorld.cs:148)
GameModeSystemServer:.ctor(GameWorld, ChatSystemServer, BundledResourceManager) (at Assets/Scripts/Game/Systems/GameMode/GameModeSystemServer.cs:67)
System.Activator:CreateInstance(Type, Object[])
Unity.Entities.World:CreateManagerInternal(Type, Object[]) (at Library/PackageCache/[email protected]/Unity.Entities/Injection/World.cs:115)
Unity.Entities.World:CreateManager(Object[]) (at Library/PackageCache/[email protected]/Unity.Entities/Injection/World.cs:213)
ServerGameWorld:.ctor(GameWorld, NetworkServer, Dictionary`2, ChatSystemServer, BundledResourceManager) (at Assets/Scripts/Game/Main/ServerGameLoop.cs:41)
ServerGameLoop:EnterActiveState() (at Assets/Scripts/Game/Main/ServerGameLoop.cs:560)
StateMachine`1:SwitchTo(ServerState) (at Assets/Scripts/Utils/StateMachine.cs:47)
ServerGameLoop:UpdateLoadingState() (at Assets/Scripts/Game/Main/ServerGameLoop.cs:541)
StateMachine`1:Update() (at Assets/Scripts/Utils/StateMachine.cs:26)
ServerGameLoop:Update() (at Assets/Scripts/Game/Main/ServerGameLoop.cs:416)
Game:Update() (at Assets/Scripts/Game/Main/Game.cs:611)
@314pies 314pies changed the title Unable to launch server from editor. Got this 2 error while attempting to launch server from editor. May 9, 2020
@314pies 314pies changed the title Got this 2 error while attempting to launch server from editor. Got this 2 error while attempting to launch server from editor May 9, 2020
@marshal-it
Copy link

also..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants