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.

JavascriptException: Maximum call stack size exceeded when running apk file

See original GitHub issue

Environment

OS: Windows 10
  Node: 8.4.0
  Yarn: 1.3.2
  npm: 5.5.1

Packages: (wanted => installed)
  react: 16.3.1 => 16.3.1
  react-native: 0.55.3 => 0.55.3

Steps to Reproduce

  • Create blank project using react-native init MyApp
  • Add babel-plugin-transform-class-properties (^6.24.1) and stage-0 Note that it works with the react-native and the es2015 presets
// babelrc
{
  "presets": ["stage-0", "react-native", "es2015"],
  "plugins": ["transform-class-properties"]
}
  • Build the app using gradlew assembleRelease

Do not cahnge any code, just build after adding the listed presets and plugins to the .babelrc and installing them via npm

Note that: Everything is working while debugging

When run:

Expected Behavior

I expect everything just to work!

Actual Behavior

The app is built successfully but when we install the app on whatever device we get The app stopped working. error. I researched it a bit and found this log in the logcat:

FATAL EXCEPTION: mqt_native_modules
   Process: com.PACKAGE, PID: 13125
   com.facebook.react.common.JavascriptException: Maximum call stack size exceeded., stack:
   <unknown>@11:410
   <unknown>@11:410

I searched a bit and find out these things (which may be helpful while resolving the issue):

Hopefully all listed information will be helpful.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
sebirdmancommented, Jul 4, 2018

I’m now seeing this issue in 0.56.0. I do have a lot of resolutions to fix the babel upgrade though…

Only happening with prod builds, --dev is fine.

2reactions
vidit-bhatiacommented, May 26, 2018

this is not possible to solve in the described way I removed all the @connect decorators still I am getting erros and I can not remove stage0 presets because react-navigation starts giving errors. So this is catch 22. Can someone please look into this problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Maximum call stack size exceeded error
It means that somewhere in your code, you are calling a function which in turn calls another function and so forth, until you...
Read more >
JavaScript RangeError: Maximum Call Stack Size Exceeded
The JavaScript RangeError: Maximum call stack size exceeded is an error that occurs when there are too many function calls, or if a...
Read more >
“maximum call stack size exceeded in javascript while npm ...
It is likely that a function with infinite loop is being called.
Read more >
JavaScript Error: Maximum Call Stack Size Exceeded
When a recursive function has all of the pieces it needs to run correctly, your code will end when it reaches the base...
Read more >
InternalError: too much recursion - JavaScript - MDN Web Docs
The JavaScript exception "too much recursion" or "Maximum call stack size exceeded" ... This recursive function runs 10 times, as per the exit...
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