FeatureSamples: Navigation sample on UWP throws exception.

This sample works with teleportation, but not with navigation. This sample for WinForms and WPF works fine.

When the endpoint is chosen by a mouse click, and then a press on the button 'Set', this line of code:

var result = navMesh.FindPath(jackNode.Position, endPos);

Throws this exception:

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Have tried running this on hololens and same exception happens in the same way. All else works.

The CrowdNavigation sample uses a bit different approach to navigation, which is more complex, but works.

Posts

  • utekaiutekai USMember ✭✭✭
    edited February 20

    The issue is known. It is caused by the UrhoSharp binding for UWP for FindPath.

    The start and end vectors are not defined as 'ref' in the wrapper code, and thus it fails.

    Here's the spot ... where the 'ref' is missing and it fails in UrhoSharp and UrhoSharp.SharpReality. So UWP fails, but winForms and WPF versions work.

Sign In or Register to comment.