[16.27] Crash when creating beam entity with bad arguments

This subforum contains all the issues which we already resolved.
Post Reply
tristynstimpson
Burner Inserter
Burner Inserter
Posts: 6
Joined: Fri Mar 02, 2018 4:50 am
Contact:

[16.27] Crash when creating beam entity with bad arguments

Post by tristynstimpson »

What did you do?

Install this indevelopment mod, it's been changed to easily reproduce the crash. Start a new game with all default settings. At tick 100 two entities will be scripted to spawn at position {0,0}. Mouse over one of the entities and the mod will call surface.create_entity{name = "custom-beam", etc... }, this call crashes the game.

The mod makes the surface.create_entity call at either tas.lua:85 or tas.lua:93

What happened?

The game crashes every time at the surface.create_entity() call.

What did you expect to happen instead?

The surface.create_entity() call should return an error because of bad arguments, which the mod would catch with a lua xpcall()


I love this game, please reply if you need more information
Attachments
log, dump and mods.zip
(223.46 KiB) Downloaded 135 times

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

Re: [16.27] Crash when creating beam entity with bad arguments

Post by Rseding91 »

Thanks for the report. It's now fixed for the next version of 0.16. The problem is you didn't define any body animation for the beam entity and it requires at least 1.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”