2025-07-18 02:43 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002557Spring engineGeneralpublic2011-07-14 21:42
Reporterabma 
Assigned ToKloot 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version0.82.7+git 
Summary0002557: (master) instant assert in spring-headless at QuadField.h:73
Descriptionbt full: http://pastebin.com/aCNM8uy6

[f=0000000] Aborted (SIGABRT) in spring 0.82+.4.0 (Debug Headless)
[f=0000000] Stacktrace:
[f=0000000] <0> /lib/x86_64-linux-gnu/libc.so.6(+0x33d80) [0x7f5f6b0bdd80]
[f=0000000] <1> /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f5f6b0bdd05]
[f=0000000] <2> /lib/x86_64-linux-gnu/libc.so.6(abort+0x186) [0x7f5f6b0c1ab6]
[f=0000000] <3> /lib/x86_64-linux-gnu/libc.so.6(__assert_fail+0xf5) [0x7f5f6b0b67c5]
[f=0000000] <4> /home/abma/dev/spring/master/rts/Sim/Misc/QuadField.h:74
[f=0000000] <5> /home/abma/dev/spring/master/rts/Game/TraceRay.cpp:225
[f=0000000] <6> /home/abma/dev/spring/master/rts/Game/UI/GuiHandler.cpp:1546
[f=0000000] <7> /home/abma/dev/spring/master/rts/Game/UI/GuiHandler.cpp:3713
[f=0000000] <8> /home/abma/dev/spring/master/rts/Game/Game.cpp:1017
[f=0000000] <9> /home/abma/dev/spring/master/rts/Game/Game.cpp:1274
Additional Informationwas caused by
https://github.com/spring/spring/commit/ca2b2f1ed0508e61ac95caf75025aeaf0c2eb7ca


