Crash with exception 'std::bad_alloc'

VCMI 1.0.0 from GitHub releases, on Windows 11 22623.1037 x64.
The console output is similar to:

Player 6 (teal) starting turn, day 76
System message: Cheater!!!
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
terminate called recursively

Happens randomly when I end my turn. I am sure that there’s enough memory on my computer - about 11GB left. Sometimes it generates crash dumps but they only contain null-pointer access exceptions, probably caused by the failure of memory allocation. The strange thing is that when I change my mod list (enabling or disabling some mods) it can run for several or even a dozen rounds without crashing. Here’s a list of the mods I installed:

  • Autumn Rampart (version 0.92)
  • VCMI essential files (version 0.99)
  • VCMI extras (version 2.3, all enabled)
  • In The Wake of Gods (version 9.0.4)
    • No pre-battle music
    • Stack Artifacts
    • WoG starting screen
    • Stack Experience
    • War Machines on map (disabled)
    • Commanders
    • Animated Objects (disabled)
    • Battle Decorations
    • Animated Trees
  • Creature Modifier (version 0.0.0, disabled)
  • Additional Maps (version 0.0.0)
I am not sure if the crash is caused by mods. 'Creature Modifier' and 'Additional Maps' are my own mods. The former one, which has been disabled, only contains some modified creature attributes. The latter one only contains some maps I downloaded. I don't think they are the point.
Please inform me if more information is needed.

Random bugs are hard to reproduce and hard to fix. But there was ‘end-turn’ bug caused by infinite music loops. Bug was located and repaired. If you don’t want to wait for VCMI 1.1 you can download latest updates from here: VCMI Project Builds

Thanks. I’ll try the latest nightly build.

Rolled back. The new build does not recognize my records. Will there be a convertor in newer builds (or the 1.1.0 release)?

I don’t know. It’s question for devs

no, there won’t be a convertor

Okay. Thanks anyway.