google-research / google-research/falken

session type Evaluation mode throw error

Open
#35 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
275
Forks
37
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read Falken.BrainBase.StartSession in Assets/Falken/Scripts/Brain.cs and the generated entry point in Assets/Falken/Scripts/Gen/falken/BrainBase.cs. Then trace the call from Assets/Scripts/Entity/Player/BasePlayer-Falken.cs:281 using the reported Evaluation type and snapshot ID. Done means the cause of the rejected starting snapshot is identified and an Evaluation session can be created without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
game-dev, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.