Background animation broken in SVN

Moderator: Moderator

Post Reply
Message
Author
yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Background animation broken in SVN

#1 Post by yufra »

I compiled revision 1534, and on a whim enabled the background animation again. The game froze fairly quickly, and the last few lines in stdout were:

Code: Select all

player	1	dumb ai talents can use	Fireflash	T_FIREFLASH
player	1	dumb ai talents can use	Flame	T_FLAME
player	1	dumb ai talents can use	Sunshield	T_SUNSHIELD
player	1	dumb ai talents can use	Manathrust	T_MANATHRUST
player	1	dumb ai talents can use	Lightning	T_LIGHTNING
dumb ai uses	T_LIGHTNING
USING	table: 0x5df990	Lightning
I have also seen it crash/hang on T_MANATHRUST, so maybe it is targeting? Then again I haven't seen it succeed on any, so maybe it is particles... no idea. Can others reproduce this?
<DarkGod> lets say it's intended

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

Re: Background animation broken in SVN

#2 Post by darkgod »

Froze ? hum
Can you try to gdb 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 ;)

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

Re: Background animation broken in SVN

#3 Post by yufra »

I launched it within GDB but there is no stacktrace to catch... my initial diagnosis is an infinite Lua loop or something to that effect. No errors are thrown, the program does not quit and the only way to recover is to force quit. Here is the stack after I force quited (not sure if that is useful):
#0 0x0002bce2 in luaH_get (t=0x4cac10, key=0x596718) at T-Engine/../../src/lua/ltable.c:469
#1 0x0002e39b in luaV_gettable (L=0x191a3140, t=0x4cbc30, key=0x596718, val=0x10dd944) at T-Engine/../../src/lua/lvm.c:114
#2 0x0002fada in luaV_execute (L=0x191a3140, nexeccalls=4) at T-Engine/../../src/lua/lvm.c:467
#3 0x000194f9 in resume (L=0x191a3140, ud=0x1063218) at T-Engine/../../src/lua/ldo.c:404
#4 0x00018526 in luaD_rawrunprotected (L=0x191a3140, f=0x19438 <resume>, ud=0x1063218) at T-Engine/../../src/lua/ldo.c:116
#5 0x00019664 in lua_resume (L=0x191a3140, nargs=0) at T-Engine/../../src/lua/ldo.c:427
#6 0x000124ae in auxresume (L=0x42d710, co=0x191a3140, narg=0) at T-Engine/../../src/lua/lbaselib.c:528
#7 0x000125b0 in luaB_coresume (L=0x42d710) at T-Engine/../../src/lua/lbaselib.c:547
#8 0x0001918b in luaD_precall (L=0x42d710, func=0x9fb67c, nresults=2) at T-Engine/../../src/lua/ldo.c:319
#9 0x00030c8b in luaV_execute (L=0x42d710, nexeccalls=6) at T-Engine/../../src/lua/lvm.c:587
#10 0x00019400 in luaD_call (L=0x42d710, func=0x9fb520, nResults=1) at T-Engine/../../src/lua/ldo.c:377
#11 0x0000e97c in f_call (L=0x42d710, ud=0xbfffe89c) at T-Engine/../../src/lua/lapi.c:800
#12 0x00018526 in luaD_rawrunprotected (L=0x42d710, f=0xe94c <f_call>, ud=0xbfffe89c) at T-Engine/../../src/lua/ldo.c:116
#13 0x0001979e in luaD_pcall (L=0x42d710, func=0xe94c <f_call>, u=0xbfffe89c, old_top=288, ef=276) at T-Engine/../../src/lua/ldo.c:463
#14 0x0000ea21 in lua_pcall (L=0x42d710, nargs=1, nresults=1, errfunc=23) at T-Engine/../../src/lua/lapi.c:821
#15 0x00069f4e in docall (L=0x42d710, narg=1, nret=1) at T-Engine/../../src/main.c:82
#16 0x0006aaaa in on_tick () at T-Engine/../../src/main.c:243
#17 0x0006c560 in tengine_main (argc=1, argv=0x408220) at T-Engine/../../src/main.c:933
#18 0x00044901 in -[SDLMain applicationDidFinishLaunching:] (self=0x4115b0, _cmd=0x9028c432, note=0x40a2a0) at T-Engine/../../src/mac/SDLMain.m:213
#19 0x94e791c3 in _nsnote_callback ()
#20 0x951373c3 in __CFXNotificationPost ()
#21 0x95136dca in _CFXNotificationPostNotification ()
#22 0x94e6e090 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#23 0x94e7b46d in -[NSNotificationCenter postNotificationName:object:] ()
#24 0x9885a70a in -[NSApplication _postDidFinishNotification] ()
#25 0x9885a61a in -[NSApplication _sendFinishLaunchingNotification] ()
#26 0x989b16a9 in -[NSApplication(NSAppleEventHandling) _handleAEOpen:] ()
#27 0x989b12c9 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] ()
#28 0x94eae400 in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
#29 0x94eae1c4 in _NSAppleEventManagerGenericHandler ()
#30 0x907d3f58 in aeDispatchAppleEvent ()
#31 0x907d3e57 in dispatchEventAndSendReply ()
#32 0x907d3d61 in aeProcessAppleEvent ()
#33 0x974e9323 in AEProcessAppleEvent ()
#34 0x9882acc6 in _DPSNextEvent ()
#35 0x9882a2ca in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#36 0x987ec55b in -[NSApplication run] ()
#37 0x000446eb in CustomApplicationMain (argc=1, argv=0xbffff690) at T-Engine/../../src/mac/SDLMain.m:150
#38 0x00044a1f in main (argc=1, argv=0xbffff690) at T-Engine/../../src/mac/SDLMain.m:244
<DarkGod> lets say it's intended

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

Re: Background animation broken in SVN

#4 Post by darkgod »

Hum can you try putting in some debug print() to see where it loops?
Obviously this works here :/
[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: Background animation broken in SVN

#5 Post by yufra »

I'll put it on the to-do list. :D
<DarkGod> lets say it's intended

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

Re: Background animation broken in SVN

#6 Post by yufra »

Ah, of course... it had something to do with the tinkering I was doing in ActorTalents, an infinite recursion that for some reason wasn't causing a stack overflow (or not quickly enough?). Anyway, ignore this. :D
<DarkGod> lets say it's intended

Post Reply