Skip to content
This repository was archived by the owner on Jun 23, 2024. It is now read-only.
This repository was archived by the owner on Jun 23, 2024. It is now read-only.

Darkage mapgen triggers Lua OOM #8

@Fixer-007

Description

@Fixer-007

I have a subgame that I profiled for some troubles, it has darkage mod, lua mem usage at 20-90 mb (print(collectgarbage("count")/1024), it lets me generate blocks for some time and then suddenly stops at "local data = vm:get_data()" step with "Lua: OOM error from mod 'darkage' in callback environment_OnGenerated(): not enough memory". Removing darkage makes server stable, mem use below 40mb at most without oom.

No OOMs on clean game though, I'm still investigating the issue :/

On a side note I noticed pretty damn suspiciously high usage of cpu by this mod even in passive mode:

 instrumentation                                         |    min µs |    max µs |    avg µs | min % | max % | avg %
-------------------------------------------------------- | --------- | --------- | --------- | ----- | ----- | ------
darkage:                                                |         0 |     54099 |        29 |   0.0 |  99.9 |   0.1
  - on_generated[1] ...................................  |     43797 |     54099 |     48948 |  99.6 |  99.9 |  99.7

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions