# \[4.13 p3 BUG\]game crashes on ios

**URL:** <https://forums.unrealengine.com/t/4-13-p3-bug-game-crashes-on-ios/368079>\
**Category:** World Creation\
**Tags:** unreal-engine, iOS, Landscape, question\
**Created:** [August 24, 2016, 7:38am UTC](https://forums.unrealengine.com/t/4-13-p3-bug-game-crashes-on-ios/368079 "2016-08-24T07:38:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_1521166e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1521166e](https://forums.unrealengine.com/u/anonymous_user_1521166e)\
**Post date:** [August 24, 2016, 7:38am UTC](https://forums.unrealengine.com/t/4-13-p3-bug-game-crashes-on-ios/368079/1 "2016-08-24T07:38:58Z")

</div>

It seems that the UE-34257 BUG has been fixed and I can now package the game for ios with no error.However,after I install the app to ios manually,if I run the app,it will crash after a while.I have tested my project for iPhone 6 plus(ios10 public beta6) and iPhone 6s(ios9.3.2).All fail to run successfully.

After further investigation,I have found something in the device’s output log:

[2016.08.24-06.22.29:540][0]LogOutputDevice:Error: === Handled ensure: ===  
[2016.08.24-06.22.29:540][0]LogOutputDevice:Error:  
[2016.08.24-06.22.29:540][0]LogOutputDevice:Error: Ensure condition failed: MaterialInterfacesByLOD.Num() \> 0 [File:/Users/build/Build/++UE4+Release-4.13+Compile/Sync/Engine/Source/Runtime/Landscape/Private/LandscapeRender.cpp] [Line: 646]  
[2016.08.24-06.22.29:541][0]LogOutputDevice:Error:  
[2016.08.24-06.22.29:541][0]LogOutputDevice:Error: Stack:  
[2016.08.24-06.22.29:541][0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay\<1\>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int\*, physx::Gu::RTree::CallbackRaycast\*, physx::PxVec3 const\*, float) const Address = 0x27e6cc9 (filename not found) [in UE4Game]  
[2016.08.24-06.22.29:554][0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay\<1\>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int\*, physx::Gu::RTree::CallbackRaycast\*, physx::PxVec3 const\*, float) const Address = 0x2dce1d7 (filename not found) [in UE4Game]  
[2016.08.24-06.22.29:554][0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay\<1\>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int\*, physx::Gu::RTree::CallbackRaycast\*, physx::PxVec3 const\*, float) const Address = 0xdc3c49 (filename not found) [in UE4Game]  
[2016.08.24-06.22.29:555][0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay\<1\>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int\*, physx::Gu::RTree::CallbackRaycast\*, physx::PxVec3 const\*, float) const Address = 0x117be65 (filename not found) [in UE4Game]  
[2016.08.24-06.22.29:555][0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay\<1\>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int\*, physx::Gu::RTree::CallbackRaycast\*, physx::PxVec3 const\*, float) const Address = 0x192c43b (filename not found) [in UE4Game]  
[2016.08.24-06.22.29:555][0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay\<1\>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int\*, physx::Gu::RTree::CallbackRaycast\*, physx::PxVec3 const\*, float) const Address = 0x1818b35 (filename not found) [in UE4Game]  
[2016.08.24-06.22.29:555][0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay\<1\>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int\*, physx::Gu::RTree::CallbackRaycast\*, physx::PxVec3 const\*, float) const Address = 0xfdafb5 (filename not found) [in UE4Game]  
[2016.08.24-06.22.29:556][0]LogOutputDevice:Error: void physx::Gu::RTree::traverseRay\<1\>(physx::PxVec3 const&, physx::PxVec3 const&, unsigned int, unsigned int\*, physx::Gu::RTree::CallbackRaycast\*, physx::PxVec3 const\*, float) const Address = 0x4eef8d (filename not found) [in UE4Game]  
[2016.08.24-06.22.29:556][0]LogOutputDevice:Error: () Address = 0x23cd264d (filename not found) [in Foundation]  
[2016.08.24-06.22.29:557][0]LogOutputDevice:Error: \_pthread\_start() Address = 0x231d8bf3 (filename not found) [in libsystem\_pthread.dylib]  
[2016.08.24-06.22.29:557][0]LogOutputDevice:Error:

It seems that the main cause still has something to do with the landscape.And I’m sure my project can be successfully packaged and run with 4.10.

To reproduce this,simply create a new project, and then add a landscape to the scene,then package it for ios.When you run the project on iPhone,the game will crash finally.  
Please fix that!Thanks a lot!

---

<div class="post-metadata">

**Author:** ![JackP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JackP](https://forums.unrealengine.com/u/JackP)\
**Post date:** [August 24, 2016, 2:29pm UTC](https://forums.unrealengine.com/t/4-13-p3-bug-game-crashes-on-ios/368079/2 "2016-08-24T14:29:22Z")

</div>

Thanks, we also found this bug, tracked as UE-34874. It was fixed yesterday but too late for 4.13 Preview 3. It will be fixed in the final 4.13 release version, and also in Preview 4 if we do one.

- Jack

---

<div class="post-metadata">

**Author:** ![Spoondog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spoondog](https://forums.unrealengine.com/u/Spoondog)\
**Post date:** [December 13, 2016, 8:16am UTC](https://forums.unrealengine.com/t/4-13-p3-bug-game-crashes-on-ios/368079/3 "2016-12-13T08:16:33Z")

</div>

Hi Jack,

I am getting this physx crash on iOS in the 4.13 release version - was it meant to be fixed in that release?

I do not use any landscapes (barely any collision at all), and I only get this after playing through a level and then reloading a certain way. Here’s a pic showing the BP branch that appears to cause the crash and the one that doesn’t:

 ![118463-reloadcrash.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/d/a/4da7cd676c406ec1acf6c4ce0f97a12f872801ed.png)

Can you share any more info on what was causing that crash so I can have a fiddle to try and work around it? I’ll change a couple of things like the delay, and maybe skipping the session destroy because that’s only needed for the [already released] Steam version anyway (no multiplayer on iOS). Hopefully I’ll just get lucky - I do have the Github source (4.13 release) but have no real idea what I’m doing with code so I’d really like to avoid upgrading if possible.

Here is the [end of my log][2] (Packaged game, Shipping, iOS 10, iPhone 6S Plus):

---

<div class="post-metadata">

**Author:** ![Spoondog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spoondog](https://forums.unrealengine.com/u/Spoondog)\
**Post date:** [December 13, 2016, 10:00pm UTC](https://forums.unrealengine.com/t/4-13-p3-bug-game-crashes-on-ios/368079/4 "2016-12-13T22:00:04Z")

</div>

Just confirming: skipping the destroy session and the one-frame delay nodes (in the above pic) on iOS stopped it crashing for me.
