Freeze while running in high peak

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Susramanian
Spiderkin
Posts: 454
Joined: Sat May 15, 2010 3:09 am

Freeze while running in high peak

#1 Post by Susramanian »

The game went unresponsive on me mid-run. Had to force quit out. Here's the last bit of stdout:

[LOG] Sunwol is no longer attuned.
removeTempVal resists table: 17CD4770 :=: 25668
delTmpValTable resists 3 15.358316235672
removeTempVal max_life 237.57 :=: 25662
delTmpVal max_life 237.57
removeTempVal life_regen 125.4 :=: 25663
delTmpVal life_regen 125.4
removeTempVal stamina_regen 6.72 :=: 25664
delTmpVal stamina_regen 6.72
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[LOG] There is an item here: #FFFFFF##UID:1342896:0#cured leather armour (2 def, 4 armor)#LAST#
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[LOG] There is an item here: #FFFFFF##UID:1343056:0#mithril greatsword (61.5-98.4 power, 4 apr)#LAST#
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[LOG] Ran for 5 turns (stop reason: terrain ahead blocks).
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
301 frames in 10 seconds = 30.1 FPS
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[LOG] #00ff00#Talent King's Gift is ready to use.
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[LOG] Ran for 6 turns (stop reason: terrain change on left side).
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
[TALENT WEAPON MULT] 6.5 0.1 0.45 0 0.4990613987847
removeTempVal mana_regen -2.4 :

Leffe
Wayist
Posts: 20
Joined: Wed Oct 06, 2010 3:42 pm

Re: Freeze while running in high peak

#2 Post by Leffe »

Susramanian wrote:The game went unresponsive on me mid-run. Had to force quit out. Here's the last bit of stdout:

removeTempVal mana_regen -2.4 :=:
I've gotten this one in Tol Falas quite a few times.

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: Freeze while running in high peak

#3 Post by yufra »

Yes, this is a funky and rare bug. I believe it has something to do with wights and Thunderstorm, but I cannot be sure.

EDIT: Specifically Emperor Wights, with Thunderstorm at talent level 2 which gives mana_regen -2.4.
<DarkGod> lets say it's intended

Leffe
Wayist
Posts: 20
Joined: Wed Oct 06, 2010 3:42 pm

Re: Freeze while running in high peak

#4 Post by Leffe »

By interrupting (quite tricky, because you have to hold down ^C, but you can't hold it for too long or it will exit) the execution, this might be where the code is hanging:

tome/class/NPC.lua:

Code: Select all

    while self:enoughEnergy() and not self.dead do

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: Freeze while running in high peak

#5 Post by yufra »

Hey, I just noticed something... the log output shows nothing after the ":=:". This is where the temporary value id should be, and I don't understand how oldval (the -2.4) gets set if the temporary value id doesn't exist. Is the bug in the print statement? Another clue, (or a red herring, how do we tell?).
<DarkGod> lets say it's intended

Leffe
Wayist
Posts: 20
Joined: Wed Oct 06, 2010 3:42 pm

Re: Freeze while running in high peak

#6 Post by Leffe »

yufra wrote:Hey, I just noticed something... the log output shows nothing after the ":=:". This is where the temporary value id should be, and I don't understand how oldval (the -2.4) gets set if the temporary value id doesn't exist. Is the bug in the print statement? Another clue, (or a red herring, how do we tell?).
This is what I get:

Code: Select all

removeTempVal   mana_regen      -2.4     :=:    1
delTmpVal       mana_regen      -2.4

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Freeze while running in high peak

#7 Post by darkgod »

Probably the output not being flushed.
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Freeze while running in high peak

#8 Post by darkgod »

I am not sure yet how this happens but I put a safety net in place to prevent it.
Thanks for the help
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: Freeze while running in high peak

#9 Post by yufra »

Does the safety net include some feedback in the stdout? That might help diagnosing the problem.
<DarkGod> lets say it's intended

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Freeze while running in high peak

#10 Post by darkgod »

I could not find anything useful to ouput :/
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

PowerWyrm
Sher'Tul
Posts: 1106
Joined: Thu Nov 21, 2002 9:53 pm

Re: Freeze while running in high peak

#11 Post by PowerWyrm »

What's the fix for this? Due to this bug I simply can't play any character in beta 13 past Tol Falas...

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Freeze while running in high peak

#12 Post by darkgod »

Replace the act() method in game/modules/tome/class/NPC.lua with this one:

Code: Select all

function _M:act()
	while self:enoughEnergy() and not self.dead do
		-- Do basic actor stuff
		if not mod.class.Actor.act(self) then return end
		local old_energy = self.energy.value

		-- Compute FOV, if needed
		self:doFOV()

		-- Let the AI think .... beware of Shub !
		-- If AI did nothing, use energy anyway
		self:doAI()

		if self.emote_random and rng.percent(self.emote_random.chance) then
			self:doEmote(rng.table(self.emote_random))
		end

		if not self.energy.used then self:useEnergy() end
		if old_energy == self.energy.value then break end -- Prevent infinite loops
	end
end
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply