Content Editor crashes with AccessViolationException in terrain init

  • Build Number: 26146704 (Content Editor version string: [EssenceEditor][cardinal][pawcreek][rtm][4184287]) — the build from the 2026-10-29 update (Vikings DLC patch)

  • Platform: Steam

  • Operating System: Windows 11

Issue:

Since the Oct 29 patch, the Content Editor (EssenceEditor.exe) crashes with a native AccessViolationException inside terrain initialization whenever it touches terrain save/init — this happens on Save, on opening an existing scenario, on Build Mod, and even on creating a brand-new blank scenario via the New Scenario wizard with no custom content at all. All of these hit the identical crash in the same function:

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at Dirt.FillSimTerrainInitializer_CSO(Terrain*, TerrainInitialize*)
   at Essence.Editor.Bridge.Scenario.ScenarioProxy.InitializeSimulationTerrain()
   at Essence.Editor.Bridge.Scenario.ScenarioProxy.Save(Boolean defaultLayer, IEnumerable`1 layers, IEnumerable`1 overrides)
   at Essence.Editor.ScenarioEditor.Controls.ScenarioControl.SaveDocument(String& errorMessage)

A pre-Oct-29 copy of the Editor on the same machine, same project, performs terrain edits and saves with zero crashes — confirming this is a regression introduced by the Oct 29 build, not a content/mod issue. The crash is intermittent (occasionally a Save/Open/Build Mod succeeds) rather than 100% reproducible every time.

Trigger Event:

Any terrain-touching action in the Content Editor: saving a scenario, opening a scenario, clicking Build Mod, or finishing the New Scenario wizard. No specific player action in-game — this is purely a Content Editor (modding tool) crash.

Repro Steps:

    1. Open the Content Editor (post Oct-29-patch build).
    2. Do any of: open an existing scenario, edit and save a scenario, click Build Mod, or create a brand-new scenario via File → New → Scenario and finish the wizard.
    3. Editor crashes with the AccessViolationException above, logged to Documents\My Games\Age of Empires IV\EssenceEditorLog.txt.
    4. Reproducible even on a completely blank, default new scenario with no mod content — not specific to any project. Intermittent: not every attempt crashes, but it happens on the large majority of attempts across all four trigger paths.

Additional Notes:

  • Verified game file integrity via Steam already — came back clean, no corrupted/missing files, and did not fix the crash. This isn’t a corrupted install.
  • No crash dump (.dmp) is generated — this AccessViolationException happens at a native/managed interop boundary, so Windows Error Reporting doesn’t catch it. The only record is the stack trace in EssenceEditorLog.txt (included above). Worth flagging so support doesn’t just ask for a BugSplat/.dmp file that won’t exist.
  • Tried reverting just RelicCardinal.exe to a pre-patch copy while keeping the new Editor DLLs — made things worse, producing a different AccessViolationException at startup (in Audio.UpdateEventRouter). This indicates the whole Oct 29 binary set is version-coupled; a partial rollback isn’t a viable workaround, and a reinstall wouldn’t help either since it would just redownload the same broken build.
  • Cleared Documents\My Games\Age of Empires IV\Cache\DataMigration as a cache-corruption test — no clear effect either way.
  • Searched the forums beforehand for an existing matching report — found none as of this writing; this may not be widely reported yet.
  • Hardware for reference: GPU: AMD Radeon™ Graphics (integrated, PCI device 164C), driver 31.0.21924.61 — well above the Editor’s stated minimum required driver version, so this isn’t a driver-currency issue, Windows 11.
  • I suspect this may be more reproducible on systems with limited dedicated VRAM (this machine has only 512MB dedicated, integrated AMD graphics) — a native AccessViolationException in terrain buffer initialization is the kind of bug that could exist for everyone post-patch but only reliably crash on memory-constrained GPUs, which may explain why it hasn’t been widely reported by other scenario/map creators yet.

The only remaining way for me to work on a scenario terrain file right now is using the pre-patch version, then working on the other non-terrain files using external software where I write scripts and spawn new DLC buildings and units using coordinates then delete the essence editor layout.xml (which allows me to enter into my projects without loading anything there) and then finally build it in the essence editor without actually opening the scenario.

It is kind of a bummer since I had just published my work and wanting to release updates. Hope it can be fixed somehow. Thank you in advance for looking into it.