-
Notifications
You must be signed in to change notification settings - Fork 682
React Native debugging - Maximum call stack size exceeded #900
Comments
I have the same problem too! |
same here |
I had this issue as well; I was using the latest node version (v7.1.0). |
I tried using node v6.9.1. I still see the problem. Doesn't atom have it own node installation? Do I need to change that to use 6.x? |
I'm having the same issue. I tried switching my node version to 6.4.0, but no luck because as @nanandn mentioned, atom and apm have their own node installations. @TLadd which node version did you change? If it's the version of atom, how did you do it?
|
I didn't do anything with atom's node version; I was referring to the node version used in my console to run
|
This didn't work for me, I was using node v4.5.0 before, and the same error occurs when i switch to v6.3.0. Could you confirm that the node version is indeed the issue? Thanks for your help |
Node v6.3.0 didn't fix the issue for me also. |
Same here |
+1 Same here |
I can agree, I have the same issue. First I thought it was something wrong with Node or something else. I have been using Visual Studio Code for a while, but I'm really eager to switch to Atom again. The app runs without any problems and debugging from VS Code works. I can start the app and edit it with Atom also. But when attaching Nuclide's debugger to the app it wait on connection, just as it should. The problem is when I enable Remote Debug from the iOS emulator. Then the app crashes and the error occurs. |
Same. Just getting into React Native. Was following what I thought was the preferred path for editing and was disappointed to find that I can't debug at all due to this issue. I get the getValue(), repeated stack trace like another issue here showed a screen shot of. |
+1 same here |
Hey all, we're aware of issues with debugging React Native. We're currently working on debugging using JSC (instead of Node) so we haven't prioritized fixing the node issues. We're hoping to roll that out within the next few releases (before the holidays). Sorry for the pain. @johnsonsu We actually are using the system node. You can change which node we use via the "Path to Node" setting in the Nuclide settings. You can try changing that to point to an older version. |
@matthewwithanm Which version should we be using? |
The same issue +1 |
same issue |
same here |
2 similar comments
same here |
same here |
same issue |
1 similar comment
same issue |
same issue +1 |
Same issue..... |
@matthewwithanm any update on this? |
so ... where do we go from here? |
same issue here. |
same issue. |
same here |
@johnislarry How to upgrade my RN from the master through the "react-native-git-upgrade" command? Or some other appropriate ways? |
@wellyshen If you're on Android, this guide seems helpful: https://facebook.github.io/react-native/docs/android-building-from-source.html If not, then you could try asking in the RN repo |
update your package.json and do a "npm install". |
The release candidate containing the fix is out, if somebody wants to confirm that this issue doesn't repro anymore. |
Sorry but bad news. It did not work for me. I hope it is only related with something I did wrong. The enviroment and the steps that I did are as follows: =================================================================== Using Mac OS - Sierra 10.12.3
=================================================================== |
I tried react-native 0.42.0-rc.1. I don't see the "Maximum call stack size exceeded " error. I am able to start the debugger and connect. I can stop at the breakpoints when the application loads. But after that my app does not work properly. The application renders. But I can't interact with it. The events are not fired. I have an 'onClick' event registered on one of the views. Those events are not fired. At this point all I can do is quit atom and restart. Just to confirm that there is nothing wrong with my app... I can debug using chrome developer tools and it works fine. Anand |
I used to see the error "Maximum call stack size exceeded " when I debug using intellij. With react-native 0.42.0-rc.1 I don't see that error anymore. |
With 0.42.0-rc.1, the problem is fixed for me. |
With 0.42.0-rc.1 the "Maximum call stack size exceeded " seem has been fixed, but I got another issue which is that the app is totally freeze when attach to debugger, not only Nuclide but also Chrome debugger as well. |
hello guys, i have downloaded the 0.42.0-rc.1 and did an npm install in the downloaded folder. update:
are these the right steps to take to install 0.42.0-rc.1 ? |
|
Hi all, Hmmm, well this is fun. Trying to follow the instructions on https://facebook.github.io/react-native/docs/upgrading.html. The
I'm an |
@vbence86 "react-native": "0.42.0-rc.1" |
Just wanted to leave a report: Environment RN: 0.42.0-rc.3 Status
|
For some reason I am not able to start debugger. After selection of "Debug JS Remotely" I see "Starting debugger" status only. Steps to Reproduce
Environment
├── atom-beautify@0.29.17 Status
Separate question was created: |
@valeriik Try starting the packager by checking the option in the "Start debugging" popup |
@valeriik did the iOS simulator open a Chrome window for debugging when you started it? If so this will block the port etc etc. You need close that window and try again... |
@johnsonsu thanks |
@valeriik given that you are not seeing the dreaded "Maximum call stack size exceeded" I suggest creating a new issue as yours is clearly unrelated. |
@nanandn if I'm not mistake this issue was a React Native issue (something to do with using a different JS engine) and should now be resolved. Is it working for you with the latest RN? |
@ajostergaard yes, I am using latest RN ver for now - v0.42.3 (as well as Nuclide v0.214.0 and Atom v1.15.0). I have created separate question regarding the issue with blank white screen using Nuclide debugger. Thanks to all for feedback. I also have a idea to change JS engine in Atom, but fail for now. Maybe someone know how todo it? (so as not to pollute comments on this thread please write your answer on the stackoverflow or on github). |
And who solved it!? |
Opened the old project for Android. I see the same error. Fixed in package.json |
This should be fixed with the new RN debugger. |
I'm using react-native 0.50.4 and I'm experiencing this issue. I happen to work across 2 different machines - both Macs, and I'm seeing the same "maximum stack size exceeded" error. That's what led me to this thread. I should also mention the following: I've tried the following:
Not sure where the issue is, or if it's a particular dependency that's the culprit, but here are the contents of my package.json: {
"name": "{deleted}",
"version": "{deleted}",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"postversion": "react-native-version",
"android": "react-native run-android",
"ios": "react-native run-ios"
},
"dependencies": {
"b64-to-blob": "^1.2.19",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"firebase": "^4.2.0",
"firebase-nest": "^0.7.1",
"google-libphonenumber": "^3.0.4",
"mobx": "^3.2.2",
"mobx-firebase-store": "^1.2.1",
"mobx-react": "^4.2.2",
"moment-timezone": "^0.5.13",
"prop-types": "^15.5.10",
"react": "16.0.0-alpha.12",
"react-native": "^0.50.4",
"react-native-camera": "^0.10.0",
"react-native-elements": "^0.15.0",
"react-native-fabric": "^0.5.0",
"react-native-fetch-blob": "^0.10.8",
"react-native-fs": "^2.5.1",
"react-native-google-places-autocomplete": "^1.2.12",
"react-native-google-sign-in": "^0.0.16",
"react-native-keychain": "^2.0.0-rc",
"react-native-loading-spinner-overlay": "^0.5.1",
"react-native-phone-input": "^0.1.8",
"react-native-swipeout": "^2.2.2",
"react-native-vector-icons": "^4.4.2",
"react-native-version": "^2.3.1",
"react-navigation": "^1.0.0-beta.11",
"react-redux": "^5.0.6",
"redux": "^3.7.2",
"validator": "^8.1.0"
},
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-react-native": "2.1.0",
"jest": "20.0.4",
"react-native-tesseract-ocr": "^1.0.8",
"react-test-renderer": "16.0.0-alpha.12"
},
"jest": {
"preset": "react-native"
}
} |
you are probably setting state on mount or update of component. |
Issue and Steps to Reproduce
Starting the debugger from nuclide and attaching to it results in "Maximum call stack size exceeded" error.
Versions
Additional Details
apm ls --installed
):├── atom-beautify@0.29.13
├── atom-formatter-jsbeautify@1.1.2
├── atom-material-ui@1.3.6
├── autoclose-html@0.23.0
├── git-plus@5.25.3
├── haskell-grammar@0.4.0
├── highlight-selected@0.11.2
├── language-babel@2.48.4
├── language-ini@1.16.0
├── language-ocaml@1.1.2
├── language-swift@0.5.0
├── language-thrift@1.0.2
├── merge-conflicts@1.4.4
├── nuclide@0.183.0
├── nuclide-format-js@0.0.36
├── sort-lines@0.14.0
└── tool-bar@1.0.1
The text was updated successfully, but these errors were encountered: