ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.58k stars 360 forks source link

Crash on "next turn" (in AI::HeroesAction) #8830

Closed Stiivi closed 2 weeks ago

Stiivi commented 2 weeks ago

Preliminary checks

Platform

macOS

Describe the bug

The program crashes on "next turn". Commit: 3a85f74e4f11c2efd2abb7117e8b53964f4f5c88

Save file

AUTOSAVE.sav.zip

Additional info

Stack:

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib                 0x18b882a60 __pthread_kill + 8
1   libsystem_pthread.dylib                0x18b8bac20 pthread_kill + 288
2   libsystem_c.dylib                      0x18b7c7a30 abort + 180
3   libsystem_c.dylib                      0x18b7c6d20 __assert_rtn + 284
4   fheroes2                               0x102fc95b4 AI::HeroesAction(Heroes&, int) + 3932
5   fheroes2                               0x1031a0000 Heroes::Action(int) + 112
6   fheroes2                               0x1031c2414 Heroes::MoveStep(bool) + 600
7   fheroes2                               0x1031c31a8 Heroes::Move(bool) + 96
8   fheroes2                               0x102fcc2f4 AI::HeroesMove(Heroes&) + 872
9   fheroes2                               0x1032c072c AI::Normal::HeroesTurn(VecHeroes&, unsigned int, unsigned int) + 1424
10  fheroes2                               0x1032c4ba8 AI::Normal::KingdomTurn(Kingdom&) + 3124
11  fheroes2                               0x103127f38 Interface::AdventureMap::StartGame() + 1424
12  fheroes2                               0x103127974 Game::StartGame() + 84
13  fheroes2                               0x1031195b0 Game::mainGameLoop(bool, bool) + 252
14  fheroes2                               0x1030fc278 main + 3300
15  dyld                                   0x18b5320e0 start + 2360

Full crash report is attached.

crash.txt