Program: 964
Project: 964
Buggy source:
@ReceiveEvent public void onPlayerSpawnedEvent(OnPlayerSpawnedEvent event,EntityRef player){
  BlockItemFactory blockFactory=new BlockItemFactory(entityManager);
  EntityRef chest=blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"));
  chest.addComponent(new InventoryComponent(30));
  chest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  chest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  chest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  chest.send(new GiveItemAction(EntityRef.NULL,entityManager.create("String_Node_Str")));
  chest.send(new GiveItemAction(EntityRef.NULL,entityManager.create("String_Node_Str")));
  chest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  chest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  chest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  EntityRef doorItem=entityManager.create("String_Node_Str");
  ItemComponent doorItemComp=doorItem.getComponent(ItemComponent.class);
  doorItemComp.stackCount=20;
  doorItem.saveComponent(doorItemComp);
  chest.send(new GiveItemAction(EntityRef.NULL,doorItem));
  EntityRef innerChest=blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"));
  innerChest.addComponent(new InventoryComponent(30));
  innerChest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  innerChest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  innerChest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  innerChest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  innerChest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  innerChest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  chest.send(new GiveItemAction(EntityRef.NULL,innerChest));
  player.send(new GiveItemAction(EntityRef.NULL,entityManager.create("String_Node_Str")));
  player.send(new GiveItemAction(EntityRef.NULL,entityManager.create("String_Node_Str")));
  player.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  player.send(new GiveItemAction(EntityRef.NULL,entityManager.create("String_Node_Str")));
  player.send(new GiveItemAction(EntityRef.NULL,entityManager.create("String_Node_Str")));
  player.send(new GiveItemAction(EntityRef.NULL,entityManager.create("String_Node_Str")));
  player.send(new GiveItemAction(EntityRef.NULL,chest));
}

Fixed version (ground truth):
@ReceiveEvent(components=InventoryComponent.class) public void onPlayerSpawnedEvent(OnPlayerSpawnedEvent event,EntityRef player){
  BlockItemFactory blockFactory=new BlockItemFactory(entityManager);
  EntityRef chest=blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"));
  chest.addComponent(new InventoryComponent(30));
  chest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  chest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  chest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  chest.send(new GiveItemAction(EntityRef.NULL,entityManager.create("String_Node_Str")));
  chest.send(new GiveItemAction(EntityRef.NULL,entityManager.create("String_Node_Str")));
  chest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  chest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  chest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  EntityRef doorItem=entityManager.create("String_Node_Str");
  ItemComponent doorItemComp=doorItem.getComponent(ItemComponent.class);
  doorItemComp.stackCount=20;
  doorItem.saveComponent(doorItemComp);
  chest.send(new GiveItemAction(EntityRef.NULL,doorItem));
  EntityRef innerChest=blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"));
  innerChest.addComponent(new InventoryComponent(30));
  innerChest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  innerChest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  innerChest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  innerChest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  innerChest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  innerChest.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  chest.send(new GiveItemAction(EntityRef.NULL,innerChest));
  player.send(new GiveItemAction(EntityRef.NULL,entityManager.create("String_Node_Str")));
  player.send(new GiveItemAction(EntityRef.NULL,entityManager.create("String_Node_Str")));
  player.send(new GiveItemAction(EntityRef.NULL,blockFactory.newInstance(blockManager.getBlockFamily("String_Node_Str"),99)));
  player.send(new GiveItemAction(EntityRef.NULL,entityManager.create("String_Node_Str")));
  player.send(new GiveItemAction(EntityRef.NULL,entityManager.create("String_Node_Str")));
  player.send(new GiveItemAction(EntityRef.NULL,entityManager.create("String_Node_Str")));
  player.send(new GiveItemAction(EntityRef.NULL,chest));
}