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.

forwardDebugPort does not work correctly if more than one device / emulator

See original GitHub issue
:realm:forwardDebugPort
error: more than one device/emulator
===========================================================================
WARNING: Failed to automatically forward port 8082.
In order to use Realm in Chrome debugging mode, port 8082 must be forwarded
from localhost to the device or emulator being used to run the application.
You may need to add the appropriate flags to the command that failed:
    adb forward tcp:8082 tcp:8082
===========================================================================

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alaziercommented, Apr 12, 2016

We should mention this in the docs.

0reactions
alaziercommented, Mar 31, 2016

Unlike other react-native modules Realm apis are synchronous and are built directly on top of the JS engine. We do this for good performance (we don’t have to copy data for every call) and api simplicity. This is why you are able to access object properties using normal property getters/setters rather than using async callbacks which we thought would be cumbersome and awkward.

To make chrome debugging work with this design we had to build an rpc server that allows us to synchronously forward all api calls so they are run on the device/emulator. This rpc server is what requires port forwarding and is only used when debugging in chrome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

adb -s 192.168.1.6:5555 ..... error: more than one device ...
I made two changes to the steps to get this working. 1) BEFORE disconnecting the wire from my phone, I ran adb reverse...
Read more >
How to fix adb: error - than one device/emulator - YouTube
When you are trying to get database file from sdcard to PC using adb pull /sdcard/Vocabsometimes this error message will occuradb: error: ...
Read more >
Super-fast alternative to emulator -> x86 Android - B4X
Android Tutorial Super-fast alternative to emulator -> x86 Android · 1. Install Virtual Box · 2. Download one of VM's (OVA files) from...
Read more >
Adb commands not working says something about error more ...
I dont get it I brought a new laptop today so I could remove the status bar from ... not working says something...
Read more >
VS Code "More than one device connected" - Google Groups
Can I delete the default emulator? If I run with 'flutter run -d deviceID' it will often crash completely and PC is unreachable...
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