Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1377 closed defect (fixed)

Error when using healers

Reported by: Erik Johansson Owned by:
Priority: Should Have Milestone: Alpha 10
Component: UI & Simulation Keywords:
Cc: Patch:

Description (last modified by Erik Johansson)

Please note that it could very well be due to me using an autobuilt .exe, I don't have time to get everything setup to compile at the moment, but on the other hand I can't remember there being any healer related commits since the last autobuild.

Either way here's the error message/s:

ERROR: JavaScript error: simulation/components/Heal.js line 51 TypeError : cmpTechMan is null ()@simulation/components/ Heal.js:51 (50)@simulation/components/ UnitAI.js:2991 ()@simulation/components/ UnitAI.js:1843 ([object Object])@simulation/components/ UnitAI.js:1762 ERROR: Script message handler OnOwnershipChanged failed ERROR: CCmpRangeManager: DestroyActiveQuery called with invalid tag 779 ERROR: JavaScript error: simulation/components/Heal.js line 51 TypeError : cmpTechMan is null ()@simulation/components/ Heal.js:51 (50)@simulation/components/ UnitAI.js:2991 ()@simulation/components/ UnitAI.js:1843 ([object Object])@simulation/components/ UnitAI.js:1762 ERROR: Script message handler OnOwnershipChanged failed ERROR: CCmpRangeManager: DestroyActiveQuery called with invalid tag 781 ERROR: JavaScript error: simulation/components/Heal.js line 51 TypeError : cmpTechMan is null ()@simulation/components/ Heal.js:51 (50)@simulation/components/ UnitAI.js:2991 ()@simulation/components/ UnitAI.js:1843 ([object Object])@simulation/components/ UnitAI.js:1762 ERROR: Script message handler OnOwnershipChanged failed ERROR: CCmpRangeManager: DestroyActiveQuery called with invalid tag 1320 ERROR: JavaScript error: simulation/components/Heal.js line 51 TypeError : cmpTechMan is null ()@simulation/components/ Heal.js:51 (50)@simulation/components/ UnitAI.js:2991 ()@simulation/components/ UnitAI.js:1843 ([object Object])@simulation/components/ UnitAI.js:1762 ERROR: Script message handler OnOwnershipChanged failed ERROR: CCmpRangeManager: DestroyActiveQuery called with invalid tag 1304 Engine exited successfully on 2012-05-03 at 21:42:01 with 866 message(s), 12 error(s) and 0 warning(s).

As far as I can tell there shouldn't be anything weird in what I'm doing, or rather not doing as the above does appear when the healers automatically move from target to target. As said before I'm using the autobuilt .exe, and revision 11725

Change History (6)

comment:1 by Erik Johansson, 12 years ago

Description: modified (diff)

comment:2 by leper, 12 years ago

In 11749:

Try to fix tech error. Refs #1377.

comment:3 by leper, 12 years ago

Component: Core engineUI & Simulation
Milestone: BacklogAlpha 10

I couldn't reproduce the issue, but I assume the errors come from a healer dying. (Before doing that its owner changes to -1, hence there is no TechnologyManager available. r11697 contained the same code for units with the Attack component.)

If you don't get this error anymore please close this ticket.

comment:4 by Erik Johansson, 12 years ago

I'll test it right away :) (Or I'm installing VisualC++Express first so I can compile myself, but once I've built the game I will test it :) )

comment:5 by Erik Johansson, 12 years ago

Resolution: fixed
Status: newclosed

Tested and didn't run into it so I'll close this ticket :) Great work fixing all these things :)

comment:6 by ben, 12 years ago

In 11751:

Adds more checks for tech manager before using it. Refs #1377.

Note: See TracTickets for help on using tickets.