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

App freezes after refreshing the Chrome debugger while using hot reload on Android

Open ThaJay opened this issue 10 years ago • 3 comments

steps to reproduce:

  • android avd and start the emulator (I'm using API 23)
  • start the app in the emulator and react-native start
  • enable both hot reloading and chrome debugger
  • use the app
    • I'm logging my redux actions at the moment so the debugger fills up quickly
  • refresh chrome to clean up the console
    • without hot reload the app asks me if I want to reload the js (thanks)
  • emulator freezes until it shows the 'app not responding' dialog.
$ react-native -v
react-native-cli: 0.2.0
react-native: 0.24.1

Ubuntu 15.10

To be able to refresh chrome without hangups:

  • get error with 'pause on caught exceptions' enabled
  • disable the option and press play in Chrome, chrome will lose its debugger session
  • refresh
  • reload js and enable 'pause on caught exceptions' again

Chrome reconnects if I do it this way and no freezing.

ThaJay avatar Apr 29 '16 10:04 ThaJay

I'm having the same issue. Couldn't find a fix so I'm using the adb logcat method to debug my apps.

bzlies avatar May 07 '16 06:05 bzlies

I can't reproduce and this is old so I'm going to close this issue. Feel free to open a new one if someone can reproduce an error here with current RN.

lacker avatar Oct 24 '16 20:10 lacker

Chrome has this nice button to clear the logs and even better, react-native now clears the log on each reload. So it's stale indeed.

ThaJay avatar Oct 26 '16 12:10 ThaJay