Program: 10389
Project: 10389
Buggy source:
private void buildHUD(){
  String iconNames[]=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  UIColor colors[]=new UIColor[]{UIColor.green(),UIColor.blue(),UIColor.yellow(),UIColor.red()};
  double hudX=30;
  double hudY=getFrame().getSize().getHeight() - 30;
  double hudD=getFrame().getSize().getWidth() / NUM_PLAYERS;
  SKNode hud=new SKNode();
  for (int i=0; i < NUM_PLAYERS; i++) {
    SKSpriteNode avatar=SKSpriteNode.create(iconNames[i]);
    avatar.setScale(0.5);
    avatar.setAlpha(0.5);
    avatar.setPosition(new CGPoint(hudX + i * hudD + (avatar.getSize().getWidth() * 0.5),getFrame().getSize().getHeight() - avatar.getSize().getHeight() * 0.5 - 8));
    hudAvatars.add(avatar);
    hud.addChild(avatar);
    SKLabelNode label=SKLabelNode.createWithFont("String_Node_Str");
    label.setText("String_Node_Str");
    label.setFontColor(colors[i]);
    label.setFontSize(16);
    label.setHorizontalAlignmentMode(SKLabelHorizontalAlignmentMode.Left);
    label.setPosition(new CGPoint(hudX + i * hudD + (avatar.getSize().getWidth() * 1.0),hudY + 10));
    hudLabels.add(label);
    hud.addChild(label);
    SKLabelNode score=SKLabelNode.createWithFont("String_Node_Str");
    score.setText("String_Node_Str");
    score.setFontColor(colors[i]);
    score.setFontSize(16);
    score.setHorizontalAlignmentMode(SKLabelHorizontalAlignmentMode.Left);
    score.setPosition(new CGPoint(hudX + i * hudD + (avatar.getSize().getWidth() * 1.0),hudY - 40));
    hudScores.add(score);
    hud.addChild(score);
    hudLifeHeartArrays.add(new NSMutableArray<SKSpriteNode>(APAPlayer.START_LIVES));
    for (int j=0; j < APAPlayer.START_LIVES; j++) {
      SKSpriteNode heart=SKSpriteNode.create("String_Node_Str");
      heart.setScale(0.4);
      heart.setPosition(new CGPoint(hudX + i * hudD + (avatar.getSize().getWidth() * 1.0) + 18 + ((heart.getSize().getWidth() + 5) * j),hudY - 10));
      heart.setAlpha(0.1);
      hudLifeHeartArrays.get(i).add(heart);
      hud.addChild(heart);
    }
  }
  addChild(hud);
}

Fixed version (ground truth):
private void buildHUD(){
  String iconNames[]=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  UIColor colors[]=new UIColor[]{UIColor.green(),UIColor.blue(),UIColor.yellow(),UIColor.red()};
  double hudX=30;
  double hudY=getFrame().getSize().getHeight() - 30;
  double hudD=getFrame().getSize().getWidth() / NUM_PLAYERS;
  SKNode hud=new SKNode();
  for (int i=0; i < NUM_PLAYERS; i++) {
    SKSpriteNode avatar=new SKSpriteNode(iconNames[i]);
    avatar.setScale(0.5);
    avatar.setAlpha(0.5);
    avatar.setPosition(new CGPoint(hudX + i * hudD + (avatar.getSize().getWidth() * 0.5),getFrame().getSize().getHeight() - avatar.getSize().getHeight() * 0.5 - 8));
    hudAvatars.add(avatar);
    hud.addChild(avatar);
    SKLabelNode label=new SKLabelNode("String_Node_Str","String_Node_Str");
    label.setFontColor(colors[i]);
    label.setFontSize(16);
    label.setHorizontalAlignmentMode(SKLabelHorizontalAlignmentMode.Left);
    label.setPosition(new CGPoint(hudX + i * hudD + (avatar.getSize().getWidth() * 1.0),hudY + 10));
    hudLabels.add(label);
    hud.addChild(label);
    SKLabelNode score=new SKLabelNode("String_Node_Str","String_Node_Str");
    score.setFontColor(colors[i]);
    score.setFontSize(16);
    score.setHorizontalAlignmentMode(SKLabelHorizontalAlignmentMode.Left);
    score.setPosition(new CGPoint(hudX + i * hudD + (avatar.getSize().getWidth() * 1.0),hudY - 40));
    hudScores.add(score);
    hud.addChild(score);
    hudLifeHeartArrays.add(new NSMutableArray<SKSpriteNode>(APAPlayer.START_LIVES));
    for (int j=0; j < APAPlayer.START_LIVES; j++) {
      SKSpriteNode heart=new SKSpriteNode("String_Node_Str");
      heart.setScale(0.4);
      heart.setPosition(new CGPoint(hudX + i * hudD + (avatar.getSize().getWidth() * 1.0) + 18 + ((heart.getSize().getWidth() + 5) * j),hudY - 10));
      heart.setAlpha(0.1);
      hudLifeHeartArrays.get(i).add(heart);
      hud.addChild(heart);
    }
  }
  addChild(hud);
}