MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003172VCMIOtherpublic2021-02-14 11:252022-03-16 13:20
Reporterdeniszharkov 
Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOS XOSOS Version10.14.6
Product Version0.99 
Target VersionFixed in Version1.next 
Summary0003172: Crash when entering the battle
DescriptionI'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
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0008002)
Nullkiller (developer)
2021-02-14 11:43

Does it crash if you fight against computer player hero on a small temp map?
(0008003)
deniszharkov (reporter)
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 (developer)
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 (developer)
2021-02-14 11:49

If both AI crash it is either mods or something bad with your build
(0008006)
Nullkiller (developer)
2021-02-14 11:50

Some mods are incompatible with each other. Do you have any mods installed?
(0008007)
deniszharkov (reporter)
2021-02-14 11:57

AI change didn't help
I have "Mods" dir empty
Maybe my HOMM3 installation is old/invalid?
(0008008)
Nullkiller (developer)
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 (reporter)
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 (reporter)
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 (developer)
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 (reporter)
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 (reporter)
2021-02-15 18:06

Same here: https://bugs.vcmi.eu/view.php?id=3148 [^]
(0008128)
Povelitel (updater)
2022-03-16 13:19

Fixed by vlad309523

- Issue History
Date Modified Username Field Change
2021-02-14 11:25 deniszharkov New Issue
2021-02-14 11:43 Nullkiller Note Added: 0008002
2021-02-14 11:46 deniszharkov Note Added: 0008003
2021-02-14 11:48 Nullkiller Note Added: 0008004
2021-02-14 11:49 Nullkiller Note Added: 0008005
2021-02-14 11:50 Nullkiller Note Added: 0008006
2021-02-14 11:57 deniszharkov Note Added: 0008007
2021-02-14 12:02 Nullkiller Note Added: 0008008
2021-02-14 12:05 deniszharkov Note Added: 0008009
2021-02-14 12:08 deniszharkov Note Added: 0008010
2021-02-14 12:44 Nullkiller Note Added: 0008011
2021-02-14 12:45 Nullkiller Note Edited: 0008011 View Revisions
2021-02-14 12:50 deniszharkov Note Added: 0008012
2021-02-15 18:06 vlad309523 Note Added: 0008015
2022-03-16 13:19 Povelitel Note Added: 0008128
2022-03-16 13:20 Povelitel Status new => resolved
2022-03-16 13:20 Povelitel Fixed in Version => 1.next
2022-03-16 13:20 Povelitel Resolution open => fixed
2022-03-16 13:20 Povelitel Assigned To => Povelitel
2022-03-16 13:20 Povelitel Assigned To Povelitel =>

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean