Page 1 of 1

Crash with latest svn version int CCobInstance::Tick(...)

Posted: 10 Apr 2007, 18:18
by submarine
I repeatedly caught a crash in CCobInstance::Tick(...) at

Code: Select all

if (done) {
	UnblockAll(*cur);
	delete *cur;
...


This is the callstack:

*,CCobThreadPtr_less>() Line 975 + 0x32 C++
spring.exe!std::priority_queue<CCobThread *,std::vector<CCobThread *,std::allocator<CCobThread *> >,CCobThreadPtr_less>::push() Line 200 + 0x2d C++
MSVCR71.dll!7c34218a()
MSVCR71.dll!7c34218a()
spring.exe!std::list<CCobThread *,std::allocator<CCobThread *> >::_Tidy() Line 933 + 0x9 C++
spring.exe!CCobInstance::Tick() Line 385 + 0xe C++
spring.exe!CCobEngine::Tick() Line 169 + 0xb C++
spring.exe!CGame::SimFrame() Line 2157 C++
spring.exe!CGame::ClientReadNet() Line 2572 C++
ntdll.dll!7c927326()
ntdll.dll!7c927304()
spring.exe!streflop_libm::__tanf() Line 39 + 0x15 C++
spring.exe!COverheadController::KeyMove() Line 193 + 0x2e C++
spring.exe!COverheadController::ScreenEdgeMove() Line 208 C++
spring.exe!CGame::UpdateUI() Line 2933 C++
spring.exe!CGame::Update() Line 1632 + 0x7 C++
spring.exe!SpringApp::Update() Line 810 + 0x5 C++
spring.exe!SpringApp::Run() Line 984 + 0x7 C++
[/code]

Posted: 12 Apr 2007, 21:37
by yuritch
Crashes for me, too.
Using latest svn revision (as of 04.12.2007, 22:00 GMT+2) and AAI 0.8 (available in svn now). Crash happens well into the game, like 10 minutes or so. Seems it has something to do with one of the factories being blocked by another nearby building so that a new unit cannot be created in the factory. I'm currently experimenting to see if I could reproduce the crash without AAI in the game.

Posted: 12 Apr 2007, 23:24
by submarine
i get that crash every game (with latest svn spring version) however everything works fine with revision 3527, so i guess it's not aai's fault