realm / realm-core

Core database component for the Realm Mobile Database SDKs

Home Page:https://realm.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception when running multiple sync tests with mixed collections

papafe opened this issue · comments

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

➤ PM Bot commented:

Jira ticket: RCORE-2108

Verified that the connected PR solves the issue