Headless crashes

Bugs that we were not able to reproduce, and/or are waiting for more detailed info.
User avatar
badgamernl
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Sat Aug 29, 2015 4:03 pm
Contact:

Headless crashes

Post by badgamernl »

I've had some crashes/errors i don't know why, the error in the log files seams weird. I got 3 log files the 3rd has a corrupt game state at the end. I'm using a custom control.lua but didn't have problems before with it, i have been using it for a long time.

Hope the attachments help!

Srry for not too much info.
Attachments
control.lua
the control.lua 1 line version
(15.83 KiB) Downloaded 81 times
control.lua
the control.lua normal
(24.27 KiB) Downloaded 70 times
factorio-previous12-3-2017.log
after rocket launch players said
(3.44 MiB) Downloaded 74 times
factorio-current11-3-2017.log
allot of people joined at once and players had a corrupt save or something like that
(121.8 KiB) Downloaded 75 times
factorio-previous-10-3-2017.log
people said there were allot of people joining at once
(1.82 MiB) Downloaded 73 times
-- Explosive Gaming a factorio server community, or join the discord --
Rseding91
Factorio Staff
Factorio Staff
Posts: 14775
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Headless crashes

Post by Rseding91 »

Your control.lua is not valid. It's saving references to game objects outside the global table which is what's causing the "corrupt game state detected" error.

Example: line 309 you store a reference to player.character in a variable that isn't in the global table. That means it doesn't get saved correctly and you get the above error.
If you want to get ahold of me I'm almost always on Discord.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14775
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Headless crashes

Post by Rseding91 »

Additionally the way you've setup the on-tick handler will cause desyncs for anyone joining since it's going to re-run every time you load the game or join the game in MP.
If you want to get ahold of me I'm almost always on Discord.
User avatar
badgamernl
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Sat Aug 29, 2015 4:03 pm
Contact:

Re: Headless crashes

Post by badgamernl »

The spectate function is not in use
-- Explosive Gaming a factorio server community, or join the discord --
User avatar
badgamernl
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Sat Aug 29, 2015 4:03 pm
Contact:

Re: Headless crashes

Post by badgamernl »

Ill look into a way to fix the ontick but all the crashes didnt happen before and it was like 2 weeks ago that ive added the on tick
-- Explosive Gaming a factorio server community, or join the discord --
Rseding91
Factorio Staff
Factorio Staff
Posts: 14775
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Headless crashes

Post by Rseding91 »

Do you have a way to reproduce the crash?
If you want to get ahold of me I'm almost always on Discord.
User avatar
badgamernl
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Sat Aug 29, 2015 4:03 pm
Contact:

Re: Headless crashes

Post by badgamernl »

No
-- Explosive Gaming a factorio server community, or join the discord --
User avatar
badgamernl
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Sat Aug 29, 2015 4:03 pm
Contact:

Re: Headless crashes

Post by badgamernl »

It has been happening when im gone
-- Explosive Gaming a factorio server community, or join the discord --
Post Reply

Return to “Pending”