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

Chrome Debugging not woring with realm #6302

Closed
vinaykumar0339 opened this issue Dec 5, 2023 · 6 comments
Closed

Chrome Debugging not woring with realm #6302

vinaykumar0339 opened this issue Dec 5, 2023 · 6 comments
Labels

Comments

@vinaykumar0339
Copy link

vinaykumar0339 commented Dec 5, 2023

How frequently does the bug occur?

Always

Description

I have upgraded my React native version from 0.67.4 to 0.71.14. but here I am facing an issue with the async await code where some places working and some places are not in staging builds, But it working fine in debug modes.
but no response.

so I thought to disable Hermes in my project.
but realm having an issue with if I enabled Chrome debugging realm throwing errors like below screenshot
simulatorUNITO-UNDERSCORE!screenshot!UNITO-UNDERSCORE!88F32B1B-5B49-4FE0-BED2-D9093619E73F!

can anyone help on this quickly?

"realm": "12.2.1",
"react-native": "0.71.14",

node version: 16.18.0

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

while upgrading to 0.71.14 from 0.67.4. build failing with realm so upgraded from 10.9.1 to 12.2.1.
disable hermes enable chrome debugging.

Version

12.2.1

What services are you using?

Local Database only

Are you using encryption?

No

Platform OS and version(s)

all versions

Build environment

Which debugger for React Native: ..
Chrome Debugger

Cocoapods version

1.12.0

@takameyer
Copy link
Contributor

@vinaykumar0339 The Chrome Debugger is not compatible with Realm. You can only use the Hermes debugger, or you can use Safari to debug without Hermes.

@vinaykumar0339
Copy link
Author

@takameyer thank you for your quick reply.

Do you have any idea about this Hermes staging builds issues facebook/react-native#41737
It would be more helpful to us if you have any idea on this 😊

@vinaykumar0339
Copy link
Author

@takameyer I did not enable the Chrome debugger. Opened Safari to debug without Hermes.
for the source map of the code I modified the Appdelegate.mm file below

  • (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
    {
    #if DEBUG
    NSURL *nsUrl = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios"];
    return [NSURL URLWithString:[[nsUrl absoluteString] stringByAppendingString:@"&inlineSourceMap=true"]];
    #else
    return [CodePush bundleURL];
    #endif
    }

but still same error coming.
Error: could not find the realm binary. as above image.

@kneth
Copy link
Contributor

kneth commented Dec 8, 2023

@vinaykumar0339 Can you provide a repro case for us?

@sync-by-unito sync-by-unito bot added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label Dec 8, 2023
@vinaykumar0339
Copy link
Author

@kneth thanks for your reply it shows an error when we select Automatically Show Web inspector for JSContext
if you open the debugger after app loads its working fine only.

@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Dec 11, 2023
@kneth
Copy link
Contributor

kneth commented Dec 21, 2023

@vinaykumar0339 Do you observe the same behavior with our template app?

@sync-by-unito sync-by-unito bot added Waiting-For-Reporter Waiting for more information from the reporter before we can proceed and removed Needs-Attention Reporter has responded. Review comment. labels Dec 21, 2023
@nirinchev nirinchev closed this as not planned Won't fix, can't repro, duplicate, stale Mar 20, 2024
@sync-by-unito sync-by-unito bot closed this as completed Mar 20, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants