google-research / falken

Falken provides developers with a service that allows them to train AI that can play their games
Apache License 2.0
253 stars 35 forks source link

session type Evaluation mode throw error #35

Open MoSyazwan opened 2 years ago

MoSyazwan commented 2 years ago

I try to run using Evaluation mode (Falken.Session.Type.Evaluation), however it show error. brain ID and snapshot ID already added.

Failed to create a new session for brain Hello Falken Brain (23d14e02-ba6b-4c01-aabe-76d69016bd4b): Error message: Session type 3 requires a starting snapshot for brain 23d14e02-ba6b-4c01-aabe-76d69016bd4b.. Error code: 2. If the error persists, please contact Falken for further assistance..
UnityEngine.Debug:LogError(Object)
Falken.Logger:LogMessage(LogLevel, String, IntPtr) (at Assets/Falken/Scripts/Log.cs:164)
FalkenInternal.falken_modulePINVOKE:falken_BrainBase_StartSession(HandleRef, Int32, UInt32)
FalkenInternal.falken.BrainBase:StartSession(Type, UInt32) (at Assets/Falken/Scripts/Gen/falken/BrainBase.cs:94)
Falken.BrainBase:StartSession(Type, UInt32) (at Assets/Falken/Scripts/Brain.cs:202)
BasePlayer:CreateOrLoadBrain() (at Assets/Scripts/Entity/Player/BasePlayer-Falken.cs:281)
BasePlayer:OnEnable() (at Assets/Scripts/Entity/Player/BasePlayer-Falken.cs:178)
UnityEngine.GameObject:SetActive(Boolean)
PoolableEx:AwakeFromInstantiate(GameObject) (at Assets/Scripts/Util/Memory/Poolable.cs:412)
Client:CreateOrUpdateEntity(Entity, Int64, Boolean) (at Assets/Scripts/Client/Client.EntityNetworking.cs:1229)
Client:OnEntities(Message) (at Assets/Scripts/Client/Client.EntityNetworking.cs:1072)
Client:OnNetworkMessage(Message) (at Assets/Scripts/Client/Client.Connection.cs:327)
Facepunch.Network.DTLS.Client:HandleMessage() (at Assets/Plugins/D11.DTLS/DTLS.Client.cs:146)
Facepunch.Network.DTLS.Client:OnMessageReceived(Byte[], Int32, String, Int32) (at Assets/Plugins/D11.DTLS/DTLS.Client.cs:305)
D11.DTLSConnection:ProcessRecvBuffer() (at Assets/Plugins/D11.DTLS/Connection.cs:114)
D11.DTLS:ProcessConnections() (at Assets/Plugins/D11.DTLS/DTLS.cs:840)
D11.DTLS:Update() (at Assets/Plugins/D11.DTLS/DTLS.cs:610)

 System.InvalidOperationException: Session in brain 'Hello Falken Brain' with id '23d14e02-ba6b-4c01-aabe-76d69016bd4b' could not be created. Possible reasons are:
1. Service got cleaned up before this brain.
2. Given session type ('Evaluation') is 'Invalid'
3. An error ocurred in the service.
  at Falken.BrainBase.StartSession (Falken.Session+Type type, System.UInt32 maxStepsPerEpisode) [0x0001d] in C:\Repos\rust_console_win64\Assets\Falken\Scripts\Brain.cs:206 
  at BasePlayer.CreateOrLoadBrain () [0x0006a] in C:\Repos\rust_console_win64\Assets\Scripts\Entity\Player\BasePlayer-Falken.cs:281 
UnityEngine.Debug:LogError(Object)
BasePlayer:CreateOrLoadBrain() (at Assets/Scripts/Entity/Player/BasePlayer-Falken.cs:286)
BasePlayer:OnEnable() (at Assets/Scripts/Entity/Player/BasePlayer-Falken.cs:178)
UnityEngine.GameObject:SetActive(Boolean)
PoolableEx:AwakeFromInstantiate(GameObject) (at Assets/Scripts/Util/Memory/Poolable.cs:412)
Client:CreateOrUpdateEntity(Entity, Int64, Boolean) (at Assets/Scripts/Client/Client.EntityNetworking.cs:1229)
Client:OnEntities(Message) (at Assets/Scripts/Client/Client.EntityNetworking.cs:1072)
Client:OnNetworkMessage(Message) (at Assets/Scripts/Client/Client.Connection.cs:327)
Facepunch.Network.DTLS.Client:HandleMessage() (at Assets/Plugins/D11.DTLS/DTLS.Client.cs:146)
Facepunch.Network.DTLS.Client:OnMessageReceived(Byte[], Int32, String, Int32) (at Assets/Plugins/D11.DTLS/DTLS.Client.cs:305)
D11.DTLSConnection:ProcessRecvBuffer() (at Assets/Plugins/D11.DTLS/Connection.cs:114)
D11.DTLS:ProcessConnections() (at Assets/Plugins/D11.DTLS/DTLS.cs:840)
D11.DTLS:Update() (at Assets/Plugins/D11.DTLS/DTLS.cs:610)
MoSyazwan commented 2 years ago

ok, managed to load the brain, but got these error instead:

No brain action generated in evaluation session 3fcb2f28-bd52-4a84-839d-fc936484dafd, episode 74c78581-da24-4be9-9015-86d91a41f2ff at step 294. If the error persists, please contact Falken team to report this as a bug
UnityEngine.Debug:LogError(Object)
Falken.Logger:LogMessage(LogLevel, String, IntPtr) (at Assets/Falken/Scripts/Log.cs:164)
FalkenInternal.falken_modulePINVOKE:falken_Episode_Step__SWIG_0(HandleRef)
FalkenInternal.falken.Episode:Step() (at Assets/Falken/Scripts/Gen/falken/Episode.cs:52)
Falken.Episode:Step(Nullable`1) (at Assets/Falken/Scripts/Episode.cs:133)
BasePlayer:CalculateObservations() (at Assets/Scripts/Entity/Player/BasePlayer-Falken.cs:351)
BasePlayer:Update() (at Assets/Scripts/Entity/Player/BasePlayer-Client.cs:550)