Pricing Blog

Maximum call stack size exceeded - how to find the element?

  • needtheanswers-1403456533081227354

    needtheanswers

    4 months ago

    Hi,
    I’ve somehow managed to get the "Maximum call stack size exceeded" error again. Now I can’t find the element, formula, or variable that’s calling itself. What’s the best way to track it down? Can I find it in the console log? If yes, where exactly? Thanks a lot!
  • lucasg-1403456824346411028

    Lucas G

    4 months ago

    Console log won't work since the app can't load
  • You'll likely have to jsut work backwards to see where the bug was introduced
  • andreasmoller-1403456960996839444

    Andreas Møller

    4 months ago

    Use show hide on a section at a time
  • E.g. if the root element has 3 children then try hiding them one at a time until the error goes ways
  • Then repeat down the path where you see the error
  • We just talked about adding an achievement for getting that error
    😂2
  • 🤣
  • lucasg-1403457843411161248

    Lucas G

    4 months ago

    Wait but I haven't gotten that........I wouldn't have it..... 😭
  • needtheanswers-1403458028354928660

    needtheanswers

    4 months ago

    That’s NOT what I wanted to hear, lol. Too bad there isn’t a fast track. But hopefully I’ll learn my lesson and be more careful next time 🥲.Thank you both for your help!
  • andreasmoller-1403458157551943802

    Andreas Møller

    4 months ago

    Fast track is look at the last thing you added
  • lucasg-1403458341321052170

    Lucas G

    4 months ago

    I've seen this happen from external items (either libraries being loaded in or an API going rogue) or custom formulas/actions
  • I don't remember hearing about any other cases
  • needtheanswers-1403458541687410689

    needtheanswers

    4 months ago

    The thing is I was working on some other pages for days now and I don‘t know how long the error on this specific page has been there for.. this makes it even worse
  • andreasmoller-1403458543558070314

    Andreas Møller

    4 months ago

    Dont be careful next time. Debugging is where you learn.
  • andreasmoller-1403458639649570818

    Andreas Møller

    4 months ago

    Slow path it is 😀
  • needtheanswers-1403458677217689671

    needtheanswers

    4 months ago

    Hmm interesting
  • needtheanswers-1403458751079518389

    needtheanswers

    4 months ago

    That‘s true 😂👍
  • andreasmoller-1403458847183605952

    Andreas Møller

    4 months ago

    We get it all the time since almost everything in the editor is recursive
  • lucasg-1403459010400882779

    Lucas G

    4 months ago

    makes sense lol
  • 844842566401654815-@needtheanswers
    That‘s true 😂👍
    andreasmoller-1403459031036723230

    Andreas Møller

    4 months ago

    We were only half joking about the achievement. It is a milestone
  • We are getting very close to releasing the editor
  • Then you can see for yourself self
  • needtheanswers-1403459284699975740

    needtheanswers

    4 months ago

    Oh, it definitely is! Can‘t wait lol
  • lucasg-1403459355004764210

    Lucas G

    4 months ago

    no need, I've seen plenty just from the demos
  • just the tree alone is a nest of recursion
  • andreasmoller-1403459579848953986

    Andreas Møller

    4 months ago

    Yes. The formula editor is worse though