Landscape hole mobile renderer crash

Having holes in a landscape and stopping the game in opengl es2 crashes the editor.

  1. Create a material
  2. Switch to masked
  3. Hookup Landscape Visibility Mask to Opacity
  4. Compile
  5. Create a landscape
  6. Apply the material to the landscape
  7. Add at least one hole
  8. Switch preview renderer to opengl es2 (mobile)
  9. Play the game
  10. Stop the game
  11. Crash. Able to reproduce 100% of the time. I tried it on a brand new project as well.
<SOURCE START>
  831       		Owner->DetachFence.BeginFence();
  832       	}
  833       }
  834       
  835       bool UPrimitiveComponent::IsReadyForFinishDestroy()
  836       {
  837       	// Don't allow the primitive component to the purged until its pending scene detachments have completed.
  838       	return Super::IsReadyForFinishDestroy() && DetachFence.IsFenceComplete();
  839       }
  840       
  841       void UPrimitiveComponent::FinishDestroy()
  842       {
  843       	// The detach fence has cleared so we better not be attached to the scene.
  844       	check(AttachmentCounter.GetValue() == 0);
  845 ***** 	Super::FinishDestroy();
  846       }
  847       
  848       bool UPrimitiveComponent::NeedsLoadForClient() const
  849       {
  850       	if(!IsVisible() && !IsCollisionEnabled() && !AlwaysLoadOnClient)
  851       	{
  852       		return 0;
  853       	}
  854       	else
  855       	{
  856       		return Super::NeedsLoadForClient();
  857       	}
  858       }
  859       
  860       
<SOURCE END>

Hello ttavis,

I have been able to reproduce this crash and I have reported this bug to our development team.

The ticket number is UE - 20804.

Thank you very much for reporting this issue. Our development team will look into this matter as soon as possible.

Thank you,