Page 1 of 1

Error -1 while running the event handler: (null)

Posted: Fri Mar 01, 2013 7:35 am
by Dumatoin
I keep getting this error on map 2 of "new hope"

I did a search in this forum for this error, and didn't find anything.

Re: Error -1 while running the event handler: (null)

Posted: Fri Mar 01, 2013 11:57 am
by slpwnd
Hi Dumation,

could you please describe in more detail when the error is happening ? Or even better could you post a link to the save short time before the error happens ?

Re: Error -1 while running the event handler: (null)

Posted: Fri Mar 01, 2013 2:13 pm
by Dumatoin
It starts to happen when the creepers get really thick. Hard to guess how many are coming at that point, but they are tearing through my wall of i'd say 16 or so turrets.

As for sending a save, that's difficult, as i can load a save from 20 min earlier, and it will happen right away. Other times, i can load a save, and it doesn't happen at all.

Re: Error -1 while running the event handler: (null)

Posted: Wed May 15, 2013 12:37 am
by FreeER
I just encountered this error myself...It was actually at the end of a smallish creeper attack but I'd just replaced a turret and Factorio suddenly crashed
I zipped up the saves and took a couple pictures of system explorer (my alternative to window's task manager. I noticed factorio using about 4gbs of memory) before reloading and didn't have issues for 30-60 minutes (though my fps have been jumping down to 30 then back to 60). But then my computer suddenly froze on me...So I took another picture when it unlocked about 1 minute later and noticed the "pages faulted" graph was insane (660000+)
Anyways here are the three autosaves from before the error and the pictures (I included the mods I was using, though I really haven't built many mod items except for a salt extractor from the fmod and a few of the larger chests)
https://www.dropbox.com/s/c2li3ea61evztdo/error-1.7z

Re: Error -1 while running the event handler: (null)

Posted: Wed May 15, 2013 7:39 am
by MF-
freeze + a lot of page faults? Sounds like you were low on RAM again.
Memory leak?

Re: Error -1 while running the event handler: (null)

Posted: Wed May 15, 2013 8:02 am
by FreeER
MF- wrote:freeze + a lot of page faults? Sounds like you were low on RAM again.
Memory leak?
I would not have thought that Factorio would eat my ram that much lol (I have six GBs, +six more virtual), especially with a save hardly 2 hours old and taking my time lol
Memory leak is my best guess, unless 2048 chunks will eat 4 GBs of memory but I seriously doubt that unless they were full of entities (and most are empty)

Re: Error -1 while running the event handler: (null)

Posted: Wed May 15, 2013 6:00 pm
by MF-
Did you.. let it generate very far chunks, where the creeper spawner density is greater than the world density?

Re: Error -1 while running the event handler: (null)

Posted: Wed May 15, 2013 9:47 pm
by FreeER
Nope, I haven't gone more than 300 in any direction

Re: Error -1 while running the event handler: (null)

Posted: Thu May 16, 2013 12:17 pm
by kovarex
Hello, I investigated the save and found 2 things.

1) F mod is making something very performance heavy (so I did divide the script update statistics into individual mods, so people can see what is slowing down)
2) There is really a problem in our lua that acts as memory leak, we found the cause and will repair it in next release.