Program: 30733
Project: 30733
Buggy source:
@Override public void onUpdateTick(){
  if (recalculateControllerNextTick) {
    recalcController();
  }
  if (updateNetwork) {
    if (!booting)     myGrid.postEvent(new MENetworkBootingStatusChange());
    booting=true;
    updateNetwork=false;
    instance++;
    if (controllerState == ControllerState.NO_CONTROLLER) {
      int requiredChannels=calculateRequiredChanels();
      int used=requiredChannels;
      if (requiredChannels > 8)       used=0;
      int nodes=myGrid.getNodes().size();
      ticksUntilReady=20 + (nodes / 10);
      channelsByBlocks=nodes * used;
      channelPowerUsage=(double)channelsByBlocks / 128.0;
      myGrid.getPivot().beginVisition(new AdHocChannelUpdater(used));
    }
 else     if (controllerState == ControllerState.CONTROLLER_CONFLICT) {
      ticksUntilReady=20;
      myGrid.getPivot().beginVisition(new AdHocChannelUpdater(0));
    }
 else {
      int nodes=myGrid.getNodes().size();
      ticksUntilReady=20 + (nodes / 10);
      closedList=new HashSet();
      semiOpen=new HashSet();
      for (      IGridNode node : myGrid.getMachines(TileController.class)) {
        closedList.add((IPathItem)node);
        for (        IGridConnection gcc : node.getConnections()) {
          GridConnection gc=(GridConnection)gcc;
          if (!(gc.getOtherSide(node).getMachine() instanceof TileController)) {
            List open=new LinkedList();
            closedList.add(gc);
            open.add(gc);
            gc.setControllerRoute((GridNode)node,true);
            active.add(new PathSegment(this,open,semiOpen,closedList));
          }
        }
      }
    }
  }
  if (!active.isEmpty() || ticksUntilReady > 0) {
    Iterator<PathSegment> i=active.iterator();
    while (i.hasNext()) {
      PathSegment pat=i.next();
      if (pat.step()) {
        pat.isDead=true;
        i.remove();
      }
    }
    ticksUntilReady--;
    if (active.isEmpty() && ticksUntilReady <= 0) {
      if (controllerState == ControllerState.CONTROLLER_ONLINE) {
        for (        TileController tc : controllers) {
          tc.getGridNode(ForgeDirection.UNKNOWN).beginVisition(new ControllerChannelUpdater());
          break;
        }
      }
      booting=false;
      channelPowerUsage=(double)channelsByBlocks / 128.0;
      myGrid.postEvent(new MENetworkBootingStatusChange());
    }
  }
}

Fixed version (ground truth):
@Override public void onUpdateTick(){
  if (recalculateControllerNextTick) {
    recalcController();
  }
  if (updateNetwork) {
    if (!booting)     myGrid.postEvent(new MENetworkBootingStatusChange());
    booting=true;
    updateNetwork=false;
    instance++;
    if (controllerState == ControllerState.NO_CONTROLLER) {
      int requiredChannels=calculateRequiredChanels();
      int used=requiredChannels;
      if (requiredChannels > 8)       used=0;
      int nodes=myGrid.getNodes().size();
      ticksUntilReady=20 + Math.max(0,nodes / 100 - 20);
      channelsByBlocks=nodes * used;
      channelPowerUsage=(double)channelsByBlocks / 128.0;
      myGrid.getPivot().beginVisition(new AdHocChannelUpdater(used));
    }
 else     if (controllerState == ControllerState.CONTROLLER_CONFLICT) {
      ticksUntilReady=20;
      myGrid.getPivot().beginVisition(new AdHocChannelUpdater(0));
    }
 else {
      int nodes=myGrid.getNodes().size();
      ticksUntilReady=20 + Math.max(0,nodes / 100 - 20);
      closedList=new HashSet();
      semiOpen=new HashSet();
      for (      IGridNode node : myGrid.getMachines(TileController.class)) {
        closedList.add((IPathItem)node);
        for (        IGridConnection gcc : node.getConnections()) {
          GridConnection gc=(GridConnection)gcc;
          if (!(gc.getOtherSide(node).getMachine() instanceof TileController)) {
            List open=new LinkedList();
            closedList.add(gc);
            open.add(gc);
            gc.setControllerRoute((GridNode)node,true);
            active.add(new PathSegment(this,open,semiOpen,closedList));
          }
        }
      }
    }
  }
  if (!active.isEmpty() || ticksUntilReady > 0) {
    Iterator<PathSegment> i=active.iterator();
    while (i.hasNext()) {
      PathSegment pat=i.next();
      if (pat.step()) {
        pat.isDead=true;
        i.remove();
      }
    }
    ticksUntilReady--;
    if (active.isEmpty() && ticksUntilReady <= 0) {
      if (controllerState == ControllerState.CONTROLLER_ONLINE) {
        for (        TileController tc : controllers) {
          tc.getGridNode(ForgeDirection.UNKNOWN).beginVisition(new ControllerChannelUpdater());
          break;
        }
      }
      booting=false;
      channelPowerUsage=(double)channelsByBlocks / 128.0;
      myGrid.postEvent(new MENetworkBootingStatusChange());
    }
  }
}