2024-04-23 13:59 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000357Spring engineGeneralpublic2007-01-03 14:46
Reporterel_matarife 
Assigned Totvo 
PrioritynormalSeveritycrashReproducibilityhave not tried
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0000357: -1 hitpoint unit leads to -1 experience point, crazed weapon speed and crash
Description5 v 5 Balanced Annihilation game with spectators. My cruise missile ship pounds away at a EMP Launcher, and suddenly its health goes to -1, and my EMP ships' experience level goes negative and it begins firing at an insane rate. Around 5 seconds later, the game crashes. There is a screen shot of it before the crash http://taspring.clan-sy.com/phpbb/viewforum.php?f=11 I also have a replay if you want to run it through Valgrind.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • txt file icon infolog.txt (12,560 bytes) 2007-01-02 03:34 -
    Map: Tangerine.smf
    Mod: "Balanced Annihilation V4.5" from BA45.sd7
    Number of damage types: 42
    TA Spring 0.74b2
    Player Geno1138 joined as 0
    Player Player0ne joined as 3
    Player0ne added point: Start 3
    Player sillynanny joined as 9
    Player StickFigs joined as 1
    Player [KB]Obble joined as 11
    Player Zero91 joined as 8
    Player adm joined as 2
    Player Magus_X[TSC] joined as 5
    Player CXZ joined as 10
    Player0ne added point: Start 3
    Player duncs joined as 7
    Player0ne added point: Start 3
    Player 900ftjesus joined as 6
    Player taxi joined as 4
    StickFigs added point: Start 1
    StickFigs added point: Start 1
    adm added point: Start 2
    Geno1138 added point: Start 0
    <StickFigs> p1 what did you say you wanted?
    Geno1138 added point: Start 0
    <StickFigs> Allies: a
    .info
    Sorting roster by Allies
    adm added point: Start 2
    adm added point: Start 2
    adm added point: Start 2
    Geno1138 added point: Start 0
    Geno1138 added point: Start 0
    <Geno1138> Allies: I'll hold the front
    <Geno1138> Allies: but someone needs to get some of the seas
    <StickFigs> Allies: marked my shit
    <taxi> Allies:  the fuck is that, figs?
    <StickFigs> Allies: haha
    <StickFigs> Allies: you made it a dinosaur
    taxi added point: Start 4
    Geno1138 added point: Start 0
    Speed set to 0.8
    Speed set to 1.0
    taxi added point: Start 4
    StickFigs added point: MMMmmm
    <Geno1138> Allies: Okay so, who's got top sea
    <Geno1138> Allies: And bottom sea
    No response from [KB]Obble
    Delayed respone from [KB]Obble (69 instead of 129)
    <StickFigs> Allies: more like goat sea
    Buildings set to face East
    Buildings set to face North
    <StickFigs> Allies: who are these people who can make all the starter shit without their com moving?
    <taxi> Allies: fuck tanks im making robotz
    <StickFigs> Allies: metal spots are never that close
    <adm> Allies:  it depends on the map
    <taxi> Allies: what?
    No response from duncs
    Delayed respone from duncs (1701 instead of 1761)
    <StickFigs> Allies: but none of the maps
    <StickFigs> Allies: a metal map?
    No response from Magus_X[TSC]
    Delayed respone from Magus_X[TSC] (1941 instead of 2002)
    <Geno1138> Allies: Suggest windpower
    <Geno1138> Allies: Fields of wind
    taxi added point: `make a couple of layzorz
    <StickFigs> Allies: no back seat driving
    No response from duncs
    Delayed respone from duncs (3568 instead of 3629)
    <taxi> Allies: you chose to be the frontman 
    <StickFigs> Allies: no
    <StickFigs> Allies: I reluctantly took it
    <adm> Allies: stop whining
    <taxi> Allies: they'll rush us through there
    Player0ne added point: you canhave these if you want maxi
    <taxi> Allies: k
    No response from duncs
    Delayed respone from duncs (5444 instead of 5504)
    No response from duncs
    Delayed respone from duncs (5504 instead of 5565)
    taxi added point: gaydar
    <StickFigs> Allies: stip
    <StickFigs> Allies: STOP
    <StickFigs> Allies: STOOOOP
    Spoiler: Can't reach destination!
    Spoiler: Can't reach destination!
    Spoiler: Can't reach destination!
    Spoiler: Can't reach destination!
    Spoiler: Can't reach destination!
    Spoiler: Can't reach destination!
    <StickFigs> Allies: hmm
    [900ftjesus] haha
    No response from duncs
    taxi added point: `eat?
    Delayed respone from duncs (7377 instead of 7437)
    taxi added point: 
    adm added point: i saw somethign being built
    taxi added point: 
    No response from duncs
    Delayed respone from duncs (9250 instead of 9310)
    No response from CXZ
    Delayed respone from CXZ (9432 instead of 9492)
    No response from CXZ
    Delayed respone from CXZ (9492 instead of 9553)
    <Player0ne> Allies: i kinda need that geo
    StickFigs added point: What the fuck
    <taxi> Allies: k
    No response from duncs
    Delayed respone from duncs (11122 instead of 11182)
    adm added point: dude just ask maxi to give this to you
    No response from duncs
    Delayed respone from duncs (11182 instead of 11243)
    <StickFigs> Allies: I don't even care
    StickFigs added point: kill
    StickFigs added point: send
    <StickFigs> Allies: Zzzzz
    No response from duncs
    Delayed respone from duncs (13057 instead of 13118)
    StickFigs added point: FUCK OFF
    No response from duncs
    Delayed respone from duncs (14933 instead of 14993)
    <taxi> Allies: no need for that
    <StickFigs> Allies: I'm just gonna start blowing shit up soon
    <taxi> Allies: you took to long so i was gonna make em and give you them
    <adm> Allies: stick don't be an ass
    [900ftjesus] no need to type in all caps now
    No response from duncs
    Delayed respone from duncs (16807 instead of 16867)
    Searcher is being attacked
    Searcher is being attacked
    <adm> Allies: stick's area is going to need help soon
    No response from duncs
    Delayed respone from duncs (18681 instead of 18741)
    taxi added point: sea monstarz
    No response from duncs
    Delayed respone from duncs (18741 instead of 18801)
    No response from duncs
    Delayed respone from duncs (20615 instead of 20675)
    <Player0ne> Allies: kill them y/n
    <adm> Allies: go for it
    No response from duncs
    Delayed respone from duncs (22489 instead of 22549)
    StickFigs added point: help
    No response from duncs
    Delayed respone from duncs (24349 instead of 24406)
    Snake: Can't reach destination!
    Snake: Can't reach destination!
    Player0ne added point: 
    Snake: Can't reach destination!
    Leveler is being attacked
    Snake: Can't reach destination!
    Leveler is being attacked
    Snake: Can't reach destination!
    Snake: Can't reach destination!
    Underwater Metal Extractor is being attacked
    Construction Vehicle: Build pos blocked
    Snake: Can't reach destination!
    No response from duncs
    Delayed respone from duncs (26065 instead of 26121)
    No response from duncs
    Delayed respone from duncs (26121 instead of 26176)
    Snake: Can't reach destination!
    <adm> Allies: its so sad that brawlers always work
    <Geno1138> Allies: turn it off firign manualy
    Snake: Can't reach destination!
    No response from duncs
    Delayed respone from duncs (27808 instead of 27860)
    Geno1138 added point: Can you kill that
    Leveler is being attacked
    No response from Zero91
    Delayed respone from Zero91 (29243 instead of 29294)
    Raider: Can't reach destination!
    Raider: Can't reach destination!
    Raider: Can't reach destination!
    Raider: Can't reach destination!
    Snake: Can't reach destination!
    [[KB]Obble] lol
    No response from duncs
    Delayed respone from duncs (29587 instead of 29647)
    <Magus_X[TSC]> gg
    Geno1138 added point: COMM
    No response from duncs
    Delayed respone from duncs (31300 instead of 31354)
    Construction Vehicle: Can't reach destination!
    Geno1138 added point: He's getting away
    Construction Vehicle: Can't reach destination!
    <sillynanny> dont kill my comm before i move it into my allies base
    <StickFigs> Allies: omg
    Leveler is being attacked
    Player0ne added point: make some d
    Leveler is being attacked
    Leveler is being attacked
    Leveler is being attacked
    Leveler is being attacked
    Raider is being attacked
    No response from duncs
    Delayed respone from duncs (32980 instead of 33037)
    Raider: Can't reach destination!
    <Magus_X[TSC]> gg -_-
    <duncs> bg on my part
    <Player0ne> gg
    Construction Vehicle: Can't reach destination!
    <StickFigs> gg
    <duncs> gg
    Raider: Can't reach destination!
    No response from duncs
    Delayed respone from duncs (34768 instead of 34827)
    No response from 900ftjesus
    Delayed respone from 900ftjesus (35058 instead of 35114)
    Construction Vehicle: Can't reach destination!
    Construction Vehicle: Can't reach destination!
    Construction Vehicle: Can't reach destination!
    <Player0ne> Allies: can I get lvl2 con car?
    Construction Vehicle: Can't reach destination!
    <Magus_X[TSC]> i cant believe it
    <Magus_X[TSC]> no all
    <Magus_X[TSC]> AA
    Player0ne added point: 
    adm added point: t2 boats
    <taxi> Allies: already sending freaker team
    Raider: Can't reach destination!
    No response from duncs
    Delayed respone from duncs (37996 instead of 38043)
    <adm> Allies: my arty will take care of it
    Raider: Can't reach destination!
    No response from duncs
    Delayed respone from duncs (39494 instead of 39546)
    <taxi> Allies: ours?
    <Player0ne> Allies: nuke?
    Searcher is being attacked
    <Geno1138> Allies: EMP
    Raider: Can't reach destination!
    Searcher is being attacked
    No response from duncs
    Delayed respone from duncs (41029 instead of 41081)
    Raider: Can't reach destination!
    Raider is being attacked
    Dragon's Maw: Can't reach destination!
    Dragon's Maw: Can't reach destination!
    <Magus_X[TSC]> end
    <duncs> gg
    Player Magus_X[TSC] left
    Team8 (sillynanny) will go home feet first
    adm added point: blod
    No response from duncs
    Delayed respone from duncs (42449 instead of 42495)
    Construction Vehicle is being attacked
    <duncs> nuke?
    Messenger: Can't reach destination!
    Messenger: Can't reach destination!
    No response from duncs
    Delayed respone from duncs (43886 instead of 43929)
    <Geno1138> Allies: EMP
    <Geno1138> Allies: AGAIN
    <Geno1138> Allies: SOmeone find and kill it
    [[KB]Obble] wher u fired?
    Player0ne added point: 
    Raider: Can't reach destination!
    adm added point: aim lrpc here
    Geno1138 added point: Guard me here
    Construction Vehicle is being attacked
    Raider is being attacked
    Raider: Can't reach destination!
    Construction Vehicle: Can't reach destination!
    Construction Vehicle: Can't reach destination!
    <duncs> I think they have a spy
    Radar Tower is being attacked
    <adm> Allies: a spy is a good idea
    Warlord is being attacked
    Raider: Can't reach destination!
    <duncs> and: my bot lab can't build
    Dragon's Maw: Can't reach destination!
    Dragon's Maw: Can't reach destination!
    Construction Vehicle is being attacked
    [900ftjesus] cancel all queue let it stop and restart it
    Raider is being attacked
    Raider is being attacked
    Raider is being attacked
    Raider: Can't reach destination!
    Raider: Can't reach destination!
    Gaat Gun is being attacked
    [[KB]Obble] How many HP does that EMP launcher have?
    [sillynanny] -1
    <Geno1138> Allies: I dunno but my damn missle ships won't hit it
    [[KB]Obble] i thought so
    <Geno1138> Allies: Cna i get a scout over here
    Raider: Can't reach destination!
    Raider: Can't reach destination!
    [[KB]Obble] lol,   Yellow will win with an undestoryable EMP  :-)
    Player0ne added point: wrf
    <Player0ne> Allies: wtf
    <Geno1138> NO clue
    [[KB]Obble] WTF
    <StickFigs> Allies: HAHAHAHA
    <adm> Allies: what the fuck
    <Zero91> holy shit wtf
    [sillynanny] holy fucking shit
    <StickFigs> Allies: take a screenshot
    [[KB]Obble] I want that boat
    <taxi> screenshot@!
    <StickFigs> Allies: hahaha
    <Player0ne> super missle ship
    Spring 0.74b2 has crashed.
    Exception: Access violation (0xc0000005)
    Exception Address: 0x0066716b
    DLL information:
    0x00400000	spring
    0x7c900000	ntdll
    0x7c800000	kernel32
    0x77dd0000	ADVAPI32
    0x77e70000	RPCRT4
    0x73f10000	dsound
    0x77c10000	msvcrt
    0x77d40000	USER32
    0x77f10000	GDI32
    0x774e0000	ole32
    0x76b40000	WINMM
    0x77c00000	VERSION
    0x68b20000	GLU32
    0x5ed00000	OPENGL32
    0x73760000	DDRAW
    0x73bc0000	DCIMAN32
    0x76c90000	IMAGEHLP
    0x71ad0000	WSOCK32
    0x71ab0000	WS2_32
    0x71aa0000	WS2HELP
    0x10000000	SDL
    0x7c340000	MSVCR71
    0x00b00000	DevIL
    0x66fc0000	freetype6
    0x61b80000	zlib1
    0x003d0000	glew32
    0x74720000	MSCTF
    0x10d00000	GameHook
    0x10100000	lgscroll
    0x78130000	MSVCR80
    0x7c420000	MSVCP80
    0x77690000	NTMARTA
    0x76f60000	WLDAP32
    0x71bf0000	SAMLIB
    0x605d0000	mslbui
    0x69000000	atioglxx
    0x77120000	OLEAUT32
    0x02140000	nvappfilter
    0x71a50000	mswsock
    0x662b0000	hnetcfg
    0x73080000	rsvpsp
    0x71a90000	wshtcpip
    0x76f20000	DNSAPI
    0x76fb0000	winrnr
    0x76fc0000	rasadhlp
    0x76fd0000	CLBCATQ
    0x77050000	COMRes
    0x20000000	xpsp2res
    0x065c0000	msi
    0x75e90000	SXS
    0x76c30000	WINTRUST
    0x77a80000	CRYPT32
    0x77b20000	MSASN1
    0x72d20000	wdmaud
    0x72d10000	msacm32
    0x77be0000	MSACM32
    0x77bd0000	midimap
    0x73ee0000	KsUser
    0x06510000	MetalMakerAI
    0x59a60000	DBGHELP
    Stacktrace:
    (0) C:\Program Files\TASpring\spring.exe [0x0066716B]
    (1) C:\Program Files\TASpring\spring.exe [0x008B7A3E]
    (2) C:\Program Files\TASpring\spring.exe [0x008B6F3E]
    (3) C:\Program Files\TASpring\spring.exe [0x00669718]
    (4) C:\Program Files\TASpring\spring.exe [0x00445D42]
    (5) C:\Program Files\TASpring\spring.exe [0x004F3F86]
    (6) C:\Program Files\TASpring\spring.exe [0x0071601E]
    (7) C:\Program Files\TASpring\spring.exe [0x0071B896]
    (8) C:\Program Files\TASpring\spring.exe [0x0071BC23]
    (9) C:\Program Files\TASpring\spring.exe [0x0071BDF2]
    (10) C:\Program Files\TASpring\spring.exe [0x00794985]
    (11) C:\Program Files\TASpring\spring.exe [0x00401092]
    (12) C:\Program Files\TASpring\spring.exe [0x0040110F]
    (13) C:\WINDOWS\system32\kernel32.dll(RegisterWaitForInputIdle+0x49) [0x7C816FD7]
    
    txt file icon infolog.txt (12,560 bytes) 2007-01-02 03:34 +
  • 7z file icon TangerineCMShipCrash.7z (287,646 bytes) 2007-01-03 06:05

