MantisBT - VCMI
View Issue Details
0002994VCMIAI - Adventure Mappublic2018-08-08 09:062022-03-22 19:42
greg3ll 
Dydzio 
normalcrashalways
resolvedfixed 
x64Windows10
0.99 
1.next 
0002994: Game crashes on AI turn
Game crashes on AI turn.
1. Load attached save
2. click end turn
3. game crash on pink player turn (for me every time).
I'm using ver 46b4dcf (06-Aug-2018 04:15).
Also tryed on ver 2afe36e (05-Aug-2018 05:22) - the same result.
MODs: VCMI essential files; i added new screen resolution 1920x1200 (modified from 1920x1080; feel free to publish it if you wish), but it shouldn't gave a problem (files attached).
No tags attached.
7z Saves.7z (862,532) 2018-08-08 09:06
https://bugs.vcmi.eu/file_download.php?file_id=2936&type=bug
7z logs.7z (138,049) 2018-08-08 09:07
https://bugs.vcmi.eu/file_download.php?file_id=2937&type=bug
7z crashinfo.7z (670,963) 2018-08-08 09:07
https://bugs.vcmi.eu/file_download.php?file_id=2938&type=bug
7z res 1920x1200.7z (73,468) 2018-08-08 09:09
https://bugs.vcmi.eu/file_download.php?file_id=2939&type=bug
Issue History
2018-08-08 09:06greg3llNew Issue
2018-08-08 09:06greg3llFile Added: Saves.7z
2018-08-08 09:07greg3llFile Added: logs.7z
2018-08-08 09:07greg3llFile Added: crashinfo.7z
2018-08-08 09:09greg3llFile Added: res 1920x1200.7z
2018-08-08 09:18PovelitelNote Added: 0007623
2018-08-08 10:47DydzioAssigned To => Dydzio
2018-08-08 10:47DydzioStatusnew => assigned
2018-08-08 10:48DydzioNote Added: 0007624
2022-03-18 17:20PovelitelNote Added: 0008182
2022-03-22 19:42PovelitelStatusassigned => resolved
2022-03-22 19:42PovelitelFixed in Version => 1.next
2022-03-22 19:42PovelitelResolutionopen => fixed

Notes
(0007623)
Povelitel   
2018-08-08 09:18   
Can confirm it

if(dest.roadType != ERoadType::NO_ROAD && from.roadType != ERoadType::NO_ROAD)

> VCMI_lib.dll!CGHeroInstance::getTileCost(const TerrainTile & dest, const TerrainTile & from, const TurnInfo * ti)Строка 69 C++
     VCMI_lib.dll!CPathfinderHelper::getMovementCost(const CGHeroInstance * h, const int3 & src, const int3 & dst, const TerrainTile * ct, const TerrainTile * dt, const int remainingMovePoints, const TurnInfo * ti, const bool checkLast)Строка 1057 C++
     VCMI_lib.dll!CPathfinderHelper::getMovementCost(const CGHeroInstance * h, const int3 & dst)Строка 1121 C++
     VCAI.dll!FuzzyHelper::calculateTurnDistanceInputValue(const CGHeroInstance * h, int3 tile)Строка 208 C++
     VCAI.dll!FuzzyHelper::getWanderTargetObjectValue(const CGHeroInstance & h, const ObjectIdRef & obj)Строка 294 C++
     [Внедренный фрейм] VCAI.dll!VCAI::wander::__l56::<lambda_9ace2e48f572fffb95a4c2b2decba6fd>::operator()(const ObjectIdRef &)Строка 1466 C++
     [Внедренный фрейм] VCAI.dll!std::_Ref_fn<<lambda_9ace2e48f572fffb95a4c2b2decba6fd> >::operator()(ObjectIdRef &)Строка 523 C++
     [Внедренный фрейм] VCAI.dll!std::_Max_element_unchecked(ObjectIdRef * _First, ObjectIdRef * _Pred, std::_Ref_fn<<lambda_9ace2e48f572fffb95a4c2b2decba6fd> >)Строка 4208 C++
     [Внедренный фрейм] VCAI.dll!std::max_element(std::_Vector_iterator<std::_Vector_val<std::_Simple_types<ObjectIdRef> > >)Строка 4223 C++
     [Внедренный фрейм] VCAI.dll!boost::range::max_element(std::vector<ObjectIdRef,std::allocator<ObjectIdRef> > &)Строка 53 C++
     VCAI.dll!VCAI::wander(HeroPtr h)Строка 1469 C++
     VCAI.dll!VCAI::performTypicalActions()Строка 2493 C++
     VCAI.dll!VCAI::makeTurn()Строка 802 C++
(0007624)
Dydzio   
2018-08-08 10:48   
That comes from my new code, it will be changed soon, but will check the problem anyway so I can determine what did I miss.
(0008182)
Povelitel   
2022-03-18 17:20   
don't reproduce in last develope