MantisBT - VCMI
View Issue Details
0003172VCMIOtherpublic2021-02-14 11:252022-03-16 13:20
deniszharkov 
 
normalcrashalways
resolvedfixed 
OS X10.14.6
0.99 
1.next 
0003172: Crash when entering the battle
I've installed a fresh version and just copied Data/Mp3/Maps dirs from common HOMM3 GOG windows installation with no mods

Everything just works fine before entering the battle or moving a unit
Then program fails with the following trace
Thread 13 Crashed:
0 libvcmi.dylib 0x000000011ba55219 CCreature::isItNativeTerrain(ETerrainType::EETerrainType) const + 57
1 libvcmi.dylib 0x000000011b59242b CBattleInfoEssentials::battleHasNativeStack(unsigned char) const + 203
2 libvcmi.dylib 0x000000011b591fc2 CBattleInfoEssentials::battleIsObstacleVisibleForSide(CObstacleInstance const&, BattlePerspective::BattlePerspective) const + 66
3 libvcmi.dylib 0x000000011b591a46 CBattleInfoEssentials::battleGetAllObstacles(boost::optional<BattlePerspective::BattlePerspective>) const + 502
4 libvcmi.dylib 0x000000011b57f4cb CBattleInfoCallback::getAccesibility() const + 1867
5 libvcmi.dylib 0x000000011b57fc16 CBattleInfoCallback::getReachability(battle::Unit const*) const + 182
6 libStupidAI.dylib 0x000000011963f55c CStupidAI::activeStack(CStack const*) + 220
7 vcmiclient 0x000000010b233c8a CClient::waitForMoveAndSend(PlayerColor) + 442
8 vcmiclient 0x000000010b2ab5dc boost::detail::thread_data<std::__1::__bind<void (CClient::*)(PlayerColor), CClient*, PlayerColor&> >::run() + 60
9 libboost_thread-mt.dylib 0x000000010e2a3878 boost::(anonymous namespace)::thread_proxy(void*) + 136
10 libsystem_pthread.dylib 0x00007fff72e372eb _pthread_body + 126
11 libsystem_pthread.dylib 0x00007fff72e3a249 _pthread_start + 66
12 libsystem_pthread.dylib 0x00007fff72e3640d thread_start + 13
No tags attached.
Issue History
2021-02-14 11:25deniszharkovNew Issue
2021-02-14 11:43NullkillerNote Added: 0008002
2021-02-14 11:46deniszharkovNote Added: 0008003
2021-02-14 11:48NullkillerNote Added: 0008004
2021-02-14 11:49NullkillerNote Added: 0008005
2021-02-14 11:50NullkillerNote Added: 0008006
2021-02-14 11:57deniszharkovNote Added: 0008007
2021-02-14 12:02NullkillerNote Added: 0008008
2021-02-14 12:05deniszharkovNote Added: 0008009
2021-02-14 12:08deniszharkovNote Added: 0008010
2021-02-14 12:44NullkillerNote Added: 0008011
2021-02-14 12:45NullkillerNote Edited: 0008011bug_revision_view_page.php?bugnote_id=8011#r3628
2021-02-14 12:50deniszharkovNote Added: 0008012
2021-02-15 18:06vlad309523Note Added: 0008015
2022-03-16 13:19PovelitelNote Added: 0008128
2022-03-16 13:20PovelitelStatusnew => resolved
2022-03-16 13:20PovelitelFixed in Version => 1.next
2022-03-16 13:20PovelitelResolutionopen => fixed
2022-03-16 13:20PovelitelAssigned To => Povelitel
2022-03-16 13:20PovelitelAssigned ToPovelitel =>

