Opened 4 years ago

Closed 4 years ago

#5666 closed defect (fixed)

CCmpRangeManager: No owners in query for entity 0

Reported by: elexis Owned by: Silier
Priority: Release Blocker Milestone: Alpha 24
Component: Simulation Keywords: regression
Cc: Patch: Phab:D2601

Description

As reported on Phab:rP23012, the following error happens quite often:

"CCmpRangeManager: No owners in query for entity 0"

The error message is spammed very frequently, probably whenever some animal or gaia soldier wants to attack, so it disrupts gameplay and IMO must be fixed for the release.

Attachments (1)

commands.txt (2.5 KB ) - added by elexis 4 years ago.
replay for r23469

Download all attachments as: .zip

Change History (6)

comment:2 by Silier, 4 years ago

Owner: set to Silier
Patch: Phab:D2601

comment:3 by Silier, 4 years ago

Resolution: fixed
Status: newclosed

In 23467:

Do not create range query with no enemies

Do not create range query with no enemies as that triggers warning in range manager.
This situation occurs when player has no enemies so empty list is returned.

Fixing CCmpRangeManager: No owners in query for entity 0 warning

refs rP23012

Differential Revision: https://code.wildfiregames.com/D2601
Fixes: #5666
Reviewed by: @Freagarach

comment:4 by elexis, 4 years ago

Resolution: fixed
Status: closedreopened

Still happens for me, see attached replay.

Forgot to update, after updating the error became this: ` ERROR: JavaScript error: simulation/components/UnitAI.js line 5812 TypeError: range is undefined

UnitAI.prototype.GetQueryRange@simulation/components/UnitAI.js:5812:3 UnitAI.prototype.SetupRangeQuery@simulation/components/UnitAI.js:3588:14 UnitAI.prototype.SetupRangeQueries@simulation/components/UnitAI.js:3548:2 UnitAI.prototype.SwitchToStance@simulation/components/UnitAI.js:5641:2 TriggerHelper.SetUnitStance@maps/scripts/TriggerHelper.js:86:3 Trigger.prototype.StartCelticRitual@maps/random/danubius_triggers.js:268:3 Trigger.prototype.InitDanubius@maps/random/danubius_triggers.js:629:2 Trigger.prototype.DoAction@simulation/components/Trigger.js:337:3 Trigger.prototype.CallEvent@simulation/components/Trigger.js:226:4 Trigger.prototype.OnGlobalInitGame@simulation/components/Trigger.js:231:2 InitGame@simulation/helpers/InitGame.js:70:2

`

Version 1, edited 4 years ago by elexis (previous) (next) (diff)

by elexis, 4 years ago

Attachment: commands.txt added

replay for r23469

comment:5 by Silier, 4 years ago

Resolution: fixed
Status: reopenedclosed

In 23471:

Fix checks for range existence following rP23465

Function introduced in rP23465, GetRange can return undefined when required component does not exist. Fixing two oversights, when check is needed.

Differential Revision: https://code.wildfiregames.com/D2608
Fixes: #5666

Note: See TracTickets for help on using tickets.