question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ApplicationInsights crashes Node server with "RangeError: Maximum call stack size exceeded"

See original GitHub issue

Hello,

We’re seeing an issue where our Node server is crashing when we have AppInsights configured. When the server starts it can handle requests fine, but if we just let it run for about 30 minutes, it’ll crash and give us this error message:

D:\repos\DemoPartner\build\server.js:148960
                return value.apply(this, [error, structuredStackTrace]);
                             ^

RangeError: Maximum call stack size exceeded

The stack trace is pointing to what looks like zone.js code, which is a dependency from AppInsights. We confirmed that completely removing AppInsights fixes the problem.

I thought it might be related to #294, but we’re still seeing the issue after setting setAutoDependencyCorrelation(false) when configuring AppInsights.

Has anyone else seen this error, or have any suggestions?

Thanks, Matt Dyke

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:23 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
markwolffcommented, Feb 20, 2019

@christianrondeau Forgot to update this thread to mention that the stable version was published some time ago. Latest is now 1.2.0

1reaction
christianrondeaucommented, Jan 14, 2019

To answer your question @markwolff the error itself was mine and expected (it was an early GraphQL precompilation error in my code, which usually triggered the infinite loop), so unrelated to this issue. Thanks a lot for following up, I’ll use the beta until the official release it published!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Maximum call stack size exceeded error in nodejs
RangeError : Maximum call stack size exceeded. The error is generated by infinite loop somewhere in your app.
Read more >
Random crashes with "Maximum call stack size exceeded"
Go to the node-red folder and try the command npm ls graceful-fs This should show you a dependency tree. When you find out...
Read more >
Monitor your Node.js services and apps with Application Insights
Monitor performance and diagnose problems in Node.js services with Application Insights.
Read more >
JavaScript RangeError: Maximum Call Stack Size Exceeded
JavaScript RangeError: Maximum Call Stack Exceeded is thrown when there are too many function calls, or if a function is missing a base ......
Read more >
Playground error: Maximum call stack size exceeded - Bugs
errors.js:12 Uncaught Error: Maximum call stack size exceeded RangeError: Maximum call stack size exceeded at String.match (<anonymous>) at ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found