Opened 8 years ago

Last modified 3 years ago

#3777 new defect

Idle-worker-hotkey errors after gamestart — at Initial Version

Reported by: elexis Owned by:
Priority: Nice to Have Milestone: Backlog
Component: UI – In-game Keywords: simple
Cc: Patch:

Description

Sometimes when starting a game and pressing the idle-worker hotkey, the following errors appear:

WARNING: JavaScript warning: simulation/components/GuiInterface.js line 1634
reference to undefined property data.prevUnit
ERROR: JavaScript error: simulation/components/GuiInterface.js line 1634
TypeError: data.excludeUnits is undefined
  GuiInterface.prototype.FindIdleUnits@simulation/components/GuiInterface.js:1634:1
  GuiInterface.prototype.ScriptCall@simulation/components/GuiInterface.js:1888:3
  findIdleUnit@gui/session/input.js:1730:7
  __eventhandler140 (press)@__internal(101) press:0:22
ERROR: Error calling component script function ScriptCall
ERROR: JavaScript error: gui/session/input.js line 1731
TypeError: idleUnits is undefined
  findIdleUnit@gui/session/input.js:1731:1
  __eventhandler140 (press)@__internal(101) press:0:22

The bug exists since a long time and had been reported here before #3227.

Tagging as simple since the scope is limited (input.js, GUIInterface.js).

The code should be looked at to see how these errors can occur, then finding a way to reproduce the errors reliably.

Thanks palaxin for reporting, just happened to get the error today.

Change History (0)

Note: See TracTickets for help on using tickets.