[16.27] Crash when creating beam entity with bad arguments

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

[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
log, dump and mods.zip
(223.46 KiB) Downloaded 68 times

Factorio Staff
Factorio Staff
Posts: 10986
Joined: Wed Jun 11, 2014 5:23 am

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”

Who is online

Users browsing this forum: Google [Bot]