NavMesh.SamplePosition on iOS results in app freezing

Use of Unity API NavMesh.SamplePosition on iOS results in the application hanging, but not crashing. While the API works as expected in the editor, on-device everything stops responding (it appears functionally similar to the timescale being set to 0).

Environment: iOS 7.1 and 6.0.1

NOTES:

  • Bug Report submitted via in-editor bug reporting tool.

Unity 4.6.1 + iOS 6/7/8 - SamplePosition hung on iOS device

100% everytime

pls, fix

Unity 5.2.2p3 + iOS 6/7/8 - SamplePosition always Crash on iOS device ! 100% every time !

got error message from XCode :

InvalidateNavMeshHit at NavMeshManager.cpp : 601

There is no problem running on Unity Editor or Android device , but iOS crash ( use IL2CPP )

our code is :

NavMesh.SamplePosition( vTargetPos, out navMeshHit, 1f, NavMesh.Allareas);

If we use NavMesh.GetAreaFromName(“Walkable”) instead of the NavMesh.AllAreas ,

it will crash on NavMesh.GetAreaFromName()