Search Unity

Bug Simulation parameters not being fetched

Discussion in 'Unity Game Simulation' started by GallatyDesigns, Sep 22, 2020.

  1. GallatyDesigns

    GallatyDesigns

    Joined:
    Sep 2, 2017
    Posts:
    9
    I'm having an issue where occasionally, the simulation parameters are not being fetched. We have code to detect invalid parameters, so we try to quit the simulation immediately, but it seems the simulation continues to "run" for the maximum amount of time. The link to the simulation run is here:

    https://gamesimulation.unity3d.com/...rojectId=1f9d20cf-f7a6-4293-9c75-0c121981d5e1

    Here's what the console logs look like. Note the last line, where the config fetched is just empty {} brackets:

    DC: Initializing the Game Simulation package
    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

    DC: Fetching App Config from Remote Config
    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

    DC: instance id = 23
    execution id - rNdKvlj
    definition id - w7wLOal
    app params
    decision engine id - 448e1a27-609a-4930-8a91-17541dcf1a3f
    decision engine type - gridsearch
    environment id - 198ad980-0b8f-4042-b58e-1a5a812292de
    storage_uri_prefix; gs://bhram-prd-usc1-data-gamesim/projects/1f9d20cf-f7a6-4293-9c75-0c121981d5e1/run_executions/urn:run_definitions:w7wLOal/urn:run_executions:rNdKvlj/urn:app_params:awpVN6e/instance:23
    app_param_uri; file:///app_param/app-param-file
    current_attempt; 1
    chunk_size_bytes; 10240
    chunk_timeout_ms; 10000
    instance_id; 23
    time_logging_timeout_sec; 0
    heartbeat_timeout_sec; 0
    app_param_id; urn:app_params:awpVN6e
    signlynx_host; localhost
    signlynx_port; 31109
    bearer_token;
    execution_id; urn:run_executions:rNdKvlj
    definition_id; urn:run_definitions:w7wLOal
    bucketName; bhram-prd-usc1-data-gamesim
    storagePath; projects/1f9d20cf-f7a6-4293-9c75-0c121981d5e1/run_executions/urn:run_definitions:w7wLOal/urn:run_executions:rNdKvlj/urn:app_params:awpVN6e/instance:23
    storagePathOther; projects/1f9d20cf-f7a6-4293-9c75-0c121981d5e1/run_executions/urn:run_definitions:w7wLOal/others/urn:run_executions:rNdKvlj/urn:app_params:awpVN6e/instance:23

    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

    DC: Remote Config fetched with response Success with origin Remote
    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

    DC: Remote Config fetch was completed successfully with the server
    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

    DC: Config fetched: {}
    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
     
  2. williamk_unity

    williamk_unity

    Unity Technologies

    Joined:
    Oct 16, 2017
    Posts:
    3
    Hey we are looking into this. We've seen cases before of remote config not returning, but definitely extra weird that the simulation didn't exit.

    Does your exit logic just check if remote config is empty then call Application.Quit() or something?
     
  3. williamk_unity

    williamk_unity

    Unity Technologies

    Joined:
    Oct 16, 2017
    Posts:
    3
    Alright so double checking on this job it does look like instance id 23 successfully exited after 30 seconds, but 88 other instances ran for your max simulation runtime. Generally even if you exit an instance immediately it will take at least 30 seconds to place the game image on the server, start the executable, execute any remote calls, trigger the shutdown request, and process the quit request. Still weird that remote config failed to return, but that can rarely happen for a myriad of network reasons.