-
Notifications
You must be signed in to change notification settings - Fork 48.3k
Getting maximum call stack exceeded on backend.js when rendering many elements. #16501
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Is kind of annoying having the
|
Thanks for the report. This looks like a bug and we’ll investigate it shortly.
This is how DevTools always worked, we don’t really have other options. I’m sorry it broke now, but it’s been a big rewrite, and things will take another week or two to fully stabilize. Sorry for the trouble. |
I think this PR fixes the extreme deep and wide tree cases: As a note, 15k divs is still not recommended 😄 |
Is there any updates on this thread? I'm facing the exact problem. And in my case, it's 20K table rows. Edit: I would like to lend a hand to close this issue. :) |
@MVMS1994 it was fixed at one point but I haven't opened up the app I built which has a lot of divs in a while. Maybe this is a regression? |
If there were an update, it would be on the the issue. I did a little investigation into this (via #16627) but it turned out to be pretty complicated to get right in all of the methods, and it hasn't been a priority yet. |
Just wanted to report the same issue using version 4.6.0.
|
Encountered this issue while using an SVG image with many paths (in my case the 4631 paths are rendered ok, but when I add one more I got the dev tools error).
I import the svg using: |
I think the same issue is happening to me:
I'm rendering (among other things) about 10k very small react elements function PlaceholderRow() {
return (
<tr className="candidate-row">
<td colSpan="10"></td>
</tr>
);
} React Developer Tools 4.10.1 (12/4/2020) |
Also getting this error rendering 2 complex SVG's on the page. Any advice in resolving would be appreciated. |
To be clear, the error is coming from React DevTools. While it's unfortunate and would be nice to fix, you can always disable the extension if it's interfering with your work. |
@gaearon absolutely understood. Got around this by rendering the SVG as an |
Hi @gaearon, I was able to reproduce this error when rendering a large datalist - 5000 options. I disabled the extension and am still seeing this error. It seems the error is happening during a hot reload but the exception is coming from react-dom_client.js. So it appears at least now this issue is no longer contained to just the dev tools. I created a reproduceable demo below. let me know if it is reproduceable for you. https://github.com/jasekiw/scheduleFibersWithFamiliesRecursivelyBug |
Details
Using version 4.0.2 (8/15/2019) I am getting a maximum call stack size exceeded when my app starts up. While my app using this is a little different I have replicated the issue using a fresh create-react-app. I will include the App.js code below.
Steps to reproduce
App.js
Call Stack
backend.js:formatted:2097 Uncaught RangeError: Maximum call stack size exceeded
This was not an issue in the previous version of react-devtools.
The text was updated successfully, but these errors were encountered: