Opened 9 years ago

Closed 9 years ago

#3429 closed defect (fixed)

UnitAI - FinishOrder called when order queue is empty

Reported by: silure Owned by: Itms
Priority: Must Have Milestone: Alpha 19
Component: UI & Simulation Keywords: pathfinding
Cc: Patch:

Description

At turn 352 (r17033):

ERROR: FinishOrder called for entity 531 (units/brit_support_female_citizen) when order queue is empty
  UnitAI.prototype.FinishOrder@simulation/components/UnitAI.js:3500:7
  UnitAI.prototype.UnitFsmSpec.INDIVIDUAL.WALKING.MoveCompleted@simulation/components/UnitAI.js:1498:5
  FSM.prototype.ProcessMessage@simulation/helpers/FSM.js:274:29
  UnitAI.prototype.OnMotionChanged@simulation/components/UnitAI.js:3836:63

Attachments (1)

commands.txt (7.6 KB ) - added by silure 9 years ago.

Download all attachments as: .zip

Change History (3)

by silure, 9 years ago

Attachment: commands.txt added

comment:1 by elexis, 9 years ago

Component: AIUI & Simulation
Keywords: pathfinding added
Summary: ERROR: FinishOrder called for entityUnitAI - FinishOrder called when order queue is empty

The error doesn't occur with r17027, but with r17028 and above. It is not an AI error but a problem with that commit (pathfinder).

Thanks for the quick emergency report ;)

(If you want to further debug it, you could try to reproduce it without AIs on a skirmish map with as few commands as possible. As you can see, the commands.txt file doesn't show the commands that the AI decides to order, so we need to try to replicate the problem otherwise. Probably not hard though.)

comment:2 by Itms, 9 years ago

Owner: set to Itms
Resolution: fixed
Status: newclosed

In 17036:

Fix edge case in the UnitAI state machine. Fixes #3429.

Note: See TracTickets for help on using tickets.