question

Paula LG avatar image
0 Likes"
Paula LG asked Sam Stubbs commented

A*Navigator stuck on calculating path

Hi,

I've recently noticed an unusual behavior while developing some models.

I have a certain amount of task executers (defined by a Delete and Copy Group Members parameter). When the simulation starts, I create a dummy transporter for each task executer and make them travel between 2 stations in a loop. These dummy transporters are added to a group called "Dummies", and every object that belongs to that group is destroyed On Model Reset.

There's a moment during the simulation where the model gets stuck. If we then start recording with the performance profiler, we can see that the A*Navigator is stuck trying to calculate a path. No error pops up, it just can't run any further.

I have developed a dummy model to replicate the issue I encountered: 24.1 Dummy AStarNavigator stuck.fsm

We have also tried to run it in 24.2 Beta and the exact same thing happened.

Thank you in advance!

FlexSim 24.1.1
bug reportastar navigator
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered Sam Stubbs commented

Deadlock management is a tricky issue to resolve in AStar. The problem is that you have groups of taskexecuters running between two locations back and forth in a straight line, and they are all crowding at those two locations. With that much overlapping traffic, and collision detection, it's no wonder there is deadlocking going on.

My recommendation is to use preferred paths to create in and out drop off and pick up routes around your queues (like you'd probably use in real life). It also helps to add your locations to the AStar navigator as well. Create a flow that helps space out and direct your travelers so they aren't all overlapping with each other.

Here's a version of your model using the preferred path method.

241-dummy-astarnavigator-stuck_2.fsm


· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Paula LG commented

I would try adding a deallocation time offset (e.g. 0.5 secs) which seems to resolve the issue.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.