-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Maximum call stack size exceeded on Chrome + Windows #299
Comments
I can confirm it. Clicking link not working. |
@systimotic do you get it on windows too? |
@Bouncey Absolutely. This is the issue we've been talking about on Gitter for a while, the one that I mentioned we should resolve before launching 😅 In development, it doesn't render at all because of this issue, and on build, it doesn't run any of the Javascript. This issue is specific to Chrome on Windows. |
I can confirm that also (Chrome version 61.0.3163.100 (Official Build) (64-bit)), but found that on SRWare Iron (Portable ver, Chrome based browser) with version 55.0.2900.1 the guide navigation works with the same extensions! |
@Bouncey I agree with @systimotic . The issue doesn't exist on Chrome's Android app and Firefox though |
@systimotic can you replace the render method of I cannot reproduce this issue render() {
const { expandedState, pages, parents } = this.props;
const panels = renderPanels(parents, pages.slice(0, Math.floor(pages.length / 2)));
return (
<div className='sideNav' id='side-nav'>
<PanelGroup>
{
(!parents || !expandedState) ?
<NavPanel title={'No Parents Here'}/> :
panels
}
</PanelGroup>
</div>
);
} |
Or anyone that is on windows, is experiencing this issue and is confident with react ☝️ |
@Bouncey I am experiencing this on Chrome in Linux (Ubuntu) |
Hmmmm could it be a memory thing? Could everyone please comment with your RAM size? Many thanks |
Using Windows 10. RAM size = 4GB |
On it. |
I have 8Gb on Windows 10. |
Oh, not a memory issue then 👍 |
anyone else getting a solid white screen when running locally ? |
I also got 8GB of memory on Win10 and I'm having the issue. |
@raisedadead you getting anywhere with this one ? I have looked through every peace of code and can't find the error. |
This may not be a codebase issue. Okay, so this works fine in Chrome Canary on Windows which is build 63.0.xxxx.x and is broken on Chrome Stable on Windows which is build 61.0.3163.100 I am doing a system update on a Windows machine, so I will get back with more details. This could be a corner case where we might have found a bug in Chrome that is breaking our render requirements (with such large data set). Other than that this does mean that it will be auto-fixed in Chrome's next updates. |
Other than that there is no issue on macOS/Windows or another browser Combination for that matter. I ran a memory profiling test on Chrome and we peak at about 40 MB which seems okay too. |
@raisedadead could we submit the bug here ? |
@m-henderson we could, I would personally wait for being sure that this is not a codebase issue. |
@raisedadead good idea. |
Hi everyone! I have a lot of info about this bug, and I think I found the cause:
First of all, here are my findings as to what the maximum call stack size is across browser (testing method from Axel Rauschmayer):
This seems to change with how much memory the tab is already consuming. As you can see, the limit in Chrome is quite a bit lower than in Firefox, which would explain why this ceiling is hit only in Chrome. I;d like to see what the results are on Mac/Chrome or Linux/Chrome. It seems Gatsby mounts every single article as its own component on page load. My suspicions were confirmed by running a test with the exact same code, but only the SummaryGatsby creates a component for every single article. Chrome on Windows can't handle this many components being mounted. Next stepsThis error did not exist in older version of Gatsby. My next step is going through older versions that I can get to run and not have this issue. This would be a quick fix. Once that is working, I'll go over to the Gatsby repo to see what can be done about this to fix the recent versions. Sorry for the gigantic and messy post, I had a lot of information I wanted to get out as soon as I could. |
@systimotic Brilliant thank you!!
|
Call stack size in chrome/ubuntu is 8983 |
@raisedadead I hadn't seen your comments yet when submitting mine. That's good news, but also really weird 😕 |
Older versions of Gatsby are showing this error on run (build and dev):
The latest version throws the by now well-known out-of-memory issue, and gets stuck on the GraphQL queries when I give it more memory. Edit: so close! I got past that issue, but now having more GraphQL issues. Edit of the edit: those new GraphQL issues are caused by the way I'm trying to get around the original issue. Suggestions are still welcome. |
I am currently refactoring |
@Bouncey Cool 👍 I'm not sure if it'll help though. If I completely remove the |
Oh... yes, I read this wrong
Although I don't understand how you had the nav the same but only had the bootstrap articles? |
have we looked at all of the recent merged pull request to see if something conflicted there ? When is the last time you guys remember it working on chrome ? |
@Bouncey That's understandable, I made quite a mess there 😅 |
@m-henderson The issue was first reported here on Gitter. We've had a similar issue before (gatsbyjs/gatsby#1979), but I believe I recall seeing that in Firefox as well, and @Bouncey had the issue there in Ubuntu/Chrome too. It doesn't show up in either of them anymore. We do have a report of someone who can reproduce this on Ubuntu still, but using an older version of Chrome. |
All I did was I have it running on 1.6.6 |
@Bouncey @systimotic Awesome! Thanks for pushing the hotfix. Have you reached out to the Gatsby team yet? Do you think this is something they can fix on their end? |
We reported it, but it hasn't gotten any attention yet. |
Just to further this Firefox Quantum has a frame limit of 5712 on Ubuntu Which make no sense. Chrome still refuses to render anything, but firefox doesn't even blink and carries on as expected |
Can someone check what is the actual call stack limit per browser tab while some other active tabs demand more run-time active handles/threads? Is it possible that freeCodeCamps engine stalls when more resource hungry tab(s) kicks in? |
When clicking links on the left column (sideNav), nothing happens on the page.
On the browser console there's a message about:
I would expect when clicking on, e.g.: "Agile", that the content of the page would change to show me some info about that topic.
I'm using the Chrome browser on windows.
The text was updated successfully, but these errors were encountered: