# Landscape hole mobile renderer crash

**URL:** <https://forums.unrealengine.com/t/landscape-hole-mobile-renderer-crash/330930>\
**Category:** Mobile\
**Tags:** Mobile, UE4-9, unreal-engine, crash, Landscape, bug-report, question\
**Created:** [September 3, 2015, 5:38pm UTC](https://forums.unrealengine.com/t/landscape-hole-mobile-renderer-crash/330930 "2015-09-03T17:38:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttavis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ttavis](https://forums.unrealengine.com/u/ttavis)\
**Post date:** [September 3, 2015, 5:38pm UTC](https://forums.unrealengine.com/t/landscape-hole-mobile-renderer-crash/330930/1 "2015-09-03T17:38:20Z")

</div>

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>
```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cc69b907](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cc69b907](https://forums.unrealengine.com/u/anonymous_user_cc69b907)\
**Post date:** [September 4, 2015, 7:13pm UTC](https://forums.unrealengine.com/t/landscape-hole-mobile-renderer-crash/330930/2 "2015-09-04T19:13:08Z")

</div>

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,
