Skip to content

[Bug] Unreal Process Crashes when gRPCGymConnector is unable to register a Port during training #5

Description

@amd-alexcann

Describe the bug

UnrealEditor crashes in gRPCGymConnector::Init when CommunicationManager fails to register a port in StartBackends().

To Reproduce

  1. Create a training environment in the Unreal Editor, with gRPC as the communication protocol
  2. Set port to a value that is already in use.
  3. Press Begin Play in Editor.

Expected behavior

Schola logs an error noting that the server does not start, and then fails gracefully (e.g. gRPCGymConnector marks itself as not started or errored, and training doesn't start rather than crashing the editor).

Screenshots

No response

Additional context

No response

OS

Windows 11

Unreal Engine Version

5.7

Python Version

3.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions