asrob-uc3m / asrob-uc3m/robotDevastation

Aborted execution on dead state

Open
#141 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
9
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Description:

Running game and two robots. On rd2 rremotely and a virtual with pc webcam (`robotDevastation --fakeRobotManager --yarpLocalImageManager`) and id 2. Error occurs when player2 (id 2) runs out of health.

```
Insert player id [0]?>2
Insert name [player0]?>player2
Insert team [0]?>2
Insert robotName [rd1]?>pc-ignacio
```

```
[debug] YarpStateDirector.cpp:38 Stop(): Stopping StateDirector for id GameState
[debug] YarpStateDirector.cpp:24 Start(): Starting StateDirector for id DeadState
free(): invalid pointer
Aborted (core dumped)
```

On a second attempt to reproduce the error the line `[debug] YarpStateDirector.cpp:24 Start(): Starting StateDirector for id DeadState` did not appear. Yet the rest of error was identical.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the player 2 health depletion with `robotDevastation --fakeRobotManager --yarpLocalImageManager`, then inspect the `YarpStateDirector.cpp` `Stop()` and `Start()` paths around the GameState-to-DeadState transition. Done means the transition no longer reports `free(): invalid pointer` or aborts, including on a second reproduction attempt.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.