# Running macro stops without any error message

**URL:** <https://root-forum.cern.ch/t/running-macro-stops-without-any-error-message/63360>\
**Category:** Newbie\
**Created:** [April 11, 2025, 6:13am UTC](https://root-forum.cern.ch/t/running-macro-stops-without-any-error-message/63360 "2025-04-11T06:13:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [April 11, 2025, 6:13am UTC](https://root-forum.cern.ch/t/running-macro-stops-without-any-error-message/63360/1 "2025-04-11T06:13:14Z")

</div>

Dear experts

I made a macro that when I run it ROOT will quit immediately without output any message, but I put a message output at the very start of my macro, why?

Here I attach my macro.  
[makeXTGraphs.cxx](https://root-forum.cern.ch/uploads/short-url/zrrJDeygQhtSrtnZ6R2W6pTNQ3c.cxx) (27.9 KB)

---

<div class="post-metadata">

**Author:** ![silverweed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/silverweed/32/36670_2.png) [@silverweed](https://root-forum.cern.ch/u/silverweed)\
**Post date:** [April 11, 2025, 7:12am UTC](https://root-forum.cern.ch/t/running-macro-stops-without-any-error-message/63360/2 "2025-04-11T07:12:21Z")

</div>

Hello @Crisps,  
I tried running your macro and it does emit the output for me.  
Which version of ROOT are you using, on which platform and how are you calling the macro?

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [April 11, 2025, 7:17am UTC](https://root-forum.cern.ch/t/running-macro-stops-without-any-error-message/63360/3 "2025-04-11T07:17:50Z")

</div>

`if(!f_ionization_std || f_ionization_std->IsZombie()) { // failed to open file`

`static bool boundaryMap[nShift][nx][ny] = {0}; // too big for the stack`

---

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [April 12, 2025, 4:15am UTC](https://root-forum.cern.ch/t/running-macro-stops-without-any-error-message/63360/4 "2025-04-12T04:15:15Z")

</div>

Oh, that’s something I missed…after I make the `static bool` variable smaller it worked. But why there was no error message, even one warning tell “stack overflow”?

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [April 12, 2025, 7:04am UTC](https://root-forum.cern.ch/t/running-macro-stops-without-any-error-message/63360/5 "2025-04-12T07:04:30Z")

</div>

You do not need to make the variable “smaller”. It is sufficient to make it “static”.

---

<div class="post-metadata">

**Author:** ![jonas](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jonas/32/24756_2.png) [@jonas](https://root-forum.cern.ch/u/jonas)\
**Post date:** [April 12, 2025, 7:39am UTC](https://root-forum.cern.ch/t/running-macro-stops-without-any-error-message/63360/6 "2025-04-12T07:39:59Z")

</div>

That’s just how it is on most systems, the stack size is limited be default and when ROOT reaches it it just stops.

If you want to make your code as it is, you can set the stack size to unlimited. Here is how to do this on Linux, for example:

```bash
ulimit -S -s unlimited

```
