Opened 3 years ago

Closed 2 years ago

#6329 closed defect (fixed)

Infinite loop when trying to collect a non-visible treasure.

Reported by: Freagarach Owned by:
Priority: Must Have Milestone: Alpha 26
Component: Simulation Keywords:
Cc: Patch:

Description (last modified by Freagarach)

When tasking to gather a treasure, and there is a treasure in the FOW, but nearby, UnitAI will get caught up in an infinite loop.

Attachments (3)

BT (9.5 KB ) - added by Freagarach 3 years ago.
Backtrace.
commands.txt (536.9 KB ) - added by Freagarach 3 years ago.
r25928
commands.2.txt (17.1 KB ) - added by Freagarach 2 years ago.
Minimal replay at r25944.

Download all attachments as: .zip

Change History (6)

by Freagarach, 3 years ago

Attachment: BT added

Backtrace.

by Freagarach, 3 years ago

Attachment: commands.txt added

comment:1 by Freagarach, 3 years ago

I can reproduce with the replay, but Asger cannot and Asger can also.

Last edited 3 years ago by Freagarach (previous) (diff)

comment:2 by Freagarach, 2 years ago

Component: Core engineSimulation
Description: modified (diff)
Keywords: UnitAI added
Summary: Segfault in MP.Infinite loop when trying to collect a non-visible treasure.

by Freagarach, 2 years ago

Attachment: commands.2.txt added

Minimal replay at r25944.

comment:3 by Freagarach, 2 years ago

Keywords: UnitAI removed
Resolution: fixed
Status: newclosed

In r25946:
Check for visibility on finding treasures in UnitAI.

Fixes an infinite loop when the next treasure is outside LOS.

Differential revision: https://code.wildfiregames.com/D4286
Comments by: @Angen, @bb
Fixes: #6329

Note: See TracTickets for help on using tickets.