Notes
(0008002)
Nullkiller   
2021-02-14 11:43   
Does it crash if you fight against computer player hero on a small temp map?
(0008003)
deniszharkov   
2021-02-14 11:46   
Yes, it's a computer hero on a map
Didn't get what you mean for "temp", sorry
(0008004)
Nullkiller   
2021-02-14 11:48   
libStupidAI.dylib usually is used for neutral creatures. And for computer heroes it should be libBattleAI. But this is optional so. Configurable in vcmi_launcher or settings.json manually
(0008005)
Nullkiller   
2021-02-14 11:49   
If both AI crash it is either mods or something bad with your build
(0008006)
Nullkiller   
2021-02-14 11:50   
Some mods are incompatible with each other. Do you have any mods installed?
(0008007)
deniszharkov   
2021-02-14 11:57   
AI change didn't help
I have "Mods" dir empty
Maybe my HOMM3 installation is old/invalid?
(0008008)
Nullkiller   
2021-02-14 12:02   
If map loads correctly and you can walk without any issues it should be ok. The build itself might be wrong. I do not know if we have some daily builds available for MacOS and external sources might be outdated.
(0008009)
deniszharkov   
2021-02-14 12:05   
https://bugs.vcmi.eu/view.php?id=3155 [^] looks related
I've just built a dmg from the master branch and having the same issue
(0008010)
deniszharkov   
2021-02-14 12:08   
After my steps are finished, when the opposite heroes start moving it fails with
0 libvcmi.dylib 0x000000011dcbfd9d SpellID::toSpell() const + 29
1 libVCAI.dylib 0x000000011d4a0abc AIPathfinding::AILayerTransitionRule::setup() + 1052
2 libVCAI.dylib 0x000000011d4a0610 AIPathfinding::AILayerTransitionRule::AILayerTransitionRule(CPlayerSpecificInfoCallback*, VCAI*, std::__1::shared_ptr<AINodeStorage>) + 112
3 libVCAI.dylib 0x000000011d482306 std::__1::shared_ptr<AIPathfinding::AILayerTransitionRule> std::__1::shared_ptr<AIPathfinding::AILayerTransitionRule>::make_shared<CPlayerSpecificInfoCallback*&, VCAI*&, std::__1::shared_ptr<AINodeStorage>&>(CPlayerSpecificInfoCallback*&&&, VCAI*&&&, std::__1::shared_ptr<AINodeStorage>&&&) + 118
4 libVCAI.dylib 0x000000011d48093e AIPathfinding::makeRuleset(CPlayerSpecificInfoCallback*, VCAI*, std::__1::shared_ptr<AINodeStorage>) + 78
5 libVCAI.dylib 0x000000011d48106f AIPathfinding::AIPathfinderConfig::AIPathfinderConfig(CPlayerSpecificInfoCallback*, VCAI*, std::__1::shared_ptr<AINodeStorage>) + 95
6 libVCAI.dylib 0x000000011d485a46 std::__1::shared_ptr<AIPathfinding::AIPathfinderConfig> std::__1::shared_ptr<AIPathfinding::AIPathfinderConfig>::make_shared<CPlayerSpecificInfoCallback*&, VCAI*&, std::__1::shared_ptr<AINodeStorage>&>(CPlayerSpecificInfoCallback*&&&, VCAI*&&&, std::__1::shared_ptr<AINodeStorage>&&&) + 118
7 libVCAI.dylib 0x000000011d484d72 AIPathfinder::updatePaths(std::__1::vector<HeroPtr, std::__1::allocator<HeroPtr> >) + 866
8 libVCAI.dylib 0x000000011d497730 PathfindingManager::updatePaths(std::__1::vector<HeroPtr, std::__1::allocator<HeroPtr> >) + 176
9 libVCAI.dylib 0x000000011d4ac769 AIhelper::updatePaths(std::__1::vector<HeroPtr, std::__1::allocator<HeroPtr> >) + 41
10 libVCAI.dylib 0x000000011d5648e4 VCAI::mainLoop() + 2692
11 libVCAI.dylib 0x000000011d55e8fa VCAI::makeTurn() + 1018
12 libboost_thread-mt.dylib 0x000000011000f878 boost::(anonymous namespace)::thread_proxy(void*) + 136
13 libsystem_pthread.dylib 0x00007fff72e372eb _pthread_body + 126
14 libsystem_pthread.dylib 0x00007fff72e3a249 _pthread_start + 66
15 libsystem_pthread.dylib 0x00007fff72e3640d thread_start + 13
(0008011)
Nullkiller   
2021-02-14 12:44   
(edited on: 2021-02-14 12:45)
Is it debug or release? I had a lot of issues with debug/release mix on windows. When the lib is compiled in release but referenced from debug and so on.

(0008012)
deniszharkov   
2021-02-14 12:50   
I just used default settings
And also builds from official page don't work with the same failures
(0008015)
vlad309523   
2021-02-15 18:06   
Same here: https://bugs.vcmi.eu/view.php?id=3148 [^]
(0008128)
Povelitel   
2022-03-16 13:19   
Fixed by vlad309523