Browser is stuck and Memory keeps raising after typing in editor
See original GitHub issueProblem
set maxLines
as 1 or 2, with onLoad
set wrap mode as true at the same time, click before the last curly brace and type Enter button to make the editor formatting automatically, you will find the browser stuck and the memory raising.
Sample code to reproduce your issue
<AceEditor
mode="json" maxLines={2} value={"{\"a\":\"b\"}"}
onLoad={editor => editor.getSession().setUseWrapMode(true)}
/>
or visit the simple project react-ace-editor-issuse
References
Initial memory and CPU 10 sec after type Enter button
Progress on: # Win 10 / Chrome 58&IE 11/ React 15.6.1
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Fix memory problems - Microsoft Edge Development
Use Microsoft Edge DevTools to find memory issues that affect page performance, including memory leaks, memory bloat, and frequent garbage ...
Read more >Here are the ways to fix 'Google Chrome Is Out of Memory' error
1. Restart your device. 2. Update Google Chrome. 3. Clear the browser's cache.
Read more >Fix High RAM Memory Usage Issue on Windows 11/10 [10 ...
10 Fixes for High (RAM) Memory Usage Issue on Windows 11/10 · 1. Close Unnecessary Running Programs/Applications · 2. Disable Startup Programs ·...
Read more >How to fix out of memory errors by increasing available memory
Java applications like JIRA, Crowd and Confluence run in a "Java virtual machine" (JVM), instead of directly within an operating system. When ......
Read more >Chrome eats all available memory, causing the system to ...
I may be reproduce this in next way. I start browser with one tab opened only. Remember amount of ram (as A) taken...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i am using React v16.4, react-ace v6.1.2
create-react-app
maxLines
andwrapEnabled
and it will cause cpu and memory raising
@malavshah9 are you seeing this with the current version of react-ace? this used to happen with the older version, which was using the old version of ace, which had this bug, but it is fixed on ace version 1.4.12