2025-07-18 18:23 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002831Spring engineGeneralpublic2012-09-29 16:40
Reporterabma 
Assigned Tohoijui 
PrioritynormalSeveritycrashReproducibilityhave not tried
StatusresolvedResolutionunable to reproduce 
Product Version 
Target VersionFixed in Version 
Summary0002831: assertion failed in SSkirmishAICallbackImpl.cpp:160
Descriptionvalidation test:

http://buildbot.springrts.com/builders/validationtests/builds/699/steps/validation%20test_3/logs/stdio
Additional Informationspring-headless: /home/buildslave/full-linux/build/rts/ExternalAI/SSkirmishAICallbackImpl.cpp:160: const UnitDef* getUnitDefById(int, int): Assertion `unitDef != __null' failed.

Program received signal SIGABRT, Aborted.
0x00007ffff5dec2d5 in raise () from /lib64/libc.so.6
#0 0x00007ffff5dec2d5 in raise () from /lib64/libc.so.6
No symbol table info available.
#1 0x00007ffff5dedbeb in abort () from /lib64/libc.so.6
No symbol table info available.
#2 0x00007ffff5de4c5e in __assert_fail_base () from /lib64/libc.so.6
No symbol table info available.
0000003 0x00007ffff5de4d02 in __assert_fail () from /lib64/libc.so.6
No symbol table info available.
0000004 0x00000000011de17c in getUnitDefById (skirmishAIId=1, unitDefId=1185840128) at /home/buildslave/full-linux/build/rts/ExternalAI/SSkirmishAICallbackImpl.cpp:160
        unitDef = 0x0
        __PRETTY_FUNCTION__ = "const UnitDef* getUnitDefById(int, int)"
0000005 0x00000000011e2ed7 in skirmishAiCallback_Map_findClosestBuildSite (skirmishAIId=1, unitDefId=1185840128, pos_posF3=0x7fffffffd520, searchRadius=1400, minDist=2, facing=0, return_posF3_out=0x7fffffffd510) at /home/buildslave/full-linux/build/rts/ExternalAI/SSkirmishAICallbackImpl.cpp:1778
        unitDef = 0x7fffffffd4f0
#6 0x00007ffff043fbfb in springLegacyAI::CAIAICallback::ClosestBuildSite (this=0x23893a0, unitDef=0x685f4c0, pos=..., searchRadius=1400, minDist=2, facing=0) at /home/buildslave/full-linux/build/AI/Wrappers/LegacyCpp/AIAICallback.cpp:1014
        pos_param = {1744, 297.893738, 4062}
        pos_cache = {0, 2, 1.26116862e-44}
#7 0x00007ffff0404d40 in AAIExecute::DefendMex (this=0x2535040, mex=17763, def_id=101) at /home/buildslave/full-linux/build/AI/Skirmish/AAI/AAIExecute.cpp:2158
        defence = 94
        water = false
        sector = 0x1fba850
        pos = {static CMP_EPS = 9.99999975e-05, static NORMALIZE_EPS = 9.99999996e-13, static maxxpos = 4095, static maxzpos = 4095, x = 1744, y = 297.893738, z = 4062}
        base_pos = {static CMP_EPS = 9.99999975e-05, static NORMALIZE_EPS = 9.99999996e-13, static maxxpos = 4095, static maxzpos = 4095, x = 3672, y = 0, z = 2448}
        x = 2
        y = 4
#8 0x00007ffff042a567 in AAI::UnitFinished (this=0x2389240, unit=17763) at /home/buildslave/full-linux/build/AI/Skirmish/AAI/AAI.cpp:397
        myScopedTimerFromMakro = {part = 0x7ffff0459d61 "UnitFinished", profiler = 0x2389360, startTime = 1323778840315}
        def = 0x82f2dc0
        category = EXTRACTOR
#9 0x00007ffff0436abe in springLegacyAI::CAIUnitFinishedEvent::Run (this=0x6960980, ai=..., globalAICallback=0x75ea9a0) at /home/buildslave/full-linux/build/AI/Wrappers/LegacyCpp/Event/AIUnitFinishedEvent.h:17
No locals.
0000010 0x00007ffff0435cba in springLegacyAI::CAIAI::handleEvent (this=0x7151b50, topic=6, data=0x7fffffffd830) at /home/buildslave/full-linux/build/AI/Wrappers/LegacyCpp/AIAI.cpp:161
        e = 0x6960980
        ret = -1
#11 0x00007ffff03d60ee in handleEvent (skirmishAIId=1, topic=6, data=0x7fffffffd830) at /home/buildslave/full-linux/build/AI/Skirmish/AAI/AIExport.cpp:97
No locals.
0000012 0x0000000001200a35 in CSkirmishAILibrary::HandleEvent (this=0x6410210, skirmishAIId=1, topic=6, data=0x7fffffffd830) at /home/buildslave/full-linux/build/rts/ExternalAI/SkirmishAILibrary.cpp:95
        ret = 0
0000013 0x00000000011f38fb in CSkirmishAI::HandleEvent (this=0x75ea8f0, topic=6, data=0x7fffffffd830) at /home/buildslave/full-linux/build/rts/ExternalAI/SkirmishAI.cpp:57
        myScopedTimerFromMakro = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = "AI t:1 id:1 AAI 0.9", starttime = 60375}, autoShowGraph = false}
0000014 0x0000000001205189 in CSkirmishAIWrapper::UnitFinished (this=0x640b0e0, unitId=17763) at /home/buildslave/full-linux/build/rts/ExternalAI/SkirmishAIWrapper.cpp:296
        evtData = {unit = 17763}
#15 0x00000000011ce7ed in CEngineOutHandler::UnitFinished (this=0x4a2dc70, unit=...) at /home/buildslave/full-linux/build/rts/ExternalAI/EngineOutHandler.cpp:284
        ai = 1 '\001'
        myScopedTimerFromMakro = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = "AI Total", starttime = 60375}, autoShowGraph = false}
        teamId = 1
        allyTeamId = 1
        unitId = 17763
#16 0x0000000001066159 in CUnit::FinishedBuilding (this=0x8466620, postInit=false) at /home/buildslave/full-linux/build/rts/Sim/Units/Unit.cpp:1802
No locals.
#17 0x000000000109e0e9 in CExtractorBuilding::FinishedBuilding (this=0x8466620, postInit=false) at /home/buildslave/full-linux/build/rts/Sim/Units/UnitTypes/ExtractorBuilding.cpp:224
No locals.
#18 0x0000000001065a8d in CUnit::AddBuildPower (this=0x8466620, amount=3.4375, builder=0x866d010) at /home/buildslave/full-linux/build/rts/Sim/Units/Unit.cpp:1686
        part = 0.00190972222
        metalUse = 0.0954861119
        energyUse = 0.994965255
#19 0x0000000001098c5e in CBuilder::Update (this=0x866d010) at /home/buildslave/full-linux/build/rts/Sim/Units/UnitTypes/Builder.cpp:304
        adjBuildSpeed = 3.4375
        queue = @0x8348728
        command = @0x7fffffffdb40
        __PRETTY_FUNCTION__ = "virtual void CBuilder::Update()"
0000020 0x000000000108a889 in CUnitHandler::Update (this=0x4307c50) at /home/buildslave/full-linux/build/rts/Sim/Units/UnitHandler.cpp:294
        unit = 0x866d010
        myScopedTimerFromMakro = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = "Unit::Update", starttime = 60374}, autoShowGraph = false}
        usi =
        __PRETTY_FUNCTION__ = "void CUnitHandler::Update()"
#21 0x0000000000ae8022 in CGame::SimFrame (this=0x1e5d880) at /home/buildslave/full-linux/build/rts/Game/Game.cpp:1465
        cputimer = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = "Game::SimFrame", starttime = 60373}, autoShowGraph = true}
        forced = {<BasicTimer> = {<boost::noncopyable_::noncopyable> = {<No data fields>}, name = "Game::SimFrame (Update)", starttime = 60373}, autoShowGraph = false}
#22 0x0000000000b676ee in CGame::ClientReadNet (this=0x1e5d880) at /home/buildslave/full-linux/build/rts/Game/NetCommands.cpp:370
        inbuf = 0x7fffec30b390 "\002"
        dataLength = 1
        packetCode = 2 '\002'
        packet = {px = 0x7fffec30b370, pn = {pi_ = 0x7fffec30b3b0}}
        procstarttime = {_vptr.spring_time = 0x167ad60, static binder = {class_ = 0x1c76bb0, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x1c3a880, name = 0x167ad08 "spring_time", size = 16, constructor = 0x1105f42 <spring_time::_ConstructInstance(void*)>, destructor = 0x1105f6e <spring_time::_DestructInstance(void*)>, nextBinder = 0x1c3aa80}, static memberRegistrator = 0x1c3a900, x = 60355}
        __PRETTY_FUNCTION__ = "void CGame::ClientReadNet()"
#23 0x0000000000ae50a0 in CGame::Update (this=0x1e5d880) at /home/buildslave/full-linux/build/rts/Game/Game.cpp:875
        timeNow = {_vptr.spring_time = 0x167ad60, static binder = {class_ = 0x1c76bb0, base = 0x0, flags = creg::CF_None, memberRegistrator = 0x1c3a880, name = 0x167ad08 "spring_time", size = 16, constructor = 0x1105f42 <spring_time::_ConstructInstance(void*)>, destructor = 0x1105f6e <spring_time::_DestructInstance(void*)>, nextBinder = 0x1c3aa80}, static memberRegistrator = 0x1c3a900, x = 60355}
        diffsecs = 0.968999982
0000024 0x0000000001120770 in SpringApp::Update (this=0x7fffffffeb70) at /home/buildslave/full-linux/build/rts/System/SpringApp.cpp:916
        ret = 1
#25 0x00000000011208ec in SpringApp::Run (this=0x7fffffffeb70, argc=2, argv=0x7fffffffed38) at /home/buildslave/full-linux/build/rts/System/SpringApp.cpp:997
No locals.
0000026 0x0000000001100beb in MainFunc (argc=2, argv=0x7fffffffed38, ret=0x7fffffffec0c) at /home/buildslave/full-linux/build/rts/System/Main.cpp:51
        app = {cmdline = 0x1c71ec0, binaryName = "/tmp/spring/tests/usr/local/bin/spring-headless"}
0000027 0x0000000001100e7e in Run (argc=2, argv=0x7fffffffed38) at /home/buildslave/full-linux/build/rts/System/Main.cpp:62
        ret = -1
        err = 0x15ebc95
#28 0x0000000001100f17 in main (argc=2, argv=0x7fffffffed38) at /home/buildslave/full-linux/build/rts/System/Main.cpp:92
No locals.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0007891

hoijui (reporter)

this one might be related:
http://buildbot.springrts.com/builders/validationtests/builds/707/steps/validation%20test_3/logs/stdio

they both seem to deal with unitList.

maybe this commit will help to identify/reproduce the problem more easily:
https://github.com/spring/spring/commit/04266b96d20ad8cc4f1a8b2bba39191676a18ba9

~0009230

abma (administrator)

didn't see this failed assertion a long time...
+Notes

-Issue History
Date Modified Username Field Change
2011-12-13 14:41 abma New Issue
2011-12-13 15:25 hoijui Status new => assigned
2011-12-13 15:25 hoijui Assigned To => hoijui
2011-12-13 22:28 hoijui Note Added: 0007891
2012-09-29 16:40 abma Note Added: 0009230
2012-09-29 16:40 abma Status assigned => resolved
2012-09-29 16:40 abma Resolution open => unable to reproduce
+Issue History