question

Martin avatar image
0 Likes"
Martin asked Ben Wilson commented

Model eventually crashes and can't tell why

Hello,

I have a model which eventually crashes after running for a while, repeating the same process of unloading flow items from one location and loading them to another. It happens every time, but I don't know how to tell what the cause is. If I "fast forward", it crashes right away. It doesn't always crash at the same "virtual time" either. It also doesn't crash at the same event on the event list each time. It also seems if i run it at higher speeds, it crashes sooner (in virtual time).

Any suggestions on what it might be and in general what approaches can be taken to troubleshoot these types of issues? Crash logs or anything.

Thanks,

Martin


CQ 2.fsm

FlexSim 24.1.0
flexsim crashing
cq-2.fsm (1.9 MiB)
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

Paula LG avatar image
0 Likes"
Paula LG answered Ben Wilson commented

Hi Martin,

Your model crashes because a part of the "Find Slot" query is incorrect:

1717159130307.png

I'm guessing you meant to write $1.item.up instead. Changing that, the model runs correctly until the stop time you defined is reached.

I hope it helps!


1717159130307.png (38.4 KiB)
· 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.

Martin avatar image Martin commented ·
Thank you, Paula! That helped a lot. I find it still crashes if I continue past by stop time and have the model continue to process the rest of the schedule. How did you find the query error? Did you see it in a log or anything, or does it require looking over everything until you find something? I'm curious how the model ran at all with the error, why it only eventually crashed.
0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ Martin commented ·

https://answers.flexsim.com/answers/21145/view.html

That is an older post, but the basic debug process can still apply. It walks through a method of determining places in your model that are causing a crash.

1 Like 1 ·