[T:Bug-Crash] App crashes only when remote debugging is enabled.
See original GitHub issueMy app crashes when it tries to open a realm while remote debugging is on.
Goals
Run app and create a realm while remote debugging is on.
Expected Results
App to run normally.
Actual Results
I get this error on the Chrome console:
Error DOMException: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://192.168.1.102:8083/create_realm'.
at makeRequest (blob:http://localhost:8081/d5d73e44-b03f-40ed-9fe8-a3471cc6bd04:108025:16)
at sendRequest (blob:http://localhost:8081/d5d73e44-b03f-40ed-9fe8-a3471cc6bd04:108070:22)
at Object.createRealm (blob:http://localhost:8081/d5d73e44-b03f-40ed-9fe8-a3471cc6bd04:107804:12)
at new Realm (blob:http://localhost:8081/d5d73e44-b03f-40ed-9fe8-a3471cc6bd04:106408:25)
at Function.open (blob:http://localhost:8081/d5d73e44-b03f-40ed-9fe8-a3471cc6bd04:106629:42)
at _callee$ (blob:http://localhost:8081/d5d73e44-b03f-40ed-9fe8-a3471cc6bd04:104660:64)
at tryCatch (blob:http://localhost:8081/d5d73e44-b03f-40ed-9fe8-a3471cc6bd04:41529:19)
at Generator.invoke [as _invoke] (blob:http://localhost:8081/d5d73e44-b03f-40ed-9fe8-a3471cc6bd04:41704:24)
at Generator.prototype.<computed> [as next] (blob:http://localhost:8081/d5d73e44-b03f-40ed-9fe8-a3471cc6bd04:41572:23)
at tryCatch (blob:http://localhost:8081/d5d73e44-b03f-40ed-9fe8-a3471cc6bd04:41529:19)
Steps to Reproduce
Enable remote debugger.
Version of Realm and Tooling
- Realm JS SDK Version: 2.28.0
- React Native: 0.59.4
- Client OS & Version: Windows 10 / Android 9
- Which debugger for React Native: Chrome Remote debugger
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:13 (2 by maintainers)
Top Results From Across the Web
App crashes after selecting 'Debug Remote JS' - Stack Overflow
Looking at stack traces, it seems like you're using Hermes Engine which is not compatible in some cases. Try to switch to JavaScriptCore...
Read more >Strange iOS Crash Only on iOS 13.X… - Apple Developer
The app is in production/testfilght and I have seen this crash in Xcode Organizer. ... they can install a configuration profile to enable...
Read more >VS crash when remote debugging and a breakpoint is hit
I deployed an app remotely and was debugging it from VS. I have breakpoints set, when breakpoint is hit, VS failed to show...
Read more >Crash when enabling remote debugging in jvm created using jni
JDK-4335526 : Crash when enabling remote debugging in jvm created using jni. Type: Bug; Component: hotspot; Sub-Component: svc; Affected Version: 1.3.0,1.4.
Read more >App Center Crashes for Android - Microsoft Learn
App Center Crashes provides you with an API to generate a test crash for easy testing of the SDK. This API can only...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

For anybody facing this issue, this was how I solve the problem.
react-native unlink realmreact-native link realmProblem solved
Not working in 2.29.1, App is going crash in debug mode.