-Relationships
has duplicate 0000379resolvedtvo 0.42b2: crash when Juno dies 
+Relationships

-Notes

~0000505

tvo (reporter)

Translated backtrace:

CompareProjDist(CProjectileHandler::projdist const&, CProjectileHandler::projdist const&)
C:/taspring_trunk/rts/Sim/Projectiles/ProjectileHandler.cpp:262

void std::__unguarded_linear_insert<__gnu_cxx::__normal_iterator<CProjectileHandler::projdist*, std::vector<CProjectileHandler::projdist, std::allocator<CProjectileHandler::projdist> > >, CProjectileHandler::projdist, int (*)(CProjectileHandler::projdist const&, CProjectileHandler::projdist const&)>(__gnu_cxx::__normal_iterator<CProjectileHandler::projdist*, std::vector<CProjectileHandler::projdist, std::allocator<CProjectileHandler::projdist> > >, CProjectileHandler::projdist, int (*)(CProjectileHandler::projdist const&, CProjectileHandler::projdist const&))
C:/taspring_trunk/C:/mingw/lib/gcc/mingw32/4.1.1/include/c++/bits/stl_algo.h:0

void std::__final_insertion_sort<__gnu_cxx::__normal_iterator<CProjectileHandler::projdist*, std::vector<CProjectileHandler::projdist, std::allocator<CProjectileHandler::projdist> > >, int (*)(CProjectileHandler::projdist const&, CProjectileHandler::projdist const&)>(__gnu_cxx::__normal_iterator<CProjectileHandler::projdist*, std::vector<CProjectileHandler::projdist, std::allocator<CProjectileHandler::projdist> > >, __gnu_cxx::__normal_iterator<CProjectileHandler::projdist*, std::vector<CProjectileHandler::projdist, std::allocator<CProjectileHandler::projdist> > >, int (*)(CProjectileHandler::projdist const&, CProjectileHandler::projdist const&))
C:/taspring_trunk/C:/mingw/lib/gcc/mingw32/4.1.1/include/c++/bits/stl_algo.h:0

