-
Notifications
You must be signed in to change notification settings - Fork 585
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
Chrome debugging fails in RN using Realm #505
Comments
This really looks to me like an issue you're having with React Native, not Realm. Were you able to get this working? |
Nope. I've not been using the chrome debugger since then. |
I believe I've ran into this before, but I'm still pretty sure it's not caused by Realm. I would try restarting closing the Chrome debugging tab, restarting the packager, and restarting the app. |
I restarted everything possible:
Nothing works. |
Would it be possible for you to share your app or an example app that reproduces the issue? You can send it to us privately at help@realm.io |
I just tried to reproduce it. The steps were pretty simple, so I don't think you really need a whole example app, but let me know if you do:
If I add the line The device has Android 5.0.2 and my example had these versions:
|
I could be that port forwarding isn't working. This is supposed to happen automatically but could happen if you have multiple devices. Can you try running these commands to see if they make a difference?
|
Weird news: This building's internet connection is broken, so I had to connect through an iPad hotspot. Now the debugger works both in the example app and in my original app. I'm going to investigate this further, when my internet connection is repaired (within the next 24h), but it seems to be an issue with my wlan infrastructure. I'm going to try your reverse/forward commands, too. |
Now, back in my home wlan, I get the same error as before. I tried your reverse/forward commands, too, but nothing changed. I have no clue what's causing this. There's nothing custom in my wlan configuration. |
I'm not convinced this issue is being caused by Realm. Do you have the same issues with projects not using Realm? |
No. The only time, this happens, is when I import realm in a file. See my reproduction steps. That was a clean simple reproduction. Before importing realm, the Chrome Debugger worked, but after importing it didn't work anymore. But as I said before, it works with an iPad hotspot (both the reproduction app and my original app) but not with my home wlan (with default settings). Let's use some high level logic here:
Based on this reasoning it seems that realm or my home wlan must be the cause of the issue. Having checked that I'm using default settings in my home wlan, and not having any unusual wlan problems in the last years, my bet is on realm. Would it make a difference for you if I'd reset my router setting to firmware config? I mean, if that was enough "proof" for you to investigate this, I'd do it, but if it wouldn't change your "investigation motivation", I'll skip that ;) |
Don't think resetting the firmware will make much of a difference. The realm debug server runs on the device on port 8082 so if this were for some reason being blocked on your configuration that might explain things? I would like to resolve this but have not yet been able to reproduce the issue. Do you have the same issue when running with genymotion or using android emulator rather than running on device? |
I tried it with an android emulator. I had to run |
I think we simply have issues with chrome debug mode when running on device. Hopefully you can debug your app using the emulator/genymotion until we are able to properly support this. In my experience genymotion is much faster/a better dev experience. |
same issue |
this might help |
I am closing the issue as we have in v10.x made many changes to our Chrome debugger support. |
When enabling Chrome Debugging in the React Native app running on a real device, the Chrome Debugging Tab opens and after some seconds, this error appears
The app keeps running on the device.
When trying to reload the app, it loads forever (the indicator keeps spinning):
Unlike #491 there are no
get_property
requests listed in dev tools:These errors began when I started to use Realm in my app. Everything works fine except for Chrome Debugging.
The text was updated successfully, but these errors were encountered: