Closed anuragkr22 closed 8 months ago
With enough memory (and patience) you can see that parsing the key _START_CHARSHINT contains hundreds of thousands of characters and it's accessible in several places, so stringifying it produces a hundreds of Megs string.
The stringify happens in a generic component so it doesn't seems trivial a patch here, cause it can affect other parses.
Describe the bug After selecting 'Java' as the parser, clicking on the 'JSON' tab view tab freezes the page for 5-10 seconds. After this an error message occurs showing 'the page isn't responding'. If the page does respond, it again freezes frequently while doing so. Sometimes error occurs like 'This page is having a problem'.
To Reproduce Steps to reproduce the behavior:
Expected behavior The page should have worked normally without much interruptions and freezing.
Screenshots
Browser (please complete the following information):
astexplorer settings:
explorerSettingsV1
(code can be removed if you don't want it to be public) {showTransformPanel: false, parserSettings: {} parserPerCategory : {} parserSettings : {} showTransformPanel : false workbench : {parser: "java-parser",…} code :``` "package example; import java.util.ArrayList; import java.util.List; public class Example { private ArrayListAdditional context Add any other context about the problem here.