Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App gets closed when Remote JS Debugging is enabled #13090

Closed
vldgeorgiev opened this issue Mar 22, 2017 · 3 comments
Closed

App gets closed when Remote JS Debugging is enabled #13090

vldgeorgiev opened this issue Mar 22, 2017 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@vldgeorgiev
Copy link

Description

When the JS Debugging is started from the Dev menu, the app on the mobile gets closed on its own after a while. It does not happen immediately, but after a minute or two, sometimes after 20-30 seconds.
It only happens if there is a debugger actually attached. If the option is enabled, but the debugger is closed immediately, the app runs as it should. E.g. if the Chrome window localhost:8081/debugger-ui is closed, or whatever other debugger is used.
It doesn't sound like a feature to me, so I suppose it is a bug somewhere. Maybe it is not in react-native itself, I'm not sure. But it definitely makes the logging and debugging much harder.
This happens on an Android 6.0 device connected by USB, not on an emulator.

Reproduction

  1. Create a new project with "react-native init ..."
  2. Run it with "react-native run-android"
  3. Open the Dev menu on the device and start the remote JS debugging.
  4. This will open Chrome to the debugger-ui page (or some other debugger). Don't close the page and wait for a few minutes. The app will close on the mobile on its own.

Additional Information

  • React Native version: 0.42
  • Platform: Android
  • Development Operating System: Windows 7
  • Dev tools: adb is v1.0.36, Android SDK platform-tools 25.0.3
@rodperottoni
Copy link

There's already an issue for this: #9665

@vldgeorgiev
Copy link
Author

Thanks. It is exactly the same behaviour. I read the comments, but unfortunately after 7 months the issue is still there and it is a major one.

@salvagit
Copy link

salvagit commented Apr 9, 2018

kill $(lsof -t -i:8081) works for me.

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants