question

Ryusuke T avatar image
0 Likes"
Ryusuke T asked anthony.johnson commented

FlexSim freezes when Fast Forward is selected repeatedly

Open the attached data, play the simulation, select Fast Forward and then Stop. If select Fast Forward again, FlexSim freezes. Do you reproduce this phenomenon?

Do you know what the cause is?

Kiva.fsm

FlexSim 21.2.3
freezeflexsim 21.2.3fast-forward
kiva.fsm (201.6 KiB)
5 |100000

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

1 Answer

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered anthony.johnson commented

This model runs fine at low run speeds, but if you increase the run speed too much the view draws less frequently and then you randomly get the model freezing up. This seems to be an issue with the items not having the correct rotation or position when the item isn't drawn by the view before the Floor Storage's Slot Assignment Strategy is called for the item.

You can fix the issue in the model by opening the code of the Slot Assignment Strategy and adding an updatelocations() call for the item. This will make sure the item's location and rotation are correct before passing it into the slot.hasSpace() method.

1633388290947.png

See the attached model.

kiva_updateLocations.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.

Ryusuke T avatar image Ryusuke T commented ·

@Matthew Gillespie


Your advice has eliminated the problem.

Thank you very much.

0 Likes 0 ·
anthony.johnson avatar image anthony.johnson ♦♦ commented ·
Thanks Matthew for this solution, and sorry @Ryusuke T for this bad model.

Probably the better way, which I should have put into the original model, is to not call the slot.hasSpace() method, but to just say slot.slotItems.length == 0. Then you don't even have to update the item location.

0 Likes 0 ·