[Rseding91] [2.0.43] Crash when resource.resource_patch_search_radius = 0 (ChartRenderer::drawResourceSelection)

This subforum contains all the issues which we already resolved.
Radjack
Burner Inserter
Burner Inserter
Posts: 11
Joined: Mon Nov 22, 2021 9:13 pm
Contact:

[Rseding91] [2.0.43] Crash when resource.resource_patch_search_radius = 0 (ChartRenderer::drawResourceSelection)

Post by Radjack »

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:

Code: Select all

for _, resource in pairs(data.raw.resource) do
  resource.resource_patch_search_radius = 0
end
Attachments
factorio-current.log
(164.13 KiB) Downloaded 21 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15278
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [2.0.43] Crash when resource.resource_patch_search_radius = 0 (ChartRenderer::drawResourceSelection)

Post by Rseding91 »

Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”