[Rseding91] [2.0.43] Crash when resource.resource_patch_search_radius = 0 (ChartRenderer::drawResourceSelection)
Posted: Mon Mar 31, 2025 1:43 pm
What did you do?
When mousing over a resource patch in the map view where on the resource prototype the attribute resource_patch_search_radius is set to 0, Factorio hard crashes.
What happened?
Factorio crashed and generated a crash log. The factorio-current.log is attached for the modded save where I reproduced it.
Does it happen always, once, or sometimes?
It always happens when mousing over the resource patch in map view. While I encountered this in the development of a mod, it is possible to recreate with only the vanilla resources if you add the following code to modify the vanilla resources:
When mousing over a resource patch in the map view where on the resource prototype the attribute resource_patch_search_radius is set to 0, Factorio hard crashes.
What happened?
Factorio crashed and generated a crash log. The factorio-current.log is attached for the modded save where I reproduced it.
Does it happen always, once, or sometimes?
It always happens when mousing over the resource patch in map view. While I encountered this in the development of a mod, it is possible to recreate with only the vanilla resources if you add the following code to modify the vanilla resources:
Code: Select all
for _, resource in pairs(data.raw.resource) do
resource.resource_patch_search_radius = 0
end