Program: 58016
Project: 58016
Buggy source:
@Override public void display(GL2 gl){
  if (showDetailBrick) {
    detailRow.clear();
    if (expandLeft) {
      detailRow.append(detailBrickLayout);
      detailRow.append(overviewDetailGapLayout);
      detailRow.append(groupColumn);
      visBricks.switchToDetailModeRight(this);
    }
 else {
      detailRow.append(groupColumn);
      detailRow.append(overviewDetailGapLayout);
      detailRow.append(detailBrickLayout);
      visBricks.switchToDetailModeLeft(this);
    }
    detailRow.updateSubLayout();
    visBricks.updateLayout();
    visBricks.updateConnectionLinesBetweenDimensionGroups();
    showDetailBrick=false;
    isDetailBrickShown=true;
  }
  if (hideDetailBrick || (isCollapsed && detailBrick != null)) {
    detailRow.clear();
    detailRow.append(groupColumn);
    if (detailBrick != null) {
      GeneralManager.get().getViewGLCanvasManager().unregisterGLView(detailBrick);
      detailBrick.unregisterEventListeners();
      detailBrick.destroy();
      detailBrick=null;
    }
    isDetailBrickShown=false;
    if (hideDetailBrick && expandLeft) {
      visBricks.switchToOverviewModeRight();
    }
    if (hideDetailBrick && !expandLeft) {
      visBricks.switchToOverviewModeLeft();
    }
    hideDetailBrick=false;
    detailRow.updateSubLayout();
    visBricks.updateLayout();
    visBricks.updateConnectionLinesBetweenDimensionGroups();
  }
  while (!uninitializedBricks.isEmpty()) {
    uninitializedBricks.poll().initRemote(gl,this,glMouseListener);
  }
  handleVerticalMoveDragging(gl);
  checkForHits(gl);
}

Fixed version (ground truth):
@Override public void display(GL2 gl){
  if (showDetailBrick) {
    detailRow.clear();
    if (expandLeft) {
      detailRow.append(detailBrickLayout);
      detailRow.append(overviewDetailGapLayout);
      detailRow.append(groupColumn);
      visBricks.switchToDetailModeRight(this);
    }
 else {
      detailRow.append(groupColumn);
      detailRow.append(overviewDetailGapLayout);
      detailRow.append(detailBrickLayout);
      visBricks.switchToDetailModeLeft(this);
    }
    detailRow.updateSubLayout();
    visBricks.updateLayout();
    visBricks.updateConnectionLinesBetweenDimensionGroups();
    showDetailBrick=false;
    isDetailBrickShown=true;
  }
  if (hideDetailBrick || (isCollapsed && detailBrick != null)) {
    detailRow.clear();
    detailRow.append(groupColumn);
    if (detailBrick != null) {
      GeneralManager.get().getViewGLCanvasManager().unregisterGLView(detailBrick);
      detailBrick.unregisterEventListeners();
      detailBrick.destroy();
      detailBrick=null;
    }
    isDetailBrickShown=false;
    if (hideDetailBrick && expandLeft) {
      visBricks.switchToOverviewModeRight();
    }
    if (hideDetailBrick && !expandLeft) {
      visBricks.switchToOverviewModeLeft();
    }
    hideDetailBrick=false;
    detailRow.updateSubLayout();
    visBricks.updateLayout();
    visBricks.updateConnectionLinesBetweenDimensionGroups();
  }
  while (!uninitializedBricks.isEmpty()) {
    uninitializedBricks.poll().initRemote(gl,this,glMouseListener);
    glVisBricksView.updateLayout();
    glVisBricksView.updateConnectionLinesBetweenDimensionGroups();
  }
  handleVerticalMoveDragging(gl);
  checkForHits(gl);
}