that seems to be the problem:
https://github.com/spring/spring/blob/master/rts/System/SpringApp.cpp#L640
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • txt file icon dedicated-crash_script.txt (1,220 bytes) 2011-07-14 19:35 -
    [game]
    {
    [allyteam0]
    {
    numallies=0;
    }
    [allyteam1]
    {
    numallies=0;
    }
    [mapoptions]
    {
    }
    [modoptions]
    {
    deathmode=com;
    disablemapdamage=0;
    fixedallies=0;
    ghostedbuildings=1;
    limitdgun=0;
    maxspeed=3;
    maxunits=500;
    minspeed=0.3;
    mo_allowfactionchange=1;
    mo_armageddontime=0;
    mo_combomb_full_damage=1;
    mo_comgate=0;
    mo_coop=1;
    mo_enemywrecks=1;
    mo_greenfields=0;
    mo_noowner=0;
    mo_noshare=1;
    mo_nowrecks=0;
    mo_preventdraw=0;
    mo_progmines=0;
    mo_transportenemy=com;
    startenergy=1000;
    startmetal=1000;
    }
    [player0]
    {
    countrycode=de;
    isfromdemo=0;
    name=[AG]abma;
    password=c91969de;
    rank=5;
    spectator=0;
    team=0;
    }
    [player1]
    {
    countrycode=de;
    isfromdemo=0;
    name=[c]bhaktivedanta;
    password=ea9b6918;
    rank=5;
    spectator=1;
    team=0;
    }
    [player2]
    {
    countrycode=hu;
    isfromdemo=0;
    name=[teh]Beherith[PiRO];
    rank=6;
    spectator=0;
    team=1;
    }
    [restrict]
    {
    }
    [team0]
    {
    allyteam=1;
    handicap=0;
    rgbcolor=0.168627 0.619608 0.168627;
    side=ARM;
    teamleader=0;
    }
    [team1]
    {
    allyteam=0;
    handicap=0;
    rgbcolor=0.2 0.866667 0.215686;
    side=CORE;
    teamleader=2;
    }
    gametype=Balanced Annihilation V7.50;
    ishost=1;
    maphash=1068305858;
    mapname=Rage_v1;
    modhash=568136688;
    myplayername=[teh]Beherith[PiRO];
    numplayers=3;
    numrestrictions=0;
    numusers=3;
    startpostype=0;
    }
    
    
    txt file icon dedicated-crash_script.txt (1,220 bytes) 2011-07-14 19:35 +
  • txt file icon script.txt (1,446 bytes) 2011-07-14 19:40 -
    [GAME]
    {
    	HostIP=;
    	HostPort=8452;
    	IsHost=1;
    	MyPlayerName=[AG]abma;
    
    	ModHash=568136688;
    	MapHash=4234767601;
    	Mapname=DeltaSiegeDry;
    	GameType=Balanced Annihilation V7.50;
    
    	startpostype=3;
    	[mapoptions]
    	{
    	}
    	[modoptions]
    	{
    		disablemapdamage=0;
    		fixedallies=0;
    		ghostedbuildings=1;
    		limitdgun=0;
    		mo_allowfactionchange=1;
    		mo_combomb_full_damage=1;
    		mo_comgate=0;
    		mo_coop=1;
    		mo_enemywrecks=1;
    		mo_greenfields=0;
    		mo_noowner=0;
    		mo_noshare=1;
    		mo_nowrecks=0;
    		mo_preventdraw=0;
    		mo_progmines=0;
    		maxspeed=3;
    		maxunits=500;
    		minspeed=0.3;
    		mo_armageddontime=0;
    		startenergy=1000;
    		startmetal=1000;
    		deathmode=com;
    		mo_transportenemy=com;
    	}
    	NumRestrictions=0;
    	[RESTRICT]
    	{
    	}
    
    	NumPlayers=1;
    	NumUsers=2;
    
    	[PLAYER1]
    	{
    		Name=[AG]abma;
    		CountryCode=;
    		Spectator=0;
    		Rank=0;
    		IsFromDemo=0;
    		Team=1;
    	}
    	[AI0]
    	{
    		Name=Bot1;
    		ShortName=NullAI;
    		Version=0.1;
    		Team=0;
    		IsFromDemo=0;
    		Host=1;
    		[Options]
    		{
    			maphack=0;
    			reporturl=http://myAIStats.myDomain.com/statsReceiver.cgi;
    			maxgroupsize=10;
    			resourcebonous=0;
    			aggressiveness=normal;
    		}
    	}
    
    	[TEAM0]
    	{
    		TeamLeader=1;
    		StartPosX=9544;
    		StartPosZ=755;
    		AllyTeam=1;
    		RGBColor=0.976471 1 0;
    		Side=ARM;
    		Handicap=0;
    	}
    	[TEAM1]
    	{
    		TeamLeader=1;
    		StartPosX=863;
    		StartPosZ=803;
    		AllyTeam=0;
    		RGBColor=0.168627 0.619608 0.168627;
    		Side=ARM;
    		Handicap=0;
    	}
    
    	[ALLYTEAM1]
    	{
    		NumAllies=0;
    	}
    	[ALLYTEAM0]
    	{
    		NumAllies=0;
    	}
    }
    
    txt file icon script.txt (1,446 bytes) 2011-07-14 19:40 +

-Relationships
+Relationships

-Notes

~0007025

Kloot (developer)

Last edited: 2011-07-14 19:24

Ehm... a crash (assertion failure) in QuadField caused by a change in SpringApp::GetDisplayGeometry? Are you sure that is the right stacktrace?

~0007026

abma (administrator)

yep, thats correct. i rechecked it:

with "return true" it crashes:

