MantisBT - VCMI
View Issue Details
0002097VCMIAI - Adventure Mappublic2015-02-18 21:382023-10-10 13:42
Povelitel 
Nullkiller 
normalcrashalways
closedfixed 
x64Windows7
0.97b 
1.next 
0002097: Crash during AI turn (exchange?)
My last save "FFA" still crash :(


auto currentExit = getObj(currentPos, true)->id;



> VCAI.dll!VCAI::moveHeroToTile::__l7::<лямбда>()Строка 1991 C++ Символы загружены.
     VCAI.dll!VCAI::moveHeroToTile(int3 dst, HeroPtr h)Строка 2002 C++ Символы загружены.
     VCAI.dll!VCAI::goVisitObj(const CGObjectInstance * obj, HeroPtr h)Строка 902 C++ Символы загружены.
     VCAI.dll!VCAI::wander(HeroPtr h)Строка 1624 C++ Символы загружены.
     VCAI.dll!VCAI::performTypicalActions()Строка 2571 C++ Символы загружены.
     VCAI.dll!VCAI::makeTurnInternal()Строка 875 C++ Символы загружены.
     VCAI.dll!VCAI::makeTurn()Строка 785 C++ Символы загружены.
Поддержка сейвов между 5м и 8м февраля ff2d01a.exe и d64a389.exe сломана
No tags attached.
rar Saves.rar (1,019,829) 2015-02-18 21:38
https://bugs.vcmi.eu/file_download.php?file_id=2120&type=bug
txt VCMI_Client_log.txt (153,629) 2015-02-18 21:38
https://bugs.vcmi.eu/file_download.php?file_id=2121&type=bug
txt VCMI_Server_log.txt (100,253) 2015-02-18 21:38
https://bugs.vcmi.eu/file_download.php?file_id=2122&type=bug
? Free for All.h3m (47,217) 2015-02-22 11:27
https://bugs.vcmi.eu/file_download.php?file_id=2130&type=bug
rar 137 in battle ogr (0.98h).rar (931,944) 2016-04-07 15:22
https://bugs.vcmi.eu/file_download.php?file_id=2494&type=bug
7z FFA.7z (463,770) 2016-10-09 10:08
https://bugs.vcmi.eu/file_download.php?file_id=2591&type=bug
Issue History
2015-02-18 21:38PovelitelNew Issue
2015-02-18 21:38PovelitelStatusnew => assigned
2015-02-18 21:38PovelitelAssigned To => Warmonger
2015-02-18 21:38PovelitelFile Added: Saves.rar
2015-02-18 21:38PovelitelFile Added: VCMI_Client_log.txt
2015-02-18 21:38PovelitelFile Added: VCMI_Server_log.txt
2015-02-18 21:39PovelitelDescription Updatedbug_revision_view_page.php?rev_id=2843#r2843
2015-02-22 09:20WarmongerNote Added: 0005564
2015-02-22 11:27PovelitelFile Added: Free for All.h3m
2015-02-22 11:28PovelitelNote Added: 0005568
2015-02-22 17:48WarmongerNote Added: 0005572
2015-02-22 18:15SXXNote Added: 0005574
2015-02-22 18:16SXXNote View State: 0005574: public
2015-02-22 18:23PovelitelNote Added: 0005575
2016-04-07 15:22PovelitelFile Added: 137 in battle ogr (0.98h).rar
2016-08-16 09:58SXXAssigned ToWarmonger => SXX
2016-08-16 09:59SXXNote Added: 0006564
2016-09-12 12:20SXXNote Added: 0006657
2016-09-12 12:20SXXStatusassigned => resolved
2016-09-12 12:20SXXFixed in Version => 0.99
2016-09-12 12:20SXXResolutionopen => unable to reproduce
2016-10-09 10:08PovelitelFile Added: FFA.7z
2016-10-09 10:10PovelitelNote Added: 0006815
2016-10-09 10:10PovelitelStatusresolved => feedback
2016-10-09 10:10PovelitelResolutionunable to reproduce => reopened
2016-10-09 10:11PovelitelOS => Windows
2016-10-09 10:11PovelitelOS Version => 7
2016-10-09 10:11PovelitelPlatform => x64
2016-10-09 10:12PovelitelNote Edited: 0006815bug_revision_view_page.php?bugnote_id=6815#r3264
2016-11-10 19:04PovelitelFixed in Version0.99 =>
2016-11-10 19:04PovelitelDescription Updatedbug_revision_view_page.php?rev_id=3301#r3301
2017-07-16 09:26PovelitelNote Added: 0007138
2017-07-16 09:26PovelitelStatusfeedback => assigned
2018-02-10 09:08PovelitelNote Added: 0007405
2018-02-24 16:39PovelitelAdditional Information Updatedbug_revision_view_page.php?rev_id=3441#r3441
2018-02-28 17:35PovelitelDescription Updatedbug_revision_view_page.php?rev_id=3444#r3444
2018-08-14 12:27PovelitelNote Added: 0007629
2018-11-02 10:16PovelitelNote Added: 0007662
2018-11-02 10:16PovelitelStatusassigned => resolved
2018-11-02 10:16PovelitelFixed in Version => 1.next
2018-11-02 10:16PovelitelResolutionreopened => fixed
2018-11-02 10:16PovelitelAssigned ToSXX => Nullkiller
2023-10-10 13:42PovelitelNote Added: 0008748
2023-10-10 13:42PovelitelStatusresolved => closed

Notes
(0005564)
Warmonger   
2015-02-22 09:20   
This one is tricky. Debugger shows that Sir Mullich has Griffin in his army, but GUI shows he has not. Probably bug occured earlier.

Crash happens at attempt to detach non-existent stack from army.
(0005568)
Povelitel   
2015-02-22 11:28   
I add test map. I edit her. 90% repeatability. if you did not work in the first turn, close the game and start again this map
(0005572)
Warmonger   
2015-02-22 17:48   
This map has some weird fonts in it and can be invalid altogether. I'm getting odd messages all the time.
(0005574)
SXX   
2015-02-22 18:15   
Weird fonts is likely russian language. As far as I get this is translation of standard Free for All map from RoE.
(0005575)
Povelitel   
2015-02-22 18:23   
Warmonger, yes, map have russian font.
(But I do not think that the problem is in them ... others maps play are normally)
(0006564)
SXX   
2016-08-16 09:59   
Not reproducible anymore.
(0006657)
SXX   
2016-09-12 12:20   
No longer reproducible for sure.

Passed long 58 months game on that map without any issue.
(0006815)
Povelitel   
2016-10-09 10:10   
(edited on: 2016-10-09 10:12)
I have reproducibility on 3 week
(started pink)

(0007138)
Povelitel   
2017-07-16 09:26   
"FFA" saves still reproducibility in VCMI-branch-develop-21c0c95
(0007405)
Povelitel   
2018-02-10 09:08   
I tried to load "FFA" saves in last develop but game crashed
(0007629)
Povelitel   
2018-08-14 12:27   
now it looks like this:

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 &)Строка 1468 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)Строка 1471 C++
     VCAI.dll!VCAI::performTypicalActions()Строка 2495 C++
     VCAI.dll!VCAI::makeTurn()Строка 804 C++
(0007662)
Povelitel   
2018-11-02 10:16   
Don't reproducibility now
(0008748)
Povelitel   
2023-10-10 13:42   
no longer relevant