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

Bugs that are actually features.
Post Reply
Dumatoin
Burner Inserter
Burner Inserter
Posts: 7
Joined: Fri Mar 01, 2013 7:31 am
Contact:

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

Post 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.

slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

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

Post 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 ?

Dumatoin
Burner Inserter
Burner Inserter
Posts: 7
Joined: Fri Mar 01, 2013 7:31 am
Contact:

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

Post 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.

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

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

Post 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
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net

MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

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

Post by MF- »

freeze + a lot of page faults? Sounds like you were low on RAM again.
Memory leak?

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

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

Post 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)
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net

MF-
Smart Inserter
Smart Inserter
Posts: 1235
Joined: Sun Feb 24, 2013 12:07 am
Contact:

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

Post by MF- »

Did you.. let it generate very far chunks, where the creeper spawner density is greater than the world density?

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

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

Post by FreeER »

Nope, I haven't gone more than 300 in any direction
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

Post 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.

Post Reply

Return to “Not a bug”