PathFinding service leaks memory until it crashes the server

Reproduction Steps

1. Use PathFinding on the server a lot to generate paths in a large place with complex geometry from different positions

Expected Behavior

Navigation memory to go down at some point

Actual Behavior

Navigation memory just keep increasing until the server crashes, does not seem to be any cleanup of the Navigation memory.

Workaround

Don’t use PathFinding service

Issue Area: Engine
Issue Type: Crashing
Impact: High
Frequency: Constantly
Date Last Experienced: 2022-11-09 00:11:00 (+01:00)

Edit: We have also tested to manually run :Destroy() on the old Path instance when we compute a new path. But the nav mesh memory still keeps rising.

12 Likes

Thanks for the report. Do you happen to have a repro file?

Also, are you connecting to the Blocked or Unblocked events?

2 Likes

No reproduction file I am afraid, we are experiencing it in a quite large project that we are unable to share.

1 Like

This has been happening to my game as well for the past year. Navigation memory steadily rises until the server crashes

2 Likes

I’ve even broke the developer console by testing the issue

After some testing this issue is now fixed

2 Likes