Statistics - Max - CoI crash / MS Windows freeze

Fixed
RealisticOptimist · 3 years ago

Issue description

Load Neet Engineer's "good for benchmark save.save"

Open Statistics - choose e.g. Fuel. - choose "Max" time. RAM consumption grows from 6.3GB to 21.2GB. CoI freezes for some seconds to a minute, then exits.

1st time it happened, my 32GB PC did not have enough RAM available (other SW running), Windows got unresponsive, had to hard reset my PC.

2023-03-03 14_28_44-Task Manager

Expected behavior

Only few datapoints per item can be shown anway (no more than the width of the statistics window display area adjusted by scaling). That's maybe like 4k data points per item on a 8k display. Unity has 22 items, each data point 8 bytes,

If the data gets processed before being shown, that's well below 1MB.
Even without preprocessing, 6.2M days, 22 items: 1GB.

Never ever, this may be allowed to eat GBs of RAM until CoI or even the PC crash!

Reproduction steps

See above.

Game version

v0.4.14b (157)

Attachments

Neet Engineer's
good for benchmark save.save

The logfiles:
23-03-03_14-24-29_2099.log
Player-prev.log

Regarding: C:/Users/Michael/AppData/Local/Temp/Mafi Games/Captain of Industry/Crashes
There is no folder C:/Users/Michael/AppData/Local/Temp/Mafi Games

2 attachments only for registered users
Captain Filip Captain Filip · 3 years ago

I have tried a late-game save file in Update 1 and couldn't find any measurable memory increase. However, we should still limit/sample the amount of data points we show at once as it's really hard to read.

Captain Filip Captain Filip · 2 years ago

We actually fixed this sometime after Update 1. Max stats are now limited and are grouped into even bigger aggregated blobs.

Closed as ✅ Fixed

8 Showing 1–3 of 3