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

Hangs when using Realm #3525

Closed
kneth opened this issue Jan 25, 2021 · 0 comments · Fixed by #3526
Closed

Hangs when using Realm #3525

kneth opened this issue Jan 25, 2021 · 0 comments · Fixed by #3526
Assignees

Comments

@kneth
Copy link
Contributor

kneth commented Jan 25, 2021

Goals

A node process should terminate once everything has been executed.

Expected Results

A clean exit.

Actual Results

The node process hangs.

Steps to Reproduce

Run the script below.

Code Sample

const Realm = require("realm");

let realm = new Realm( { schema: [
    {
        name: "Simple",
        properties: {
            v: "string",
        }
    }
]});
realm.write(() => {
    realm.create("Simple", { v: "Hello" });
});
realm.close();

Version of Realm and Tooling

  • Realm JS SDK Version: 10.1.3
  • Node or React Native: node
  • Client OS & Version: MacOS
  • Which debugger for React Native: None
RedBeard0531 added a commit that referenced this issue Jan 25, 2021
This means that it will be destroyed when the JSNetworkTransport object is
destroyed, rather than living forever in a static member.

Fixes #3525.
Refines change in #3505.
RedBeard0531 added a commit that referenced this issue Jan 27, 2021
This means that it will be destroyed when the JSNetworkTransport object is
destroyed, rather than living forever in a static member.

Fixes #3525.
Refines change in #3505.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants