Page MenuHomeFeedback Tracker

Game runs out of memory and crashes when zooming out or panning the map in a very large terrain
Feedback, NormalPublic

Description

When playing in the large terrain and panning or zooming out in the map the game starts stuttering and eventually crashes if the map is not quickly closed. Crash report indicates its a memory issue possibly due to the large size of the map image.

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Category
Game Crash
Steps To Reproduce
  1. Open terrain in editor 2. Open map 3. Zoom out.
Additional Information

Troubleshooting report
The terrain

Event Timeline

dedmen added a subscriber: dedmen.Aug 5 2024, 3:28 PM

"Out of memory (requested -788108 KB).\n footprint 50066368 KB.\n pages 131072 KB.\n"

Ah yes. The good old -788MB of memory. A true classic.

In reality it tried to allocate 12gb of memory in one chunk, that was simply too much.

This happened while trying to draw the height-lines on the map screen, under the sea.

Wow that terrain throws alot of asserts trying to load it D:


Yeah you can see the height lines are F'ed
There are just too darn many. And over the water its just too too too many.
You surely can fix that in your heightmap somehow. Other terrains aren't that bad.

dedmen changed the task status from New to Feedback.Aug 5 2024, 5:56 PM

Especially your northern edge is totally messed up.
Some of the terrain heights up there are NaN.

I fixed all the messes, but please don't publish such a messed up terrain :D
The countlines are now reduced to 10% on any terrain bigger than 128km², and map rendering will completely skip any cell's with NaN's in the heightmap.
Next dev-branch or profiling branch sometime this week.