CProjectileHandler::Draw(bool, bool)
C:/taspring_trunk/C:/mingw/lib/gcc/mingw32/4.1.1/include/c++/bits/stl_algo.h:2751

CAdvWater::UpdateWater(CGame*)
C:/taspring_trunk/rts/Rendering/Env/AdvWater.cpp:344

CGame::Draw()
C:/taspring_trunk/rts/Game/Game.cpp:1517

SpringApp::Update()
C:/taspring_trunk/rts/System/Main.cpp:813

SpringApp::Run(int, char**)
C:/taspring_trunk/rts/System/Main.cpp:990

Run(int, char**)
C:/taspring_trunk/rts/System/Main.cpp:1047

WinMain@16
C:/taspring_trunk/rts/System/Main.cpp:1096

main
J:/MinGW/home/Sherpya/stage/mingw-runtime-3.10/main.c:78

_mingw_CRTStartup
J:/MinGW/home/Sherpya/stage/mingw-runtime-3.10/crt1.c:226

WinMainCRTStartup
J:/MinGW/home/Sherpya/stage/mingw-runtime-3.10/crt1.c:260

~0000511

el_matarife (reporter)

Uploaded the replay as a 7Zip file since Mantis FREAKS when uploading the replay normally.

~0000513

tvo (reporter)

