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.

[T:Bug-Crash] App crashes only when remote debugging is enabled.

See original GitHub issue

My 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
paschaldevcommented, Jun 27, 2019

For anybody facing this issue, this was how I solve the problem.

  1. Install this version: ^2.28.1
  2. Unlink realm: react-native unlink realm
  3. Link realm again: react-native link realm

Problem solved

0reactions
sahilpandyacommented, Sep 13, 2019

yes I can confirm it was fixed on 2.29.0

Not working in 2.29.1, App is going crash in debug mode.

Read more comments on GitHub >

github_iconTop 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 >

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