Chaosforge Forum

DoomRL => Bug Reports => Topic started by: Creaphis on March 19, 2012, 10:28

Title: [0.9.9.6G Windows]Crashes when dying on Angel of Pacifist
Post by: Creaphis on March 19, 2012, 10:28
I was goofing around in Angel of Pacifist today, HNTR difficulty, and the game crashed several times for me when I died in the late game. Looking through my mortems, the farthest that I got without the game crashing when I died was Deimos level 1. The last crash in the log posted below occurred at the instant of being killed by a lost soul on JC's level (shoulda packed another nuke). DoomRL attempted to save my game after each crash but the saves were corrupted.

I hope this is useful.

----------------------------------------------------------------------
Timestamp   : 19/03/2012 1:42:06
Error level : ERROR
Message     : Lua call OnDestroy caught ELuaException!

Call path     : cells.30.OnDestroy
Call params   : (74,11)
Error message : Get(items.4.group) failed!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 19/03/2012 1:42:06
Error level : ERROR
Message     : Lua hook OnAction caught ELuaException!

Call path     : beings[captain].OnAction
Call params   : ()
Error message : LuaError: cells.30.OnDestroy -- Get(items.4.group) failed!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 19/03/2012 1:42:09
Error level : FATAL EXCEPTION
Message     : Fatal exception encountered

An unhandled exception occurred at $004624B9 :
ELuaException : LuaError: beings[captain].OnAction -- LuaError: cells.30.OnDestroy -- Get(items.4.group) failed!
  $004624B9  TDOOMLUA__ONERROR,  line 608 of src/doomlua.pas
  $00450DE7  TLUASYSTEM__PROTECTEDRUNHOOK,  line 539 of e:/Projects/fpcvalkyrie/src/vluasystem.pas
  $004A719B  TTHING__CALLHOOK,  line 141 of src/dfthing.pas
  $0049E4D4  TBEING__ACTION,  line 1170 of src/dfbeing.pas
  $0049E5EB  TBEING__CALL,  line 1188 of src/dfbeing.pas
  $0041EFDA  TDOOM__RUN,  line 369 of src/doombase.pas
  $00401B15  main,  line 71 of src/doomrl.pas

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

----------------------------------------------------------------------
Timestamp   : 19/03/2012 1:58:29
Error level : ERROR
Message     : Lua hook OnAction caught ELuaException!

Call path     : beings[sergeant].OnAction
Call params   : ()
Error message : Get(items.5.group) failed!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 19/03/2012 1:58:42
Error level : FATAL EXCEPTION
Message     : Fatal exception encountered

An unhandled exception occurred at $004624B9 :
ELuaException : LuaError: beings[sergeant].OnAction -- Get(items.5.group) failed!
  $004624B9  TDOOMLUA__ONERROR,  line 608 of src/doomlua.pas
  $00450DE7  TLUASYSTEM__PROTECTEDRUNHOOK,  line 539 of e:/Projects/fpcvalkyrie/src/vluasystem.pas
  $004A719B  TTHING__CALLHOOK,  line 141 of src/dfthing.pas
  $0049E4D4  TBEING__ACTION,  line 1170 of src/dfbeing.pas
  $0049E5EB  TBEING__CALL,  line 1188 of src/dfbeing.pas
  $0041EFDA  TDOOM__RUN,  line 369 of src/doombase.pas
  $00401B15  main,  line 71 of src/doomrl.pas

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

----------------------------------------------------------------------
Timestamp   : 19/03/2012 11:11:16
Error level : ERROR
Message     : Lua hook OnAction caught ELuaException!

Call path     : beings[lostsoul].OnAction
Call params   : ()
Error message : Get(items.5.group) failed!
----------------------------------------------------------------------

----------------------------------------------------------------------
Timestamp   : 19/03/2012 11:11:25
Error level : FATAL EXCEPTION
Message     : Fatal exception encountered

An unhandled exception occurred at $004624B9 :
ELuaException : LuaError: beings[lostsoul].OnAction -- Get(items.5.group) failed!
  $004624B9  TDOOMLUA__ONERROR,  line 608 of src/doomlua.pas
  $00450DE7  TLUASYSTEM__PROTECTEDRUNHOOK,  line 539 of e:/Projects/fpcvalkyrie/src/vluasystem.pas
  $004A719B  TTHING__CALLHOOK,  line 141 of src/dfthing.pas
  $0049E4D4  TBEING__ACTION,  line 1170 of src/dfbeing.pas
  $0049E5EB  TBEING__CALL,  line 1188 of src/dfbeing.pas
  $0041EFDA  TDOOM__RUN,  line 369 of src/doombase.pas
  $00401B15  main,  line 71 of src/doomrl.pas

----------------------------------------------------------------------
Title: Re: [0.9.9.6G Windows]Crashes when dying on Angel of Pacifist
Post by: Kamikaze14 on March 19, 2012, 10:36
Happens to me too, I paid it no mind until I got a partial win denied by this bug.
Title: Re: [0.9.9.6G Windows]Crashes when dying on Angel of Pacifist
Post by: Klear on March 19, 2012, 10:43
This is a known bug - it is caused by death while holding a chainsaw on a pacifist run. Make sure you don't have any weapon equipped in your pacifist run. Chainsaw gets automatically equipped when you pick it up to get the free zerk. Until it's fixed, simply unequip the chainsaw as soon as you grab it.
Title: Re: [0.9.9.6G Windows]Crashes when dying on Angel of Pacifist
Post by: shark20061 on March 19, 2012, 11:26
This is a known bug - it is caused by death while holding a chainsaw on a pacifist run. Make sure you don't have any weapon equipped in your pacifist run. Chainsaw gets automatically equipped when you pick it up to get the free zerk. Until it's fixed, simply unequip the chainsaw as soon as you grab it.

Almost.  It's caused by getting a kill while a weapon is equipped in a challenge where such weapons are disallowed, such as Melee weapons in Marksman and Shotgunnery, and all weapons in Pacifism.  The bug doesn't actually appear until the game tries to write the mortem file.
Title: Re: [0.9.9.6G Windows]Crashes when dying on Angel of Pacifist
Post by: The DoomRLguy on March 23, 2012, 10:39
Basically, if you see "You hear the scream of a freed soul! No way! You're a pacifist!" then it's over- The what-did-you-kill-them-with function just broke, officially giving you a kill with your armour.  From that point on, the game will *ALWAYS* crash when writing a mortem.
Title: Re: [0.9.9.6G Windows]Crashes when dying on Angel of Pacifist
Post by: shark20061 on March 23, 2012, 13:11
You'll be fine on Pacifism as long as you don't equip any weapons (or immediately unequip anything that gets auto-equipped).  Enemies can be killed and it won't crash, so long as you do not have a weapons equipped when it happens.