# Xcos crashes - PID simulation

**URL:** <https://scilab.discourse.group/t/xcos-crashes-pid-simulation/681>\
**Category:** Xcos\
**Created:** [October 21, 2024, 10:38pm UTC](https://scilab.discourse.group/t/xcos-crashes-pid-simulation/681 "2024-10-21T22:38:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vitamin\_ballpen](https://avatars.discourse-cdn.com/v4/letter/v/94ad74/32.png) [@vitamin\_ballpen](https://scilab.discourse.group/u/vitamin_ballpen)\
**Post date:** [October 21, 2024, 10:38pm UTC](https://scilab.discourse.group/t/xcos-crashes-pid-simulation/681/1 "2024-10-21T22:38:35Z")

</div>

Hi,  
Just wondering if anyone would be able to give me some guidance on a control systems simulation I’m working on. I can’t attach files but here is a screenshot

 ![image](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/c37a09bc3eb71dce30443e26e7ce527b4c5add40.png)  
Initially it was all working on the first day, but over the next couple days, the software crashed spontaneously when I ran the simulation (e.g. working the night before, and crashes when I ran it in the morning without changing anything). The simulation has superblocks and masks and sometimes if I edit the masks, it would stop working, emphasis on sometimes… Or if I leave it for a few minutes and run it, it would also crash.  
I’m not sure if this is relevant, but the system error that occurs is apparently a 0x0000409 STATUS\_STACK\_BUFFER\_OVERRUN.  
Is this typical of xcos (I’m quite new to it) or what might be causing the crashes?  
Thanks in advance.

Edited:  
Thanks for the responses, here’s the file attached  
[test2.zcos](https://scilab.discourse.group/uploads/short-url/ug7TVsk5ODO2OMgRoQ4v7trnW68.zcos) (13.8 KB)

---

<div class="post-metadata">

**Author:** ![Vimsrocz](https://avatars.discourse-cdn.com/v4/letter/v/ed8c4c/32.png) [@Vimsrocz](https://scilab.discourse.group/u/Vimsrocz)\
**Post date:** [October 21, 2024, 10:43pm UTC](https://scilab.discourse.group/t/xcos-crashes-pid-simulation/681/2 "2024-10-21T22:43:24Z")

</div>

They still did not answer my XCOS issue as they are not good at XCOS as per my last 1 year of experience.

---

<div class="post-metadata">

**Author:** ![vitamin\_ballpen](https://avatars.discourse-cdn.com/v4/letter/v/94ad74/32.png) [@vitamin\_ballpen](https://scilab.discourse.group/u/vitamin_ballpen)\
**Post date:** [October 21, 2024, 11:36pm UTC](https://scilab.discourse.group/t/xcos-crashes-pid-simulation/681/3 "2024-10-21T23:36:20Z")

</div>

I see, thank you. The forum definitely isn’t very active.

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [October 22, 2024, 6:53am UTC](https://scilab.discourse.group/t/xcos-crashes-pid-simulation/681/4 "2024-10-22T06:53:28Z")

</div>

Hello, and welcome to Scilab’s Discourse !

Can you share your zcos file (you can edit your post and drag/drop the file, I have allowed you to do so) ?

S.

---

<div class="post-metadata">

**Author:** ![davidcl](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/davidcl/32/1029_2.png) [@davidcl](https://scilab.discourse.group/u/davidcl)\
**Post date:** [October 22, 2024, 1:57pm UTC](https://scilab.discourse.group/t/xcos-crashes-pid-simulation/681/5 "2024-10-22T13:57:23Z")

</div>

In all cases, Scilab / Xcos is not supposed to crash but is expected to report visible errors. Could you post your file ?
