Too Much Recursion Or Maximum Call Stack Size Exceeded Error In Browser Web Console

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Creating a page in Confluence that contains a macro code block throws errors in the Browser console window. The error changes depending on the used browser.

Environment

  • Confluence 7.3.3

  • Chrome/Firefox

Diagnosis

The following error appears in the browser console when creating the page. The page freezes and the saving cannot proceed.

  • In Firefox: Uncaught InternalError: too much recursion

  • In Chrome: Uncaught RangeError: Maximum call stack size exceeded

Cause

Solution

  1. Enable the plugin safe mode in Confluence to confirm if the error message is fixed. If yes, you may need to enable the 3rd party plugins, one by one, and confirm which is the affected plugin.

  2. If running into the bug above, temporarily disable the Cache for Confluence and Refined Themes for Confluence apps to confirm if the functionality is restored.

⚠️Note that the safe mode can disrupt the Confluence instance if you use some 3rd party plugins such as 3rd party SSO and others. Always test first on a staging instance (Production clone) before doing the same step on Production for safety reasons.

Updated on April 15, 2025

Still need help?

The Atlassian Community is here for you.