[4.13 p3 BUG]game crashes on ios

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!

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

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:

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):

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