Domino & Notes error

Out of stack space

What it means

LotusScript ran out of stack memory, almost always because a sub or function keeps calling itself without stopping.

Common causes

  • Recursion with no exit condition, or an exit condition that is never met
  • Two procedures or events that keep calling each other
  • A field or form event that triggers itself, for example a QueryRecalc or PostRecalc loop

Quick fixes

  1. Check every recursive routine has a clear exit condition
  2. Add a depth counter to stop runaway recursion
  3. Replace deep recursion with a loop where possible
  4. Use the debugger's call stack to see which routines are looping

Need a hand with this?

Paste your exact message into What's That Error? for a plain-English explanation, or get in touch. I've been supporting Domino and Notes for 28 years.

Disclaimer

The errors, causes and fixes on this site are carefully researched, drawing on HCL documentation and 28 years of hands-on Domino and Notes experience. Every environment is different, though, and a solution that works in one may not be right for yours. Exact wording can also vary between Domino and Notes versions.

This information is general guidance only and is provided without warranty of any kind. Always back up your data and test changes on a non-production system first. To the extent permitted by law, Bruinsma Services Pty Ltd accepts no responsibility or liability for any loss, damage, downtime or other consequence arising from use of this information. For advice specific to your environment, please contact me.