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

libc++abi: terminating due to uncaught exception of type std::logic_error: Cannot set the logger factory after creating the sync client #8383

Closed
duncangroenewald opened this issue Oct 2, 2023 · 1 comment

Comments

@duncangroenewald
Copy link

duncangroenewald commented Oct 2, 2023

How frequently does the bug occur?

Always

Description

Initialising a Sync client on macOS Sonoma with RealmSwift v10.42.4.

Initial sync completes successfully but subsequently crashes.

libc++abi: terminating due to uncaught exception of type std::logic_error: Cannot set the logger factory after creating the sync client

Stacktrace & log output

N/A

Can you reproduce the bug?

Always

Reproduction Steps

Open synced realm asynchronously to initialise the new database .

This crash appears to occur after the new synced realm database has been synchronised locally.

Version

10.42.4

What Atlas Services are you using?

Atlas Device Sync

Are you using encryption?

No

Platform OS and version(s)

macOS Sonoma

Build environment

Xcode version: 15
Dependency manager and version: None - locally built Realm and RealmSwift

@duncangroenewald
Copy link
Author

My bad - creating the logger callback after opening the realm under some circumstances.

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

No branches or pull requests

1 participant