Page 1 of 1

[0.11.1] segfault on mod godmode event onpreplayermineditem

Posted: Mon Nov 03, 2014 11:53 am
by pyrolytic_tungsten
I was updating the MoarInserters mod and got a segfault testing it in the sandbox when mining the starting chest. Segfault doesn't happen in freeplay or if the section game.onevent(defines.events.onpreplayermineditem, function(event) ... is commented out. It still segaults when the contents of the function is commented out so there has to be something wrong with the event handling.

Steps to reproduce:
  1. Load and enable this copy of MoarInserters I was working on
  2. Start new sandbox game
  3. Get the starting chest and all techs
  4. Mine the starting chest and notice the segfault right before the mining bar fills up.
GDB says

Re: [0.11.1] segfault on mod godmode event onpreplayerminedi

Posted: Fri Nov 07, 2014 4:11 pm
by kovarex
Thank you for the notice, it is fixed for 0.11.2 now.