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

Realm accessed from incorrect thread. #4410

Closed
kneth opened this issue Mar 14, 2022 · 1 comment · Fixed by #4651
Closed

Realm accessed from incorrect thread. #4410

kneth opened this issue Mar 14, 2022 · 1 comment · Fixed by #4651
Assignees
Labels

Comments

@kneth
Copy link
Contributor

kneth commented Mar 14, 2022

How frequently does the bug occur?

All the time

Description

When using client reset with discard local, one callback fails.

Stacktrace & log output

libc++abi: terminating with uncaught exception of type Napi::Error: Realm accessed from incorrect thread.

Can you reproduce the bug?

Yes, always

Reproduction Steps

See #4361

Version

11.13.0

What SDK flavour are you using?

MongoDB Realm (i.e. Sync, auth, functions)

Are you using encryption?

No, not using encryption

Platform OS and version(s)

node.js

Build environment

Which debugger for React Native: ..

Cocoapods version

No response

@kneth kneth added the T-Bug label Mar 14, 2022
@kneth kneth mentioned this issue Mar 14, 2022
9 tasks
kneth added a commit to realm/realm-core that referenced this issue Jun 27, 2022
* Client reset: use ThreadSafeReference instead of SharedRealm (related to realm/realm-js#4410)
* Update C API
* Modify tests - object store and C API

Co-authored-by: Brian Munkholm <[email protected]>
@kneth
Copy link
Contributor Author

kneth commented Jun 27, 2022

Fix in core has been merged and we are waiting for a release

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

Successfully merging a pull request may close this issue.

1 participant