cancel
Showing results for 
Search instead for 
Did you mean: 

RangeError: Maximum call stack size exceeded in alfresco

janaka1984
Star Contributor
Star Contributor

Hi,

 i have used alfresco community 201605 version and aikau 1.0.93.

when i use following widget to add title for my advance search,  it is unable to return search result. But this application is properly working on older version.

{
                     id: "HEADER_TITLE",
                     name: "alfresco/header/SetTitle",
                     config: {
                        title: msg.get("advanced-search.title")


                     }
                }

i can see 'RangeError: Maximum call stack size exceeded in alfresco' error on chrome and 'InternalError: too much recursion' in firefox.

here i have attached error on alfresco share debugger

please give me hint to avoid this issue?

Regards

janaka

1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator

The error in your screenshot does not match the messages you are reporting in your post. The issue that can be seen in the screenshot is a "known issue" for me. I assume you have been using the Alfresco script debugger (activatedvia /index) to debug a server-side JavaScript file. With certain versions of Alfresco this can cause an infinite amount of source lookups for the LESS engine (which is executed in the Rhino script engine) when the LESS engine happens to be called while you are debugging. The latter only occurs when you access an Aikau page that does not yet have its CSS resources processed or that had its cached resoruces cleared.

The only way around this problem is to try and avoid using the Alfresco script debugger in those situations. It helps to close it before loading a (new) Aikau page. In newer versions of Alfresco it is possible to use an external Node.js installation for LESS processing and this kind of error does not occur anymore in that case.