Crash, game freezes, memory overflow
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The attached save game crashes reproducible when attacking the port in the north of current view.
1. Load the save game
2. Immediately Scroll to north and attack the port with three soldiers
Result: After a few seconds the game stands still and after some minutes the crash appears. The last console output is:
5: expedition max duration = 9506 (158 minutes), map area root: 232
2: last command for ship Leonardo at 13x156 was 36865 seconds ago, something wrong here?...
2: Leonardo at 13x156: explore uphold, visited first time
2: Leonardo: new island exploration - direction: 2
Cmd_EnemyFlagAc
Fatal exception: std::bad_alloc
FATAL ERROR - game crashed. Attempting emergency save.
Game: Writing Preload Data ... Speicherzugriff
Sometimes the crash happens without attacking the port, so i am unsure the problem is the attack...
The attached file is manually zipped by me, because i usually unset the "compress Data" option.
Related branches
- GunChleoc: Approve
- TiborB: Approve
-
Diff: 49 lines (+9/-10)1 file modifiedsrc/ai/defaultai.cc (+9/-10)
description: | updated |
tags: | added: crash |
Changed in widelands: | |
milestone: | none → build20-rc1 |
Changed in widelands: | |
status: | New → Triaged |
assignee: | nobody → GunChleoc (gunchleoc) |
Changed in widelands: | |
status: | Triaged → In Progress |
Changed in widelands: | |
status: | In Progress → Fix Committed |
assignee: | GunChleoc (gunchleoc) → nobody |
Additional observation: Memory usage increases while the game stands still until maximum free memory is reached. Then the crash happens.
This happens also if you reduce the amount of soldiers in one of the towers. So attacking the port isn't needed at all.