[Genhis][2.1.24] Crash when drawing a territory without Space Age

This subforum contains all the issues which we already resolved.
Quintuple5
Burner Inserter
Burner Inserter
Posts: 6
Joined: Fri Nov 12, 2021 4:43 pm
Contact:

[Genhis][2.1.24] Crash when drawing a territory without Space Age

Post by Quintuple5 »

What did you do?
1. Start a new freeplay game with no mods enabled, so no Space Age
2. Open the map (press 'm')
3. Run (possibly twice due to the achievement disabling message):
/c local t = game.player.surface.create_territory{chunks = {{2,0},{3,0}}}; t.visibility_condition = "always"
What happened?
An instant crash with this stacktrace:
Error CrashHandler.cpp:614: Received SIGSEGV
src\Graphics\TerritoryOverlayListDrawOrder.cpp(63): TerritoryOverlayListDrawOrder::render
src\Graphics\DrawEngine.cpp(375): DrawEngine::drawChartQueues
src\Graphics\DrawEngine.cpp(230): DrawEngine::render
src\Graphics\GameRenderer.cpp(237): GameRenderer::renderInternal
src\Graphics\GameRenderer.cpp(187): GameRenderer::render
src\MainLoop.cpp(1557): MainLoop::render
What did you expect to happen instead? It might be obvious to you, but do it anyway!
Either the territory gets drawn just like what happens when Space Age is enabled, or the invocation is refused due to a feature flag not being set.

Does it happen always, once, or sometimes?
It happens every time.

Factorio 2.1.24 (build 87808, win64, steam, space-age), Operating system: Windows 11 (build 26300)
Genhis
Factorio Staff
Factorio Staff
Posts: 1109
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [Genhis][2.1.24] Crash when drawing a territory without Space Age

Post by Genhis »

Thanks for the report. Territories API will require segmented_units feature flag in 2.1.26 (expansion-only).
Post Reply

Return to “Resolved Problems and Bugs”