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

Jest test segfaults when closing Realm on Node 12 #4026

Closed
sync-by-unito bot opened this issue Oct 14, 2021 · 1 comment
Closed

Jest test segfaults when closing Realm on Node 12 #4026

sync-by-unito bot opened this issue Oct 14, 2021 · 1 comment

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Oct 14, 2021

Our Jest test segfaults when closing the Realm when running on Node 12 in certain conditions (specifically, it seems like a timing issue which can be triggered by running npm install before running the tests). This started happening since realm/realm-core#4892.

It seems that the Node environment is possibly being torn down before the Realm is fully closed. See referenced doc for investigation notes.

We have worked around this in #4025 by calling setTimeout with a timeout of 0 at the end of the test. We are assuming that this is an edge case caused by a very specific timing issue on a specific Node version (which will end LTS in May 2022), rather than a real issue in the code, but it may warrant further investigation if we see other possibly related issues.

@sync-by-unito
Copy link
Author

sync-by-unito bot commented Dec 17, 2021

➤ Andrew Meyer commented:

This has been fixed for a while.

@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

No branches or pull requests

0 participants