spring-headless: /home/abma/dev/spring/master/rts/Sim/Misc/QuadField.h:83: const CQuadField::Quad& CQuadField::GetQuad(int) const: Assertion `static_cast<unsigned>(i) < baseQuads.size()' failed.
[f=0000000] Error: Aborted (SIGABRT) in spring 0.82+.4.0 (Debug Headless)
[f=0000000] Error: Stacktrace:
[f=0000000] Error: <0> /lib/x86_64-linux-gnu/libc.so.6(+0x33d80) [0x7fcd99bbcd80]
[f=0000000] Error: <1> /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7fcd99bbcd05]
[f=0000000] Error: <2> /lib/x86_64-linux-gnu/libc.so.6(abort+0x186) [0x7fcd99bc0ab6]
[f=0000000] Error: <3> /lib/x86_64-linux-gnu/libc.so.6(__assert_fail+0xf5) [0x7fcd99bb57c5]
[f=0000000] Error: <4> /home/abma/dev/spring/master/rts/Sim/Misc/QuadField.h:84
[f=0000000] Error: <5> /home/abma/dev/spring/master/rts/Game/TraceRay.cpp:229
[f=0000000] Error: <6> /home/abma/dev/spring/master/rts/Game/UI/GuiHandler.cpp:1548
[f=0000000] Error: <7> /home/abma/dev/spring/master/rts/Game/UI/GuiHandler.cpp:3742
[f=0000000] Error: <8> /home/abma/dev/spring/master/rts/Rendering/WorldDrawer.cpp:209
[f=0000000] Error: <9> /home/abma/dev/spring/master/rts/Game/Game.cpp:1101


without, it doesn't

~0007027

abma (administrator)

i added the script i used for testing. but i think it will crash for every script...?!

~0007028

abma (administrator)

script.txt is more common: ba750 + dsd

[f=0000000] Finalizing
spring-headless: /home/abma/dev/spring/master/rts/Sim/Misc/QuadField.h:83: const CQuadField::Quad& CQuadField::GetQuad(int) const: Assertion `static_cast<unsigned>(i) < baseQuads.size()' failed.
[f=0000000] Error: Aborted (SIGABRT) in spring 0.82+.4.0 (Debug Headless)
[f=0000000] Error: Stacktrace:
[f=0000000] Error: <0> /lib/x86_64-linux-gnu/libc.so.6(+0x33d80) [0x7fe08cb0ad80]
[f=0000000] Error: <1> /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7fe08cb0ad05]
[f=0000000] Error: <2> /lib/x86_64-linux-gnu/libc.so.6(abort+0x186) [0x7fe08cb0eab6]
[f=0000000] Error: <3> /lib/x86_64-linux-gnu/libc.so.6(__assert_fail+0xf5) [0x7fe08cb037c5]
[f=0000000] Error: <4> /home/abma/dev/spring/master/rts/Sim/Misc/QuadField.h:84
[f=0000000] Error: <5> /home/abma/dev/spring/master/rts/Game/TraceRay.cpp:229
[f=0000000] Error: <6> /home/abma/dev/spring/master/rts/Game/UI/GuiHandler.cpp:1548
[f=0000000] Error: <7> /home/abma/dev/spring/master/rts/Game/UI/GuiHandler.cpp:3742
[f=0000000] Error: <8> /home/abma/dev/spring/master/rts/Rendering/WorldDrawer.cpp:209
[f=0000000] Error: <9> /home/abma/dev/spring/master/rts/Game/Game.cpp:1101

~0007029

abma (administrator)

can you reproduce that?

~0007030

Kloot (developer)

compiling headless now, standby

~0007031

Kloot (developer)

Last edited: 2011-07-14 20:37

Yes, crashes with the same trace. Pretty good idea what's wrong now (with the headless build anyway).

~0007033

Kloot (developer)

fixed for spring-headless (84a17ad8918c56bcf7fb8f3c4afaa296c02c4b38)

I still have no idea about 0002485 though.
+Notes

-Issue History
Date Modified Username Field Change
2011-07-14 18:57 abma New Issue
2011-07-14 18:57 abma Graphics Card => unknown
2011-07-14 18:57 abma Severity minor => crash
2011-07-14 19:00 abma Additional Information Updated
2011-07-14 19:21 abma Description Updated
2011-07-14 19:22 abma Summary (master) instant crash in spring-headless => (master) instant assert in spring-headless at QuadField.h:73
2011-07-14 19:24 Kloot Note Added: 0007025
2011-07-14 19:24 Kloot Note Edited: 0007025
2011-07-14 19:25 Kloot Status new => feedback
2011-07-14 19:35 abma Note Added: 0007026
2011-07-14 19:35 abma File Added: dedicated-crash_script.txt
2011-07-14 19:36 abma Note Added: 0007027
2011-07-14 19:40 abma File Added: script.txt
2011-07-14 19:40 abma Note Added: 0007028
2011-07-14 19:50 abma Note Added: 0007029
2011-07-14 19:52 Kloot Note Added: 0007030
2011-07-14 20:36 Kloot Note Added: 0007031
2011-07-14 20:37 Kloot Note Edited: 0007031
2011-07-14 21:42 Kloot Note Added: 0007033
2011-07-14 21:42 Kloot Status feedback => resolved
2011-07-14 21:42 Kloot Fixed in Version => 0.82.7+git
2011-07-14 21:42 Kloot Resolution open => fixed
2011-07-14 21:42 Kloot Assigned To => Kloot
+Issue History