MantisBT - VCMI
View Issue Details
0003022VCMIAI - Adventure Mappublic2018-11-06 18:292023-10-10 13:42
Povelitel 
Dydzio 
highcrashunable to reproduce
closedfixed 
0.99 
1.next 
0003022: Obj::HERO crash
May be related (or duplicate) 3021. Unreproducible bug from save, happened on AI turn. It is very often and painful problem(


if(obj->ID == Obj::HERO)

> VCAI.dll!MapObjectsEvaluator::getObjectValue(const CGObjectInstance * obj)Строка 61 C++
     VCAI.dll!VisitObjEngine::evaluate(Goals::VisitObj & goal)Строка 375 C++
     VCAI.dll!FuzzyHelper::setPriority(Goals::TSubgoal & g)Строка 167 C++
     VCAI.dll!VCAI::mainLoop()Строка 869 C++
     VCAI.dll!VCAI::makeTurn()Строка 836 C++




part from client log



2018-Nov-07 19:45:45.873741 TRACE network [244c] - Received CPack of type struct PlayerBlocked
2018-Nov-07 19:45:45.887250 TRACE network [244c] - Made first apply on cl: struct PlayerBlocked
2018-Nov-07 19:45:45.887750 TRACE network [244c] - Applied on gs: struct PlayerBlocked
2018-Nov-07 19:45:45.887750 TRACE ai [244c] - Entering void __cdecl VCAI::playerBlocked(int,bool): reason '1', start '1'.
2018-Nov-07 19:45:45.887750 TRACE ai [244c] - Leaving void __cdecl VCAI::playerBlocked(int,bool).
2018-Nov-07 19:45:45.887750 TRACE network [244c] - Made second apply on cl: struct PlayerBlocked
2018-Nov-07 19:45:45.888751 TRACE network [244c] - Received CPack of type struct TryMoveHero
2018-Nov-07 19:45:45.890752 TRACE network [244c] - Made first apply on cl: struct TryMoveHero
2018-Nov-07 19:45:45.891253 TRACE network [244c] - Applied on gs: struct TryMoveHero
2018-Nov-07 19:45:45.891253 TRACE ai [244c] - Entering void __cdecl VCAI::tileRevealed(const class std::unordered_set<class int3,struct ShashInt3,struct std::equal_to<class int3>,class std::allocator<class int3> > &).
2018-Nov-07 19:45:45.891253 DEBUG ai [244c] - AIPathfinder has been reseted.
2018-Nov-07 19:45:45.892254 TRACE ai [244c] - Leaving void __cdecl VCAI::tileRevealed(const class std::unordered_set<class int3,struct ShashInt3,struct std::equal_to<class int3>,class std::allocator<class int3> > &).
2018-Nov-07 19:45:45.892254 TRACE ai [244c] - Entering void __cdecl VCAI::heroMoved(const struct TryMoveHero &).
2018-Nov-07 19:45:45.892254 DEBUG ai [244c] - AIPathfinder has been reseted.
2018-Nov-07 19:45:45.893254 TRACE ai [244c] - Leaving void __cdecl VCAI::heroMoved(const struct TryMoveHero &).
2018-Nov-07 19:45:45.893254 TRACE ai [244c] - Entering void __cdecl VCAI::heroMoved(const struct TryMoveHero &).
2018-Nov-07 19:45:45.893254 DEBUG ai [244c] - AIPathfinder has been reseted.
2018-Nov-07 19:45:45.893754 TRACE ai [244c] - Leaving void __cdecl VCAI::heroMoved(const struct TryMoveHero &).
2018-Nov-07 19:45:45.893754 TRACE ai [244c] - Entering void __cdecl VCAI::heroMoved(const struct TryMoveHero &).
2018-Nov-07 19:45:45.894255 DEBUG ai [244c] - AIPathfinder has been reseted.
2018-Nov-07 19:45:45.894755 TRACE ai [244c] - Leaving void __cdecl VCAI::heroMoved(const struct TryMoveHero &).
2018-Nov-07 19:45:45.895256 TRACE network [244c] - Made second apply on cl: struct TryMoveHero
2018-Nov-07 19:45:45.895756 TRACE network [244c] - Received CPack of type struct HeroVisit
2018-Nov-07 19:45:45.895756 TRACE network [244c] - Made first apply on cl: struct HeroVisit
2018-Nov-07 19:45:45.896256 TRACE network [244c] - Applied on gs: struct HeroVisit
2018-Nov-07 19:45:45.896256 TRACE ai [244c] - Entering void __cdecl VCAI::heroVisit(const class CGHeroInstance *,const class CGObjectInstance *,bool): start '1'; obj 'Fountain of Youth'.
2018-Nov-07 19:45:45.896256 DEBUG ai [244c] - Completing goal: GET OBJ Fountain of Youth (Wystan)
2018-Nov-07 19:45:45.897257 TRACE ai [244c] - Entering ResourceManager.notifyGoalCompleted goal=GET OBJ Fountain of Youth (Wystan)
2018-Nov-07 19:45:45.897257 TRACE ai [244c] - ResourceManager contains goal BUILD STRUCTURE which requires resources [10, 0, 10, 20, 0, 0, 15000, 0]
2018-Nov-07 19:45:45.897757 TRACE ai [244c] - Leaving void __cdecl VCAI::heroVisit(const class CGHeroInstance *,const class CGObjectInstance *,bool).
2018-Nov-07 19:45:45.897757 TRACE network [244c] - Made second apply on cl: struct HeroVisit
2018-Nov-07 19:45:45.898258 TRACE network [244c] - Received CPack of type struct InfoWindow
2018-Nov-07 19:45:45.898258 TRACE network [244c] - Made first apply on cl: struct InfoWindow
2018-Nov-07 19:45:45.898258 TRACE network [244c] - Applied on gs: struct InfoWindow
2018-Nov-07 19:45:45.898758 TRACE ai [244c] - Entering void __cdecl VCAI::showInfoDialog(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const class std::vector<struct Component,class std::allocator<struct Component> > &,int): soundID '0'.
2018-Nov-07 19:45:45.898758 TRACE ai [244c] - Leaving void __cdecl VCAI::showInfoDialog(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const class std::vector<struct Component,class std::allocator<struct Component> > &,int).
2018-Nov-07 19:45:45.898758 TRACE network [244c] - Made second apply on cl: struct InfoWindow
2018-Nov-07 19:45:45.899759 TRACE network [244c] - Received CPack of type struct HeroVisit
2018-Nov-07 19:45:45.899759 TRACE network [244c] - Made first apply on cl: struct HeroVisit
2018-Nov-07 19:45:45.899759 TRACE network [244c] - Applied on gs: struct HeroVisit
2018-Nov-07 19:45:45.899759 TRACE ai [244c] - Entering void __cdecl VCAI::heroVisit(const class CGHeroInstance *,const class CGObjectInstance *,bool): start '0'; obj 'n/a'.
2018-Nov-07 19:45:45.899759 TRACE ai [244c] - Leaving void __cdecl VCAI::heroVisit(const class CGHeroInstance *,const class CGObjectInstance *,bool).
2018-Nov-07 19:45:45.900258 TRACE network [244c] - Made second apply on cl: struct HeroVisit
2018-Nov-07 19:45:45.900759 TRACE network [244c] - Received CPack of type struct PlayerBlocked
2018-Nov-07 19:45:45.900759 TRACE network [244c] - Made first apply on cl: struct PlayerBlocked
2018-Nov-07 19:45:45.900759 TRACE network [244c] - Applied on gs: struct PlayerBlocked
2018-Nov-07 19:45:45.900759 TRACE ai [244c] - Entering void __cdecl VCAI::playerBlocked(int,bool): reason '1', start '0'.
2018-Nov-07 19:45:45.901259 TRACE ai [244c] - Leaving void __cdecl VCAI::playerBlocked(int,bool).
2018-Nov-07 19:45:45.901259 TRACE network [244c] - Made second apply on cl: struct PlayerBlocked
2018-Nov-07 19:45:45.901760 TRACE network [244c] - Received CPack of type struct PackageApplied
2018-Nov-07 19:45:45.901760 TRACE network [244c] - Made first apply on cl: struct PackageApplied
2018-Nov-07 19:45:45.901760 TRACE network [244c] - Applied on gs: struct PackageApplied
2018-Nov-07 19:45:45.902260 TRACE ai [244c] - Entering void __cdecl VCAI::requestRealized(struct PackageApplied *).
2018-Nov-07 19:45:45.902260 TRACE ai [244c] - Leaving void __cdecl VCAI::requestRealized(struct PackageApplied *).
2018-Nov-07 19:45:45.902260 TRACE network [244c] - Made second apply on cl: struct PackageApplied
2018-Nov-07 19:45:45.902260 TRACE ai [2aa8] - Entering void __cdecl VCAI::performObjectInteraction(const class CGObjectInstance *,struct HeroPtr): Hero Wystan and object Fountain of Youth at (107 133 0).
2018-Nov-07 19:45:45.902260 DEBUG ai [2aa8] - Completing goal: GET OBJ Fountain of Youth (Wystan)
2018-Nov-07 19:45:45.903761 TRACE ai [2aa8] - Entering ResourceManager.notifyGoalCompleted goal=GET OBJ Fountain of Youth (Wystan)
2018-Nov-07 19:45:45.903761 TRACE ai [2aa8] - ResourceManager contains goal BUILD STRUCTURE which requires resources [10, 0, 10, 20, 0, 0, 15000, 0]
2018-Nov-07 19:45:45.903761 TRACE ai [2aa8] - Leaving void __cdecl VCAI::performObjectInteraction(const class CGObjectInstance *,struct HeroPtr).
2018-Nov-07 19:45:45.903761 DEBUG ai [2aa8] - Completing goal: VISIT TILE (107 133 0) (Wystan)
2018-Nov-07 19:45:45.904762 TRACE ai [2aa8] - Entering ResourceManager.notifyGoalCompleted goal=VISIT TILE (107 133 0) (Wystan)
2018-Nov-07 19:45:45.904762 TRACE ai [2aa8] - ResourceManager contains goal BUILD STRUCTURE which requires resources [10, 0, 10, 20, 0, 0, 15000, 0]
2018-Nov-07 19:45:45.904762 DEBUG ai [2aa8] - Completing goal: CLEAR WAY TO (107 133 0) (Wystan)
2018-Nov-07 19:45:45.906263 TRACE ai [2aa8] - Entering ResourceManager.notifyGoalCompleted goal=CLEAR WAY TO (107 133 0) (Wystan)
2018-Nov-07 19:45:45.906263 TRACE ai [2aa8] - ResourceManager contains goal BUILD STRUCTURE which requires resources [10, 0, 10, 20, 0, 0, 15000, 0]
2018-Nov-07 19:45:45.906263 DEBUG ai [2aa8] - Hero Wystan moved from (107 133 0) to (107 133 0). Returning 1.
2018-Nov-07 19:45:45.912267 DEBUG ai [2aa8] - Recalculate paths for Wystan
2018-Nov-07 19:45:45.913268 DEBUG ai [2aa8] - Virtual boat added at (118 115 0)
2018-Nov-07 19:45:45.920272 TRACE ai [2aa8] - Link src node (114 131 0) to destination node (115 131 0) while bypassing visitable obj
2018-Nov-07 19:45:45.920772 TRACE ai [2aa8] - Trying to find a way for Wystan to visit tile (109 139 0)
2018-Nov-07 19:45:45.920772 TRACE ai [2aa8] - Pat


server


2018-Nov-07 19:45:45.874241 TRACE network [2b88] - Sending to all clients: struct HeroVisit
2018-Nov-07 19:45:45.874241 TRACE network [2b88] - Sending a pack of type struct HeroVisit
2018-Nov-07 19:45:45.874241 TRACE network [2b88] - Applied on gs: struct HeroVisit
2018-Nov-07 19:45:45.874241 TRACE network [2b88] - Sending to all clients: struct PlayerBlocked
2018-Nov-07 19:45:45.874742 TRACE network [2b88] - Sending a pack of type struct PlayerBlocked
2018-Nov-07 19:45:45.874742 TRACE network [2b88] - Applied on gs: struct PlayerBlocked
2018-Nov-07 19:45:45.874742 TRACE global [2b88] - Destructed the query with id 3066
2018-Nov-07 19:45:45.874742 TRACE global [2b88] - Hero Wystan ends movement
2018-Nov-07 19:45:45.874742 TRACE global [2b88] - Destructed the query with id 3065
2018-Nov-07 19:45:45.874742 TRACE global [2b88] - Leaving bool __cdecl CGameHandler::moveHero::<lambda_92133043bea238cfd8e24efa7f94abd4>::operator ()(enum TryMoveHero::EResult,enum CGameHandler::EGuardLook,enum CGameHandler::EVisitDest,enum CGameHandler::ELEaveTile) const.
2018-Nov-07 19:45:45.874742 TRACE global [2b88] - Message struct MoveHero successfully applied!
2018-Nov-07 19:45:45.874742 TRACE network [2b88] - Sending a pack of type struct PackageApplied
2018-Nov-07 19:45:45.933281 TRACE network [2b88] - Received CPack of type struct EndTurn
2018-Nov-07 19:45:45.933281 TRACE global [2b88] - Message struct EndTurn successfully applied!
2018-Nov-07 19:45:45.933281 TRACE network [2b88] - Sending a pack of type struct PackageApplied
2018-Nov-07 19:45:45.933281 TRACE network [1e94] - Sending to all clients: struct YourTurn
2018-Nov-07 19:
VCMI 0.99 5693e724422291ca7637ac41a4f623ff196707e3
No tags attached.
duplicate of 0003021closed Dydzio Often Crash on this map 
Issue History
2018-11-06 18:29PovelitelNew Issue
2018-11-06 18:29PovelitelStatusnew => assigned
2018-11-06 18:29PovelitelAssigned To => Dydzio
2018-11-07 16:47PovelitelDescription Updatedbug_revision_view_page.php?rev_id=3539#r3539
2018-11-07 16:47PovelitelDescription Updatedbug_revision_view_page.php?rev_id=3540#r3540
2018-11-07 16:48PovelitelAdditional Information Updatedbug_revision_view_page.php?rev_id=3542#r3542
2018-12-27 11:55PovelitelPrioritynormal => high
2018-12-27 11:55PovelitelSummaryRandom crash => Obj::HERO crash
2018-12-27 11:55PovelitelDescription Updatedbug_revision_view_page.php?rev_id=3545#r3545
2019-02-06 17:28DydzioNote Added: 0007729
2019-02-06 17:28DydzioStatusassigned => resolved
2019-02-06 17:28DydzioFixed in Version => 1.next
2019-02-06 17:28DydzioResolutionopen => fixed
2019-02-06 17:33DydzioRelationship addedduplicate of 0003021
2023-10-10 13:42PovelitelNote Added: 0008740
2023-10-10 13:42PovelitelStatusresolved => closed

Notes
(0007729)
Dydzio   
2019-02-06 17:28   
Greatly reduced by https://github.com/vcmi/vcmi/pull/530 [^] and future occurrences of this problem from different sources will be mitigated by https://github.com/vcmi/vcmi/commit/f06c8a872592bddfbe3fd5116979af0679f27bd3 [^]
(0008740)
Povelitel   
2023-10-10 13:42   
no longer relevant