Hmm, EMP gets NaN (not a number) experience, NaN/NaN health after it hits the Warlord. After that it gets hit by the missile ship so that one gains NaN experience and NaN/NaN health too...

~0000514

tvo (reporter)

If FPU exceptions are unmasked, there happen to be more bugs...

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread -1240090928 (LWP 26479)]
0x0829bce8 in CTAAirMoveType::UpdateMoveRate (this=0xb685fd8) at rts/Sim/MoveTypes/TAAirMoveType.cpp:624
624 curRate = (int)((curSpeed / maxSpeed) * 3);
(gdb) print maxSpeed
$1 = 0
(gdb) bt
#0 0x0829bce8 in CTAAirMoveType::UpdateMoveRate (this=0xb685fd8) at rts/Sim/MoveTypes/TAAirMoveType.cpp:624
#1 0x0829bdc9 in CTAAirMoveType::SlowUpdate (this=0xb685fd8) at rts/Sim/MoveTypes/TAAirMoveType.cpp:840
#2 0x082e28e9 in CUnit::SlowUpdate (this=0xb654328) at rts/Sim/Units/Unit.cpp:390
0000003 0x082c5aa3 in CUnitHandler::Update (this=0x9f34aa8) at rts/Sim/Units/UnitHandler.cpp:237
0000004 0x0817a1cf in CGame::SimFrame (this=0x89ffdf0) at rts/Game/Game.cpp:1854
0000005 0x0818a5be in CGame::ClientReadNet (this=0x89ffdf0) at rts/Game/Game.cpp:2262
#6 0x0818c3b8 in CGame::Update (this=0x89ffdf0) at rts/Game/Game.cpp:1435
#7 0x080e9d0f in SpringApp::Update (this=0xbfca8b64) at rts/System/Main.cpp:812
#8 0x080edab5 in SpringApp::Run (this=0xbfca8b64, argc=2, argv=0xbfca8c54) at rts/System/Main.cpp:990
#9 0x080eddf6 in Run (argc=2, argv=0xbfca8c54) at rts/System/Main.cpp:1047
0000010 0x080edf12 in main (argc=Cannot access memory at address 0x0
) at rts/System/Main.cpp:1087
(gdb) print curSpeed
$2 = 1.94085515

