MantisBT - VCMI
View Issue Details
0001432VCMIAI - Adventure Mappublic2013-09-04 23:052013-09-11 21:56
Povelitel 
Tow 
highcrashalways
closedfixed 
WindowsXPsp3
0.93b 
 
0001432: crash turn AI
End Turn
No tags attached.
duplicate of 0001444closed Tow crash turn AI 
rar games.rar (895,695) 2013-09-04 23:05
https://bugs.vcmi.eu/file_download.php?file_id=1445&type=bug
Issue History
2013-09-04 23:05PovelitelNew Issue
2013-09-04 23:05PovelitelStatusnew => assigned
2013-09-04 23:05PovelitelAssigned To => Tow
2013-09-04 23:05PovelitelFile Added: games.rar
2013-09-08 16:27TowNote Added: 0003969
2013-09-08 16:27TowStatusassigned => confirmed
2013-09-08 16:30TowNote Added: 0003970
2013-09-08 16:31TowRelationship addedduplicate of 0001444
2013-09-11 21:56TowNote Added: 0004000
2013-09-11 21:56TowStatusconfirmed => closed
2013-09-11 21:56TowResolutionopen => fixed

Notes
(0003969)
Tow   
2013-09-08 16:27   
Crashes in the server on calculating turrets damage:

Stacktrace
     ntdll.dll!_KiUserExceptionDispatcher@8() Unknown
     VCMI_lib.dll!std::_Count_if<std::_Tree_unchecked_const_iterator<std::_Tree_val<std::_Tree_simple_types<BuildingID> >,std::_Iterator_base0>,<lambda_39453c3229c5a6efe51aff465ef3d377> >(std::_Tree_unchecked_const_iterator<std::_Tree_val<std::_Tree_simple_types<BuildingID> >,std::_Iterator_base0> _First={...}, std::_Tree_unchecked_const_iterator<std::_Tree_val<std::_Tree_simple_types<BuildingID> >,std::_Iterator_base0> _Last={...}, CGTownInstance::getTownLevel::__l3::<lambda_39453c3229c5a6efe51aff465ef3d377> _Pred={...}) Line 109 C++
> VCMI_lib.dll!CGTownInstance::getTownLevel() Line 2633 C++
     VCMI_lib.dll!SiegeStuffThatShouldBeMovedToHandlers::retreiveTurretDamageRange(const CGTownInstance * town=0x02505ba0, const CStack * turret=0x0246c770, double & outMinDmg=2.0000000000000000, double & outMaxDmg=4.0000000000000000) Line 35 C++
     VCMI_lib.dll!CBattleInfoCallback::calculateDmgRange(const BattleAttackInfo & info={...}) Line 824 C++
     VCMI_lib.dll!CBattleInfoCallback::calculateDmgRange(const CStack * attacker=0x0246c770, const CStack * defender=0x0246c1b0, int attackerCount=1, bool shooting=true, unsigned char charge='\0', bool lucky=false, bool unlucky=false, bool deathBlow=false, bool ballistaDoubleDmg=false) Line 1018 C++
     VCMI_lib.dll!CBattleInfoCallback::calculateDmgRange(const CStack * attacker=0x0246c770, const CStack * defender=0x0246c1b0, bool shooting=true, unsigned char charge='\0', bool lucky=false, bool unlucky=false, bool deathBlow=false, bool ballistaDoubleDmg=false) Line 799 C++
     VCMI_lib.dll!BattleInfo::calculateDmg(const CStack * attacker=0x0246c770, const CStack * defender=0x0246c1b0, const CGHeroInstance * attackerHero=0x0289a788, const CGHeroInstance * defendingHero=0x0246a418, bool shooting=true, unsigned char charge='\0', bool lucky=false, bool unlucky=false, bool deathBlow=false, bool ballistaDoubleDmg=false) Line 93 C++
     VCMI_server.exe!CGameHandler::applyBattleEffects(BattleAttack & bat={...}, const CStack * att=0x0246c770, const CStack * def=0x0246c1b0, int distance=0, bool secondary=false) Line 785 C++
     VCMI_server.exe!CGameHandler::prepareAttack(BattleAttack & bat={...}, const CStack * att=0x0246c770, const CStack * def=0x0246c1b0, int distance=0, int targetHex=2) Line 747 C++
     VCMI_server.exe!CGameHandler::makeBattleAction(BattleAction & ba={...}) Line 3473 C++
     VCMI_server.exe!CGameHandler::runBattle() Line 5964 C++
     VCMI_server.exe!boost::`anonymous namespace'::thread_start_function(void *) C++
(0003970)
Tow   
2013-09-08 16:30   
Same cause of crash as 0001444, builtBuildings contains buildings that are not in the buildings vector.
(0004000)
Tow   
2013-09-11 21:56   
Closing, please follow 0001444 for progress on this issue.