MantisBT - VCMI
View Issue Details
0003023VCMIAI - Adventure Mappublic2018-11-12 08:322023-10-10 13:42
Povelitel 
Povelitel 
normalminoralways
closedfixed 
0.99 
1.next 
0003023: AI has very long turn. Very long ~ 1 hour
4 AI make turns ~ for 1 hour. Needs improvement here.
8e34b1b9a8ba27cfc9f43473b1eb993af5ae155f
No tags attached.
related to 0003071closed Povelitel Maps on which the AI turns for a very long time 
rar Very long turns.rar (2,688,180) 2018-11-12 08:32
https://bugs.vcmi.eu/file_download.php?file_id=2967&type=bug
rar logs crash avto5.rar (519,749) 2019-01-18 09:23
https://bugs.vcmi.eu/file_download.php?file_id=2977&type=bug
rar logs crash avto 1.rar (462,086) 2019-01-18 09:23
https://bugs.vcmi.eu/file_download.php?file_id=2978&type=bug
Issue History
2018-11-12 08:32PovelitelNew Issue
2018-11-12 08:32PovelitelFile Added: Very long turns.rar
2019-01-18 09:22PovelitelNote Added: 0007707
2019-01-18 09:23PovelitelFile Added: logs crash avto5.rar
2019-01-18 09:23PovelitelFile Added: logs crash avto 1.rar
2019-03-24 12:46DydzioCategoryMechanics - Adventure Map => AI - Adventure Map
2019-06-10 13:02PovelitelRelationship addedrelated to 0003071
2020-01-27 09:06toneyisnowNote Added: 0007870
2020-12-14 15:33PovelitelNote Added: 0007964
2020-12-14 15:33PovelitelStatusnew => resolved
2020-12-14 15:33PovelitelFixed in Version => 1.next
2020-12-14 15:33PovelitelResolutionopen => fixed
2020-12-14 15:33PovelitelAssigned To => Povelitel
2023-10-10 13:42PovelitelNote Added: 0008728
2023-10-10 13:42PovelitelStatusresolved => closed

Notes
(0007707)
Povelitel   
2019-01-18 09:22   
after last improvements I have 2 others crashes here:

avtosave 5

return &typeid(*t);

> [Внедренный фрейм] VCAI.dll!CTypeList::getTypeInfo(const CGObjectInstance *)Строка 190 C++
     VCAI.dll!CTypeList::castToMostDerived<CGObjectInstance>(const CGObjectInstance * inputPtr)Строка 154 C++
     VCAI.dll!BinarySerializer::save<CGObjectInstance const * __ptr64,0>(const CGObjectInstance * const & data)Строка 211 C++
     VCAI.dll!BinarySerializer::save<CGObjectInstance const * __ptr64>(const std::set<CGObjectInstance const *,std::less<CGObjectInstance const *>,std::allocator<CGObjectInstance const *> > & data)Строка 273 C++
     [Внедренный фрейм] VCAI.dll!BinarySerializer::operator&(const std::set<CGObjectInstance const *,std::less<CGObjectInstance const *>,std::allocator<CGObjectInstance const *> > &)Строка 132 C++
     VCAI.dll!VCAI::serializeInternal<BinarySerializer>(BinarySerializer & h, const int version)Строка 345 C++
     VCAI.dll!VCAI::saveGame(BinarySerializer & h, const int version)Строка 733 C++
     VCMI_client.exe!CClient::serialize(BinarySerializer & h, const int version)Строка 184 C++
     [Внедренный фрейм] VCMI_client.exe!BinarySerializer::save(const CClient &)Строка 238 C++
     [Внедренный фрейм] VCMI_client.exe!BinarySerializer::operator&(const CClient &)Строка 132 C++
     [Внедренный фрейм] VCMI_client.exe!CSaveFile::operator<<(const CClient &)Строка 370 C++
     VCMI_client.exe!SaveGameClient::applyCl(CClient * cl)Строка 782 C++
     VCMI_client.exe!CClient::handlePack(CPack * pack)Строка 431 C++
     VCMI_client.exe!CServerHandler::threadHandleConnection()Строка 632 C++


avtosave 1

if(!d || obj->ID == Obj::TOWN)

> VCAI.dll!Goals::GatherTroops::getAllPossibleSubgoals()Строка 122 C++
     VCAI.dll!Goals::GatherTroops::whatToDoToAchieve()Строка 65 C++
     VCAI.dll!VCAI::decomposeGoal(Goals::TSubgoal ultimateGoal)Строка 2411 C++
     VCAI.dll!VCAI::mainLoop()Строка 876 C++
     VCAI.dll!VCAI::makeTurn()Строка 810 C++
(0007870)
toneyisnow   
2020-01-27 09:06   
I cannot repro this on my Win10 PC. Are you playing on Android?
(0007964)
Povelitel   
2020-12-14 15:33   
Now on my PC everything works fine. Turn is 1.45, and no any crashes
Tested in f31c5169b5814336acce04e8912b6632d22555c0

(Sorry guys, but I don't know who fixed it)
(0008728)
Povelitel   
2023-10-10 13:42   
no longer relevant