Flashing, unresponsive screen

Where bugs go to lie down and rest

Moderator: Moderator

Message
Author
overtrix
Archmage
Posts: 412
Joined: Fri Jan 17, 2003 9:33 am
Location: Les Corbières sauvages

Re: Flashing, unresponsive screen

#16 Post by overtrix »

Rightio then - forcing creation of the Tourist Route to Angolwen got round that side of it. Then off to the mountain top and a date with Sparky, the same thing happened after recalling.

Forced a quit and it restarted having just been sent to the mountain - gave him a dose of Uwe the Hobbit High Pyromancer again, recalled to the surface and then dived into the Maze before the CPU quicksand got properly under way ...

... the save prompted by entering that zone seemed to override the faulty one, and all's well with Uwe - that Angmar staff is very old and he was geting splinters from it anyway.

Okay, here's my amateur take on it - some step in handling the save after a recall, as opposed to the save for a normal move from zone to zone, is looping ohne Ende - and the progressive nature is either from a memory leak, or from writing ever-longer or ever-more files ... think the files one - remember how the hard disk keeps chuntering after the program's forced quit, maybe that's the OS saying "omg what's that stupid app doing to leave 10GB of clutter on my nice shiny disk, hang on while I tidy up" ? ... dunno, blah blah.

p.s. scared hobbit - hiding, not hidding - be at ease, not be at easy

If all goes well, am living near Carcassonne from Dec 1 - which okay, is more than a little OT
:P

Mushroomhermit
Thalore
Posts: 159
Joined: Wed Jul 07, 2010 4:11 pm
Location: The Intardnet

Re: Flashing, unresponsive screen

#17 Post by Mushroomhermit »

Here is an example of my terminal output when it glitches a save...

Code: Select all

[LOG]	Saving game...
[SAVEFILE PIPE] new save running in the pipe:	Jehrak	zone	::	zone-maze.teaz	::	table: 0x8ccbc68	=>	table: 0x9faceb0
[LOG]	#00ff00#Talent Vision is ready to use.
[LOG]	Rested for 26 turns (stop reason: all resources and life at maximum).
[SAVEFILE PIPE] new save running in the pipe:	Jehrak	game	::	game.teag	::	table: 0x8cc38a0	=>	table: 0xa655918
stack traceback:
	[C]: in function 'error'
	/engine/class.lua:211: in function 'serialize_data'
	/engine/class.lua:205: in function 'serialize_data'
	/engine/class.lua:218: in function 'serialize'
	/engine/class.lua:236: in function 'save'
	/engine/Savefile.lua:103: in function 'saveObject'
	/engine/Savefile.lua:198: in function '?'
	/engine/SavefilePipe.lua:85: in function </engine/SavefilePipe.lua:71>
	(tail call): ?
[COROUTINE] error	/engine/class.lua:211: cannot save a userdata (data["tex"])
[COROUTINE] dead	savefilepipe
Not ready to say this is definitive yet but... I got it to glitch by resting until my recall triggered and did a successful not glitchy recall by hitting "5" until the spell triggered.
darkgod wrote:dixed

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

Re: Flashing, unresponsive screen

#18 Post by darkgod »

Ohhhh now a real stacktrace, this could help :) thanks
[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 ;)

overtrix
Archmage
Posts: 412
Joined: Fri Jan 17, 2003 9:33 am
Location: Les Corbières sauvages

Re: Flashing, unresponsive screen

#19 Post by overtrix »

psst...

Uwe got justice for giving up the staff - he found a better one to get the best one - then wielded the best one and killed all the orcs ... which answers a question I had - no, the fight isn't rigged, it's just insanely hard :)

Now he wants some more justice - the Elders said they'd given him a reward but they appear to have lied, unless it's a bump to something - so he's going to get the blue wizards to make him some of those spikey bombs, bring them back and level Minas Tirith. Did I mention that Uwe's not the forgiving kind ?

Zonk
Sher'Tul
Posts: 1067
Joined: Sat Mar 01, 2003 4:01 pm

Re: Flashing, unresponsive screen

#20 Post by Zonk »

