Opened 3 years ago

Closed 16 months ago

#6303 closed defect (fixed)

Error when viewing a replay following a specific player

Reported by: Langbart Owned by: Freagarach
Priority: Should Have Milestone: Alpha 27
Component: UI & Simulation Keywords:
Cc: Patch: Phab:D4824

Description (last modified by Langbart)

While watching a replay, errors popped up:

ERROR: JavaScript error: simulation/components/GuiInterface.js line 258 Script value conversion check failed: v.isNumber() (got type Object) GuiInterface.prototype.GetEntityState@simulation/components/GuiInterface.js:258:36 GuiInterface.prototype.ScriptCall@simulation/components/GuiInterface.js:2141:20 GetEntityState@gui/session/session.js:205:28 EntitySelection.prototype.addList@gui/session/selection.js:297:34 playercommand@gui/session/messages.js:279:15 handleNotifications@gui/session/messages.js:358:43 onSimulationUpdate@gui/session/session.js:667:2 __eventhandler54 (SimulationUpdate)@session SimulationUpdate:1:1

ERROR: Error calling component script function ScriptCall

I used the A25b version.

These errors can be reproduced consistently if you set the view to Mr.michael and Follow them. At about the 8th minute they start to appear.
Or you set the view on airo and follow them, then the errors appear twice once at 1min:15sec and one more time at 7min:20sec. For all other players no errors appear at all

I will attach the replay as a zip file: Mr.michael.zip

Attachments (3)

mr_michael.jpg (52.5 KB ) - added by Langbart 3 years ago.
Mr.michael.zip (257.5 KB ) - added by Langbart 3 years ago.
commands.txt (2.9 KB ) - added by Freagarach 3 years ago.
rP25878 But doesn't really matter.

Download all attachments as: .zip

Change History (14)

by Langbart, 3 years ago

Attachment: mr_michael.jpg added

by Langbart, 3 years ago

Attachment: Mr.michael.zip added

comment:1 by Freagarach, 3 years ago

Does it also happen when the mods are turned off?

in reply to:  1 comment:2 by Langbart, 3 years ago

Replying to Freagarach:

Does it also happen when the mods are turned off?

Yes

comment:3 by Langbart, 3 years ago

Component: Core engineUI & Simulation
Description: modified (diff)

Edit: Errors only occur in the perspective of airo and mr.michael. For all other players no errors appear.

comment:4 by Stan, 3 years ago

252     let cmpTemplateManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_TemplateManager);
253
254     if (!ent)
255         return null;
256
257     // All units must have a template; if not then it's a nonexistent entity id.
258 ->  let template = cmpTemplateManager.GetCurrentTemplateName(ent);
259     if (!template)
260         return null;

Can you see what the value of ent is there ?

comment:5 by Freagarach, 3 years ago

It is a coordinate, don't ask me why yet.

comment:6 by Freagarach, 3 years ago

It tries adding the location of a flare to the selection, which, obviously, fails. I'll attach a minimal replay.

by Freagarach, 3 years ago

Attachment: commands.txt added

rP25878 But doesn't really matter.

comment:8 by Freagarach, 2 years ago

Milestone: Alpha 26Alpha 27

comment:9 by Freagarach, 18 months ago

Owner: set to Freagarach
Patch: D4824

comment:10 by Freagarach, 18 months ago

Patch: D4824Phab:D4824

comment:11 by Freagarach, 16 months ago

Resolution: fixed
Status: newclosed

In 27315:

Use position for positions in unit_commands.js.

Replacing target by position where applicable.
It gave errors when following a player who flared.

Reported by: @Langbart
Differential revision: https://code.wildfiregames.com/D4824
Comment by: @Silier
Fixes #6303

Note: See TracTickets for help on using tickets.