[ui] resource-tree on large apps causes RangeError: Maximum call stack size exceeded
#18228
Open
3 tasks done
Labels
bug
Something isn't working
Checklist:
argocd version
.Describe the bug
When viewing an application that has a large number of annotations or resources, the UI crashes view this app in resource-tree. when viewing the app in Network or resource list view, I can see the application without the UI crashing
To Reproduce
Im running a storage provisioner that adds multiple PVCs to a stateful set, and in turn adds multiple annotations to each PVC.
Expected behavior
UI should be able to render application in resource-tree with throwing the stack size exception
Screenshots
Version
Logs
argocd-server logs dont show any errors:
Browser console:
** From degbugging in browser/console logs
The error "RangeError: Maximum call stack size exceeded" indicates that the code is recursively calling itself, resulting in an infinite loop. This is likely caused by a circular reference or an infinite loop in the code.
In this case, the error is occurring in the ss function, which is called recursively due to the switch statement. The switch statement is missing a break statement after each case, causing the function to continue executing the following cases even after a match is found.
To fix this issue, you should add break statements after each case in the switch statement. This will ensure that the function exits after handling the appropriate case and prevent the recursive loop.
The text was updated successfully, but these errors were encountered: