2025-07-31 21:14 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002413Spring engineAIpublic2011-05-01 02:00
Reporterabma 
Assigned Toabma 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0002413: Initialization of KAIK triggers Hangdetection
DescriptionThis happens on small maps on a decent CPU (AMD Phenom(tm) II X4 945)

looks like its an map-analyzing code, as bigger maps causes langer hangs...

looks like it was caused by:
https://github.com/spring/spring/commit/62ab54eb3f2f8e97e2da67081b8c65de2fcef07a
Additional Information#0 0x00007fb6fb8e01bf in OpenQueueBH::Empty (this=0x49e00000047)
    at /home/abma/dev/spring/master/AI/Skirmish/KAIK/MicroPather.cpp:169
#1 0x00007fb6fb8deb08 in NSMicroPather::MicroPather::Solve (
    this=0x7fb6e52d53f0, startNode=0x5b7, endNode=0x2adc, path=0x7fb6e52d53c0,
    cost=0x7fb6e52d53d8)
    at /home/abma/dev/spring/master/AI/Skirmish/KAIK/MicroPather.cpp:429
#2 0x00007fb6fb907146 in CPathFinder::CreateDefenseMatrix (
    this=0x7fb6e52d5340)
    at /home/abma/dev/spring/master/AI/Skirmish/KAIK/PathFinder.cpp:199
0000003 0x00007fb6fb8d9ff6 in CDefenseMatrix::Init (this=0x7fb6e5385a50)
    at /home/abma/dev/spring/master/AI/Skirmish/KAIK/DefenseMatrix.cpp:39
0000004 0x00007fb6fb88eec7 in CKAIK::Update (this=0x7fb6e43438b0)
    at /home/abma/dev/spring/master/AI/Skirmish/KAIK/KAIK.cpp:288
0000005 0x00007fb6fb9370fb in CAIUpdateEvent::Run (this=0x7fb6e7800b70, ai=...,
    globalAICallback=0x7fb6e4345080)
    at /home/abma/dev/spring/master/AI/Wrappers/LegacyCpp/Event/AIUpdateEvent.h:32
#6 0x00007fb6fb936449 in CAIAI::handleEvent (this=0x7fb6e4343700, topic=3,
    data=0x7fff863a3f10)
    at /home/abma/dev/spring/master/AI/Wrappers/LegacyCpp/AIAI.cpp:172
#7 0x00007fb6fb8f28f1 in handleEvent (skirmishAIId=0, topic=3,
    data=0x7fff863a3f10)
    at /home/abma/dev/spring/master/AI/Skirmish/KAIK/AIExport.cpp:99
---Type <return> to continue, or q <return> to quit---
#8 0x0000000000fcfa58 in CSkirmishAILibrary::HandleEvent (
    this=0x7fb6e4343690, skirmishAIId=0, topic=3, data=0x7fff863a3f10)
    at /home/abma/dev/spring/master/rts/ExternalAI/SkirmishAILibrary.cpp:89
#9 0x0000000000fb78d2 in CSkirmishAI::HandleEvent (this=0x7fb70c057ed0,
    topic=3, data=0x7fff863a3f10)
    at /home/abma/dev/spring/master/rts/ExternalAI/SkirmishAI.cpp:56
0000010 0x0000000000fdf8ea in CSkirmishAIWrapper::Update (this=0x7fb70c059e30,
    frame=1)
    at /home/abma/dev/spring/master/rts/ExternalAI/SkirmishAIWrapper.cpp:376
#11 0x0000000000fd1382 in CEngineOutHandler::Update (this=0x801f760)
    at /home/abma/dev/spring/master/rts/ExternalAI/EngineOutHandler.cpp:164
0000012 0x00000000009f3a82 in CGame::SimFrame (this=0x7fb70c1d2a50)
    at /home/abma/dev/spring/master/rts/Game/Game.cpp:1630
0000013 0x00000000009a7702 in CGame::ClientReadNet (this=0x7fb70c1d2a50)
    at /home/abma/dev/spring/master/rts/Game/NetCommands.cpp:365
0000014 0x00000000009efad6 in CGame::Update (this=0x7fb70c1d2a50)
    at /home/abma/dev/spring/master/rts/Game/Game.cpp:856
#15 0x0000000000f0fafc in SpringApp::Update (this=0x7fff863a4b70)
    at /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1055
#16 0x0000000000f0fd5e in SpringApp::Run (this=0x7fff863a4b70, argc=1,
    argv=0x7fff863a4d38)
    at /home/abma/dev/spring/master/rts/System/SpringApp.cpp:1162
#17 0x0000000000f13a47 in MainFunc (argc=1, argv=0x7fff863a4d38,
---Type <return> to continue, or q <return> to quit---
    ret=0x7fff863a4c1c) at /home/abma/dev/spring/master/rts/System/Main.cpp:57
#18 0x0000000000f13cda in Run (argc=1, argv=0x7fff863a4d38)
    at /home/abma/dev/spring/master/rts/System/Main.cpp:68
#19 0x0000000000f13d73 in main (argc=1, argv=0x7fff863a4d38)
    at /home/abma/dev/spring/master/rts/System/Main.cpp:90
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0006578

abma (administrator)

see the comments at the commit, too:

https://github.com/spring/spring/commit/62ab54eb3f2f8e97e2da67081b8c65de2fcef07a

~0006579

abma (administrator)

fixed with https://github.com/spring/spring/commit/0f3a67d4e02103821d681083f8f913354fbaa49a
+Notes

-Issue History
Date Modified Username Field Change
2011-05-01 01:22 abma New Issue
2011-05-01 01:24 abma Note Added: 0006578
2011-05-01 02:00 abma Note Added: 0006579
2011-05-01 02:00 abma Status new => resolved
2011-05-01 02:00 abma Resolution open => fixed
2011-05-01 02:00 abma Assigned To => abma
+Issue History