Chaosforge Forum

DoomRL => Bug Reports => Topic started by: Klear on March 17, 2012, 06:21

Title: [Fixed][0.9.9.6G Windows] former_ai entered infinite loop!
Post by: Klear on March 17, 2012, 06:21
Something went wrong with a former commando. After each actions, the game generated some kind of error, created a log file and then needed me to press enter.

I cleared the monsters who were threatening me and then found that there is a former commando who is unable to shoot. Putting him out of his misery ended the errors.

Here's my error.log

Code: [Select]
----------------------------------------------------------------------
Timestamp   : 9.1.2012 15:15:01
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[].OnAction
Call params   : ()
Error message : Lua error : lua\ai.lua:709: Object expected as parameter 1!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 9.1.2012 15:15:01
Error level : FATAL EXCEPTION
Message     : Fatal exception encountered

An unhandled exception occurred at $00464249 :
ELuaException : LuaError: beings[].OnAction -- Lua error : lua\ai.lua:709: Object expected as parameter 1!
  $00464249  TDOOMLUA__ONERROR,  line 589 of src/doomlua.pas
  $0044F8B7  TLUASYSTEM__PROTECTEDRUNHOOK,  line 476 of e:/Projects/fpcvalkyrie/src/vluasystem.pas
  $0046024C  TTHING__CALLHOOK,  line 152 of src/dfthing.pas
  $004A6D10  TBEING__ACTION,  line 1058 of src/dfbeing.pas
  $004A6E2C  TBEING__CALL,  line 1076 of src/dfbeing.pas
  $0041F8EE  TDOOM__RUN,  line 457 of src/doombase.pas
  $00401FFC  main,  line 61 of src/doomrl.pas

----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 10.3.2012 13:37:30
Error level : FATAL EXCEPTION
Message     : Fatal exception encountered

An unhandled exception occurred at $0041D892 :
EInOutError : Access denied
  $0041D892  VDEBUG_init,  line 306 of e:/Projects/fpcvalkyrie/src/vdebug.pas
  $0040C554

----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:01
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:26
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:36
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:39
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:42
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:45
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:49
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:51
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:53
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:50:56
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:51:01
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[commando].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 17.3.2012 13:51:16
Error level : CRITICAL
Message     : Player action exception!

Error message : Access violation
----------------------------------------------------------------------



Let me know if you need more details; I have screenshots of pretty much the whole thing, how it looked, what solved it etc.
Title: Re: [0.9.9.6G Windows] former_ai entered infinite loop!
Post by: skarczew on March 18, 2012, 17:18
I got the same. It was N! game and I made one Former Human use all his ammo.

Afterwards he was running away from me till the end of the map. When I came near him (1 tile distance), like this:
Code: [Select]
#...
#h.@
#...
####

he was not able to move, and the error appeared:
Code: [Select]
----------------------------------------------------------------------
Timestamp   : 2012-03-18 14:04:30
Error level : ERROR
Message     : Lua hook OnAction caught ELuaStateException!

Call path     : beings[former].OnAction
Call params   : ()
Error message : Lua error : lua\core.lua:960: AI : former_ai entered infinite loop!
----------------------------------------------------------------------
Title: Re: [0.9.9.6G Windows] former_ai entered infinite loop!
Post by: Klear on March 19, 2012, 03:27
Hmm... for me it happened very early on the level (it was an arena) and the commando in question was outside my sight range while this was happening, though it's likely he retreated when the bug struck.

In any case, there was another commando nearby, who kept shooting at me during this time, so I doubt the cause was that he shoot all his ammo. I'll post the screenies later when I get home (though I can't play with sound here, I'm still reading this forum from work, hehe).
Title: Re: [0.9.9.6G Windows] former_ai entered infinite loop!
Post by: skarczew on March 19, 2012, 04:50
Looks like the case is with formers' AI not knowing what to do in certain situations, after ammo is out.
Title: Re: [0.9.9.6G Windows] former_ai entered infinite loop!
Post by: Game Hunter on March 31, 2012, 19:26
This bug's been fixed in repo. It's also the same bug as the one people were finding at Phobos Base Entry, and incidentally had nothing to do with the non-wall boundaries.