An error occurs when I crash into any objects in the laboratory in the car, it is in this
Error while running event RPGsystem::on_entity_died (ID 4)
LuaPlayer doesn't contain key type.
stack traceback: RPGsystem/control.lua:1161: in function 'GetXPByKill' RPGsystem/control.lua:1239: in function <RPGsystem/control.lua:1219>
stack traceback:
[C]: in function 'index'
__RPGsystem/control.lua:1161: in function 'GetXPByKill' RPGsystem/control.lua:1239: in function <RPGsystem/control.lua:1219>
It looks like that crash is originating with a different mod, https://mods.factorio.com/mod/RPGsystem. While you're in the lab the "player" (representing your GUI and all of the clicks you make) and the "character" (representing the little guy who runs around, takes damage, and apparently earns XP in that mod) are separated, and it looks like that mod doesn't account for that.
Yes. It's a know issue with the mod because the player is vulnerable to attack on the world surface. If you enter the lab the game does not get paused and, for example turrets and enemies, trains, etc can kill the player.