[0.14.5] Crash with damage_interval=0 on beam

This subforum contains all the issues which we already resolved.
Post Reply
Lilly
Inserter
Inserter
Posts: 49
Joined: Mon Apr 11, 2016 6:42 pm
Contact:

[0.14.5] Crash with damage_interval=0 on beam

Post by Lilly »

Creating a beam entity with damage_interval=0 causes factorio to crash with a SIGSEGV.

Steps to reproduce:
1. Install the attached 'lines' mod. This mod creates a beam entity upon 'on_player_created'. The beam has damage_interval=0.
2. Start factorio.
3. Start a new game.
4. Factorio crashes with a SIGSEGV on tick 0 (always).

Workaround:
Set damage_interval of the beam in 'lines_0.0.1/data.lua' to something else, like 1000. In this case the game won't crash. (Though, the rendering of the beam seems to be incorrect.)
Attachments
factorio-current.log
The crash log
(4.76 KiB) Downloaded 137 times
lines_0.0.1.zip
The mod causing the crash
(4.45 KiB) Downloaded 120 times

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.14.5] Crash with damage_interval=0 on beam

Post by Rseding91 »

Fixed for 0.14.6. It now can't be 0. 1 will cause the beam attack to be applied each tick.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”