Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3010 closed defect (fixed)

Order.Flee: too much recursion

Reported by: brian Owned by: mimo
Priority: Must Have Milestone: Alpha 18
Component: UI & Simulation Keywords:
Cc: Patch:

Description

Git revision: 2948aa76835e29e04a089fdc03457be6256b3eaf

ERROR: JavaScript error: simulation/helpers/Entity.js line 3 InternalError: too much recursion DistanceBetweenEntities@simulation/helpers/Entity.js:3 UnitAI.prototype.UnitFsmSpecOrder.Flee@simulation/components/UnitAI.js:392 FSM.prototype.ProcessMessage@simulation/helpers/FSM.js:274 UnitAI.prototype.FinishOrder@simulation/components/UnitAI.js:3483 UnitAI.prototype.UnitFsmSpecOrder.Flee@simulation/components/UnitAI.js:406 FSM.prototype.ProcessMessage@simulation/helpers/FSM.js:274 UnitAI.prototype.FinishOrder@simulation/components/UnitAI.js:3483 UnitAI.prototype.UnitFsmSpecOrder.Flee@simulation/components/UnitAI.js:406 FSM.prototype.ProcessMessage@simulation/helpers/FSM.js:274 UnitAI.prototype.FinishOrder@simulation/components/UnitAI.js:3483 UnitAI.prototype.UnitFsmSpecOrder.Flee@simulation/components/UnitAI.js:406 FSM.prototype.ProcessMessage@simulation/helpers/FSM.js:274 UnitAI.prototype.FinishOrder@simulation/components/UnitAI.js:3483 UnitAI.prototype.UnitFsmSpec["Ord...

ERROR: Script message handler OnMotionChanged failed

Attachments (1)

0ad_logs_brit_vs_maur.zip (222.6 KB ) - added by brian 9 years ago.

Download all attachments as: .zip

Change History (5)

by brian, 9 years ago

Attachment: 0ad_logs_brit_vs_maur.zip added

comment:1 by mimo, 9 years ago

Component: AIUI & Simulation

Nothing to do with AI. It seems to be a MP game without AI.

comment:2 by brian, 9 years ago

Yes, it was a multiplayer game. Just had AI on the mind when I made the ticket.

comment:3 by mimo, 9 years ago

Owner: set to mimo
Resolution: fixed
Status: newclosed

In 16369:

do not apply multiple leavefoundation orders, fix #3010

comment:4 by mimo, 9 years ago

There was already a check in UnitAI to prevent multiple leaveFoundation orders, but it was not effective as it was testing on the existence of a previous leaveFoundation order, but leaveFoundation orders are changed to Flee order as soon as they become active. I've nonetheless kept the test on leaveFoundation.

Note: See TracTickets for help on using tickets.