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

Exception when running multiple sync tests with mixed collections #7657

Closed
papafe opened this issue May 1, 2024 · 2 comments · Fixed by #7680
Closed

Exception when running multiple sync tests with mixed collections #7657

papafe opened this issue May 1, 2024 · 2 comments · Fixed by #7680
Assignees

Comments

@papafe
Copy link
Contributor

papafe commented May 1, 2024

I'm getting a crash with the following error message: libc++abi: terminating due to uncaught exception of type realm::KeyNotFound: No object with key '0' in 'class_MixedClass' when running multiple tests in the js repo about synced collections in mixed.

The tests are here: https://github.com/realm/realm-js/blob/6c51611bf1a677e2c352ea5404dda8c5094824c2/integration-tests/tests/src/tests/sync/mixed.ts#L408. Using this commit is the best way to reproduce the error, as running the tests with npm test --workspace @realm/node-tests will just run the tests in this suite.

Some additional notes:

  • The crash happens only when adding objects to the values that are added to the collections in mixed.
  • Each test run on its own succeeds, the crash happens only when running multiple tests together.
  • The crash does not happen always, just about 60% of the times.

Relative stack strace:
screenshot_2024-04-25_at_10 18 58_720

Origin of the crash:
screenshot_2024-04-25_at_10 54 16_720

@nicola-cab nicola-cab self-assigned this May 1, 2024
Copy link

sync-by-unito bot commented May 1, 2024

➤ PM Bot commented:

Jira ticket: RCORE-2108

@papafe
Copy link
Contributor Author

papafe commented May 8, 2024

Verified that the connected PR solves the issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 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