~0000515

Kloot (developer)

Last edited: 2007-01-03 14:32

Hmm, maxSpeed can only be set to zero from within CMobileAI::SlowUpdate(), CMobileCAI::StopSlowGuard(), and CMobileCAI::StartSlowGuard(), but both StopSlowGuard() and StartSlowGuard() always call CTAAirMoveType::SetMaxSpeed() with the maximum speed of a unit, so that leaves only the first, which does look a bit suspicious:

    const float defMaxSpeed = owner->maxSpeed;
    const float newMaxSpeed = min(c.params[0], defMaxSpeed);
    owner->moveType->SetMaxSpeed(newMaxSpeed);

Changing the first argument of min() to c.params[0] + 1 would ensure that maxSpeed > 0 tho...

~0000516

tvo (reporter)

* Fix mantis 357: The damage calculation on an underwater unit on the edge of
  an explosion of a above-water weapon with edgeEffectiveness=1 could cause
  a 0/0 divide, and hence a NaN damage and NaN experience & health for
  the firing unit. EdgeEffectiveness is clamped to below 1 to prevent this.

~0000517

tvo (reporter)

@Kloot: I solved that by adding if (speed > 0) before each call to moveType->SetMaxSpeed(). You solution implicitly defines a minimum maximum speed of 1.
+Notes

-Issue History
Date Modified Username Field Change
2007-01-02 03:34 el_matarife New Issue
2007-01-02 03:34 el_matarife File Added: infolog.txt
2007-01-02 10:52 tvo Note Added: 0000505
2007-01-03 06:05 el_matarife File Added: TangerineCMShipCrash.7z
2007-01-03 06:05 el_matarife Note Added: 0000511
2007-01-03 10:54 tvo Note Added: 0000513
2007-01-03 10:57 tvo Note Added: 0000514
2007-01-03 14:29 Kloot Note Added: 0000515
2007-01-03 14:31 Kloot Note Edited: 0000515
2007-01-03 14:32 Kloot Note Edited: 0000515
2007-01-03 14:45 tvo Status new => resolved
2007-01-03 14:45 tvo Resolution open => fixed
2007-01-03 14:45 tvo Assigned To => tvo
2007-01-03 14:45 tvo Note Added: 0000516
2007-01-03 14:46 tvo Note Added: 0000517
2007-01-15 13:19 tvo Relationship added has duplicate 0000379
+Issue History