react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Runtime is not ready for debugging!

Open ikhanhmai opened this issue 10 years ago • 82 comments

Chrome is openning and I still see this error.

  • Make sure Packager server is running.
  • Make sure Chrome is running and not pause... screen shot 2016-03-27 at 5 49 18 pm

ikhanhmai avatar Mar 27 '16 10:03 ikhanhmai

Having the same issue. Chrome debugger was stable but now causes my App to detonate.

Aristekrat avatar Mar 28 '16 02:03 Aristekrat

Having the same issue as well

bermanto avatar Mar 29 '16 00:03 bermanto

I restarted my mac and everything works fine again. Hope this help.

ikhanhmai avatar Mar 30 '16 04:03 ikhanhmai

I have this same issue (same line numbers and everything) and restarting doesn't fix it for me.

One strange thing that might provide a hint: When I click 'Debug in Chrome', it always launches two Chrome windows, with the second constantly stating 'Another debugger is already connected'. I still receive the above redbox error no matter if I close the second window or not.

It does seem to load the bundle from the packager, but for whatever reason claims the packager isnt running. This is what happens on Cmd+R:

[1:37:40 PM] <START> request:/index.ios.bundle?platform=ios&dev=true
[1:37:40 PM] <END>   request:/index.ios.bundle?platform=ios&dev=true (44ms)
[1:37:40 PM] <START> request:/index.ios.bundle?platform=ios&dev=true
[1:37:40 PM] <END>   request:/index.ios.bundle?platform=ios&dev=true (27ms)
[1:37:40 PM] <START> request:/index.ios.bundle?platform=ios&dev=true
[1:37:40 PM] <END>   request:/index.ios.bundle?platform=ios&dev=true (20ms)
[1:37:42 PM] <START> request:/index.ios.map?platform=ios&dev=true
[1:37:42 PM] <END>   request:/index.ios.map?platform=ios&dev=true (181ms)

If I dismiss the redbox, the app works and console.log's even reach the Chrome console.

joenoon avatar Mar 31 '16 20:03 joenoon

@joenoon Did you try command: "react-native run-ios" in Terminal of current project folder?

ikhanhmai avatar Apr 01 '16 10:04 ikhanhmai

@ikhanhmai I normally run it through Xcode, but tried that command and have the same experience. I've also been careful to nuke everything between runs, which doesn't help either: rm -rf node_modules/ && npm cache clear && npm install && watchman watch-del-all && rm -fr $TMPDIR/react-*. Still a mystery

joenoon avatar Apr 01 '16 15:04 joenoon

This issue happens to me when I am behind a proxy like Charles

ericraio avatar Apr 01 '16 23:04 ericraio

@ikhanhmai Restarting Chrome (!!!) solved it for me. I debugged the init process. It seems that there is a protection against multiple debugging sessions in the webSocket backend and something (wonder what, maybe a web-worker) connected as a debugger during application initialization and this prevented the real debugger to connect. Can't reproduce it atm.

flash42 avatar Apr 20 '16 21:04 flash42

This also happened to me when I had more than one debugger tab opened in chrome (by mistake).

shtefanntz avatar May 16 '16 09:05 shtefanntz

@joenoon i have the same issue with you, it always launches two Chrome windows.have you fixed it?

gupengno1 avatar May 17 '16 09:05 gupengno1

@gupengno1 I've been using the 0.26-stable branch and it works.

joenoon avatar May 17 '16 10:05 joenoon

@joenoon: what version of react were you using before using 0.26? Are you still using that now?

I've experienced the same behavior as yourself with the two chrome windows opening, do we have any ideas about that?

Thanks :).

joshjhargreaves avatar Jun 16 '16 15:06 joshjhargreaves

@jjhargreaves I'm still stuck on 0.26-stable for various reasons. I don't know anything about it other than it didn't work for me until 0.26, and I'm not sure about newer versions - hopefully this problem hasn't come back.

joenoon avatar Jun 16 '16 17:06 joenoon

I don't think that this issue should be closed.

joshjhargreaves avatar Jun 17 '16 08:06 joshjhargreaves

I am experiencing the same thing with 2 chrome debugger tabs opening on 0.24 version. Restarting Chrome doesn't help.

bitfused avatar Jun 22 '16 23:06 bitfused

Also experiencing the two chrome debugger tabs on 0.28 and restarting does not help.

aflanagan avatar Jul 01 '16 22:07 aflanagan

My react version: "react": "15.0.2", "react-native": "0.26.2",

When I reloadJS it will work for a moment and then it would show the error again. Restart does not help for me too.

Is the problem related to the version of react? For the folks who solved the problem which version are you guys using?


tried upgraded to the latest version of react(15.2.1)/react-native(0.29.0) and encountered another problem - native modules cannot be null...

longsangstan avatar Jul 12 '16 14:07 longsangstan

I'm getting this all the time. This is sooo annoying :(

I'm running it on a simulator (iPad2), this is the message I'm getting in the Chrome console:

WebSocket connection to 'ws://localhost:8081/debugger-proxy?role=debugger&name=Chrome' failed: Invalid frame header

pavlelekic avatar Jul 18 '16 08:07 pavlelekic

I am getting this too!

phongyewtong avatar Jul 20 '16 14:07 phongyewtong

I fixed this by first deleting the app in the simulator. Then wiped out my node_modules directory, then did a fresh npm install ... no issues after that.

fostertime avatar Jul 20 '16 23:07 fostertime