Had similar problems : screen went white and it kept saving FOREVER, so I had to force-quit. Lost two quite nice savefiles, one had gotten 2 artifacts in Tol Falas(though I had a backup of that one...8 dungeon levels earlier, and without the arts .( )...
Teaches me to make backups, I guess, at least once every few dungeon levels.
ToME online profile: http://te4.org/users/zonk
Addons (most likely obsolete): Wights, Trolls, Starting prodigy, Alternate save/resistance system

greycat
Sher'Tul
Posts: 1396
Joined: Tue May 11, 2010 11:51 pm

Re: Flashing, unresponsive screen

#21 Post by greycat »

This looks like the same save failure problem I reported.

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

Re: Flashing, unresponsive screen

#22 Post by darkgod »

Can you uncomment this line in game/engines/default/engine/class.lua around line 200 please ?

Code: Select all

--				print(allow, k , filter[k], v, "will dump", (not allow and not filter[k]) or (allow and filter[k]))
THen when it does the same stacktrace please post the log
[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 ;)

Mushroomhermit
Thalore
Posts: 159
Joined: Wed Jul 07, 2010 4:11 pm
Location: The Intardnet

Re: Flashing, unresponsive screen

#23 Post by Mushroomhermit »

sure boss, testing

ok it spit out

Code: Select all

stack traceback:
	[C]: in function 'error'
	/engine/class.lua:211: in function 'serialize_data'
	/engine/class.lua:205: in function 'serialize_data'
	/engine/class.lua:218: in function 'serialize'
	/engine/class.lua:236: in function 'save'
	/engine/Savefile.lua:103: in function 'saveObject'
	/engine/Savefile.lua:198: in function '?'
	/engine/SavefilePipe.lua:85: in function </engine/SavefilePipe.lua:71>
	(tail call): ?
[COROUTINE] error	/engine/class.lua:211: cannot save a userdata (data["tex"])
[COROUTINE] dead	savefilepipe
preceded by whole megabytes of stuff like this:

Code: Select all

false	spell/fire	nil	true	will dump	true
false	spell/phantasm	nil	true	will dump	true
false	spell/earth	nil	true	will dump	true
false	spell/water	nil	true	will dump	true
false	spell/divination	nil	true	will dump	true
false	spell/meta	nil	false	will dump	true
false	spell/arcane	nil	true	will dump	true
false	spell/conveyance	nil	true	will dump	true
false	technique/combat-training	nil	true	will dump	true
false	wild-gift/sand-drake	nil	false	will dump	true
false	cunning/survival	nil	false	will dump	true
false	undead/skeleton	nil	true	will dump	true
false	spell/nature	nil	true	will dump	true
false	spell/air	nil	true	will dump	true
false	spell/temporal	nil	false	will dump	true
nil	inc_damage	nil	table: 0xb54bb18	will dump	true
false	4	nil	5	will dump	true
nil	equilibrium_regen	nil	0	will dump	true
nil	sustain_talents	nil	table: 0xb54bb40	will dump	true
false	T_HYMN_OF_PERSEVERANCE	nil	table: 0xb54bb68	will dump	true
false	blind	nil	1140	will dump	true
false	onhit	nil	1137	will dump	true
false	stun	nil	1138	will dump	true
false	particle	nil	table: 0xb3ad430	will dump	true
false	confusion	nil	1139	will dump	true
false	T_ARCANE_POWER	nil	table: 0xb54bbd0	will dump	true
false	particle	nil	table: 0xb706b20	will dump	true
false	power	nil	1192	will dump	true
false	T_FEATHER_WIND	nil	table: 0xb54bc38	will dump	true
false	lev	nil	1187	will dump	true
false	encumb	nil	1185	will dump	true
false	def	nil	1186	will dump	true
false	T_CHANT_OF_FORTRESS	nil	table: 0xee2fb40	will dump	true
false	onhit	nil	1146	will dump	true
false	particle	nil	table: 0xc4a6f30	will dump	true
false	phys	nil	1147	will dump	true
nil	melee_project	nil	table: 0xda53a18	will dump	true
nil	focus_ui	nil	table: 0xd027d48	will dump	true
false	y	nil	45	will dump	true
false	x	nil	95.5	will dump	true
false	bottom	nil	3	will dump	true
false	ui	nil	table: 0xd027e28	will dump	true
false	hcenter	nil	0	will dump	true
nil	iw	nil	242	will dump	true
nil	display_y	nil	431	will dump	true
nil	setuped	nil	true	will dump	true
nil	h	nil	90	will dump	true
nil	key	nil	table: 0xab231b8	will dump	true
nil	iy	nil	25	will dump	true
nil	display_x	nil	714	will dump	true
nil	focus_ui_id	nil	2	will dump	true
nil	tex_h	nil	128	will dump	true
nil	__stack_id	nil	1	will dump	true
nil	w	nil	252	will dump	true
nil	alpha	nil	255	will dump	true
nil	ix	nil	5	will dump	true
nil	ih	nil	57	will dump	true
nil	title	nil	Resting...	will dump	true
nil	__CLASSNAME	nil	engine.ui.Dialog	will dump	true
nil	tex	nil	userdata: 0xb55e1c4	will dump	true
Hope that helps :P
darkgod wrote:dixed

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

Re: Flashing, unresponsive screen

#24 Post by darkgod »

Helps a lot! I know the problem now and can fix it ;)
[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: Flashing, unresponsive screen

#25 Post by darkgod »

fixed!
[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: Flashing, unresponsive screen

#26 Post by darkgod »

Oh and you can avoid the bug by not resting while waiting for the recall, press 5 or walk around
[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: Flashing, unresponsive screen

#27 Post by PowerWyrm »

AAARGH!!! Why didn't I see this post 5 minutes earlier???
Lost my current char to this bug followed by another bug when identifying the Phial of Galadriel...

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

Re: Flashing, unresponsive screen

#28 Post by darkgod »

Eh sorry :/

As for the id bug, it seems to me that you used a quickbirth from a previous beta? is that probable ?
[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 ;)

greycat
Sher'Tul
Posts: 1396
Joined: Tue May 11, 2010 11:51 pm

Re: Flashing, unresponsive screen

#29 Post by greycat »

What would be the easiest way to get this fix and apply it to my source tree? (I suppose I should learn how to use svn better....)

Edit: Hmm... I found a couple svn commands:

Code: Select all

svn log -r HEAD:1637
This appears to show me what's happened since the beta 13 (1637) copy I have. (There are some spoilers even in this log, so... you've been warned.) I scanned through it and found this:

Code: Select all

r1711 | dg | 2010-10-30 19:22:58 -0400 (Sat, 30 Oct 2010) | 2 lines

Saving the game while running/resting will not crash the game/savefile
And then,

Code: Select all

svn diff -r 1710:1711
gives me a code diff, which I might be able to apply by hand.

Edit: Well... damn, that didn't work. I applied the two lines from that diff to game/modules/tome/class/Game.lua and then redid the entire Carn Dum dungeon. Zapped the rod, then ran back and forth until the effect kicked in.

Code: Select all

[SAVEFILE PIPE] new save running in the pipe:   Myrkyl  zone    ::      zone-car
n-dum.teaz      ::      table: 0x9726cb8        =>      table: 0xd00c660
160 frames in 10.017 seconds = 15.9728 FPS
547 ticks  in 10.027 seconds = 54.5527 TPS
stack traceback:
        [C]: in function 'error'
        /engine/class.lua:211: in function 'serialize_data'
        /engine/class.lua:205: in function 'serialize_data'
        /engine/class.lua:218: in function 'serialize'
        /engine/class.lua:236: in function 'save'
        /engine/Savefile.lua:103: in function 'saveObject'
        /engine/Savefile.lua:236: in function '?'
        /engine/SavefilePipe.lua:85: in function </engine/SavefilePipe.lua:71>
        (tail call): ?
[COROUTINE] error       /engine/class.lua:211: cannot save a userdata (data["tex"])
[COROUTINE] dead        savefilepipe
302 frames in 10.018 seconds = 30.1457 FPS
155962 ticks  in 10.017 seconds = 15569.7 TPS

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

Re: Flashing, unresponsive screen

#30 Post by darkgod »

Uh ? That's impossible, can you uncomment the same line as mushroomhermit did and give me the log please ?
[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