Closed binhtran93 closed 5 months ago
➤ PM Bot commented:
Jira ticket: RDART-1056
Can you share trace level logs from this sequence of events?
Hello @nirinchev This might be a dump question, but what should I do to enable and see the trace logs? Look a the document, I did the following line of code Realm.logger.setLogLevel(LogLevel.all); but still not see any extra logs
Here's the docs for this: https://www.mongodb.com/docs/atlas/device-sdks/sdk/flutter/logging/
The documentation for logs need an update 😄 BTW, here is the logs
I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 35603 Thread 126018660109552: Query count: '(endDate >= "2024-06-20" or endDate == NULL) and frequencyType != NULL and startDate <= "2024-06-20"', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 35603 Thread 126018660109552: Query matches: 0, Duration: 29 us) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 35603 Thread 126018660109552: Query find all: '(endDate >= "2024-06-20" or endDate == NULL) and frequencyType != NULL and startDate <= "2024-06-20"', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 35603 Thread 126018660109552: Query found: 0, Duration: 103 us) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 35603 Thread 126018660109552: Query count: 'date == "2024-06-20"', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 35603 Thread 126018660109552: Query matches: 1, Duration: 10 us) D/EGL_emulation(18441): app_time_stats: avg=38.29ms min=11.20ms max=384.21ms count=29 I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 35603 Thread 126018660109552: Query find all: 'date == "2024-06-20"', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 35603 Thread 126018660109552: Query found: 1, Duration: 219 us) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 35603 Thread 126018660109552: Query count: '_id == {}', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 35603 Thread 126018660109552: Query matches: 0, Duration: 107 us) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 35603 Thread 126018660109552: Query find all: '_id == {}', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 35603 Thread 126018660109552: Query found: 0, Duration: 18 us) W/System (18441): Ignoring header X-Firebase-Locale because its value was null. D/FirebaseAuth(18441): Notifying id token listeners about user ( qLPEL4ucHJhejdP6R9xqHbF8dqL2 ). D/FirebaseAuth(18441): Notifying auth state listeners about user ( qLPEL4ucHJhejdP6R9xqHbF8dqL2 ). I/flutter (18441): (category: Realm.App, level: LogLevel.debug, message: App: log_in_with_credentials: app_id: daychecksync-twpbome) I/flutter (18441): (category: Realm.App, level: LogLevel.debug, message: App: version info: platform: Android version: UE1A.230829.036.A1 - sdk: Dart - sdk version: 3.0.0 - core version: 14.9.0) I/flutter (18441): (category: Realm.App, level: LogLevel.debug, message: App: do_request: POST https://ap-southeast-1.aws.services.cloud.mongodb.com/api/client/v2.0/app/daychecksync-twpbome/auth/providers/custom-token/login) I/flutter (18441): (category: Realm.SDK, level: LogLevel.debug, message: HTTP Transport: Executing post https://ap-southeast-1.aws.services.cloud.mongodb.com/api/client/v2.0/app/daychecksync-twpbome/auth/providers/custom-token/login) I/flutter (18441): (category: Realm.SDK, level: LogLevel.debug, message: HTTP Transport: Executed post https://ap-southeast-1.aws.services.cloud.mongodb.com/api/client/v2.0/app/daychecksync-twpbome/auth/providers/custom-token/login: 200 in 110 ms) I/flutter (18441): (category: Realm.Storage, level: LogLevel.detail, message: DB: 39105 Thread 126018660109552: Open file: /data/data/com.tdbinh93.daily_planner/files/mongodb-realm/daychecksync-twpbome/server-utility/metadata/sync_metadata.realm) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Number of participants: 1) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Durability: Full) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: EncryptionKey: no) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: File size: 16384) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: User data size: 3648) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Free space size: 12672) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: History size: 64) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Start read 20591: 366 ref 4432) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: End transaction 20591) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Start read 20591: 366 ref 4432) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: End transaction 20591) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Start read 10741: 366 ref 4432) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126020586753264: acquire writemutex) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126020586753264: writemutex acquired) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Tr 10741: Acquired write lock in 621 us) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Tr 10741: Already on version: 366) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Tr 10741: Promote to write: 366 -> 366) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Query find first: 'identity == "66706c37bed5a1ff2f5e29ab"') I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Query first found: ObjKey(1), Duration: 19 us) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Mutating anonymous object 'UserMetadata'[ObjKey(1)]) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Set 'state' to 1) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Set 'refresh_token' to "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiYWFzX2RhdGEiOm51bGwsImJhYXNfZGV2aWNlX2l ...") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Set 'access_token' to "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiYWFzX2RldmljZV9pZCI6IjY2NzQ0OWNiNTBhNjJ ...") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Set 'device_id' to "667449cb50a62b0223c4c870") I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Initiate commit version: 367) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Commit of size 2664 done in 7061 us ref 7400) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126020586753264: writemutex released) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: End transaction 10741) I/flutter (18441): (category: Realm.Storage, level: LogLevel.detail, message: DB: 39105 Thread 126018660109552: DB closed) I/flutter (18441): (category: Realm.Storage, level: LogLevel.detail, message: DB: 39105 Thread 126018660109552: Open file: /data/data/com.tdbinh93.daily_planner/files/mongodb-realm/daychecksync-twpbome/server-utility/metadata/sync_metadata.realm) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Number of participants: 1) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Durability: Full) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: EncryptionKey: no) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: File size: 16384) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: User data size: 5064) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Free space size: 11264) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: History size: 56) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Start read 10741: 367 ref 7400) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: End transaction 10741) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Start read 10741: 367 ref 7400) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: End transaction 10741) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Start read 20691: 367 ref 7400) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Query find first: 'identity == "66706c37bed5a1ff2f5e29ab"') I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Query first found: ObjKey(1), Duration: 91 us) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: End transaction 20691) I/flutter (18441): (category: Realm.Storage, level: LogLevel.detail, message: DB: 39105 Thread 126018660109552: DB closed) I/flutter (18441): (category: Realm.Storage, level: LogLevel.detail, message: DB: 39105 Thread 126018660109552: Open file: /data/data/com.tdbinh93.daily_planner/files/mongodb-realm/daychecksync-twpbome/server-utility/metadata/sync_metadata.realm) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Number of participants: 1) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Durability: Full) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: EncryptionKey: no) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: File size: 16384) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: User data size: 5064) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Free space size: 11264) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: History size: 56) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Start read 20691: 367 ref 7400) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: End transaction 20691) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Start read 20691: 367 ref 7400) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: End transaction 20691) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Start read 10741: 367 ref 7400) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126020586753264: acquire writemutex) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126020586753264: writemutex acquired) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Tr 10741: Acquired write lock in 476 us) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Tr 10741: Already on version: 367) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Tr 10741: Promote to write: 367 -> 367) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Mutating anonymous object 'current_user_identity'[ObjKey(0)]) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: Set 'current_user_identity' to "66706c37bed5a1ff2f5e29ab") I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Initiate commit version: 368) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.debug, message: DB: 39105 Thread 126018660109552: Commit of size 784 done in 8283 us ref 7600) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126020586753264: writemutex released) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 39105 Thread 126018660109552: End transaction 10741) I/flutter (18441): (category: Realm.Storage, level: LogLevel.detail, message: DB: 39105 Thread 126018660109552: DB closed) I/flutter (18441): (category: Realm.App, level: LogLevel.debug, message: App: do_request: GET https://ap-southeast-1.aws.services.cloud.mongodb.com/api/client/v2.0/auth/profile) I/flutter (18441): (category: Realm.SDK, level: LogLevel.debug, message: HTTP Transport: Executing get https://ap-southeast-1.aws.services.cloud.mongodb.com/api/client/v2.0/auth/profile) I/flutter (18441): (category: Realm.SDK, level: LogLevel.debug, message: HTTP Transport: Executed get https://ap-southeast-1.aws.services.cloud.mongodb.com/api/client/v2.0/auth/profile: 200 in 112 ms) I/flutter (18441): (category: Realm.Storage, level: LogLevel.detail, message: DB: 33852 Thread 126018660109552: Open file: /data/data/com.tdbinh93.daily_planner/files/mongodb-realm/daychecksync-twpbome/server-utility/metadata/sync_metadata.realm) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Number of participants: 1) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Durability: Full) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: EncryptionKey: no) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: File size: 16384) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: User data size: 5064) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Free space size: 11280) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: History size: 40) D/EGL_emulation(18441): app_time_stats: avg=37.27ms min=13.57ms max=134.45ms count=26 I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Start read 20391: 368 ref 7600) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: End transaction 20391) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Start read 20391: 368 ref 7600) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: End transaction 20391) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Start read 16741: 368 ref 7600) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Query find first: 'identity == "66706c37bed5a1ff2f5e29ab"') I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Query first found: ObjKey(1), Duration: 52 us) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: End transaction 16741) I/flutter (18441): (category: Realm.Storage, level: LogLevel.detail, message: DB: 33852 Thread 126018660109552: DB closed) I/flutter (18441): (category: Realm.Storage, level: LogLevel.detail, message: DB: 33852 Thread 126018660109552: Open file: /data/data/com.tdbinh93.daily_planner/files/mongodb-realm/daychecksync-twpbome/server-utility/metadata/sync_metadata.realm) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Number of participants: 1) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Durability: Full) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: EncryptionKey: no) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: File size: 16384) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: User data size: 5064) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Free space size: 11280) I/flutter (18441): (category: Realm.Storage, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: History size: 40) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Start read 16741: 368 ref 7600) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: End transaction 16741) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Start read 16741: 368 ref 7600) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: End transaction 16741) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Start read 20391: 368 ref 7600) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126020586753264: acquire writemutex) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126020586753264: writemutex acquired) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Tr 20391: Acquired write lock in 708 us) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Tr 20391: Already on version: 368) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Tr 20391: Promote to write: 368 -> 368) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Query find first: 'identity == "66706c37bed5a1ff2f5e29ab"') I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Query first found: ObjKey(1), Duration: 80 us) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Mutating anonymous object 'UserMetadata'[ObjKey(1)]) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Set 'state' to 1) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Set 'refresh_token' to "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiYWFzX2RhdGEiOm51bGwsImJhYXNfZGV2aWNlX2l ...") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Set 'access_token' to "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiYWFzX2RldmljZV9pZCI6IjY2NzQ0OWNiNTBhNjJ ...") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Set 'device_id' to "667449cb50a62b0223c4c870") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Set 'profile_data' to "{"userId":"qLPEL4ucHJhejdP6R9xqHbF8dqL2","emailVerified":true,"email":"tdbinh93@ ...") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Clear '['identities']') I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Remove embedded object 'UserIdentity') I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Mutating anonymous object 'UserMetadata'[ObjKey(1)]) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Insert embedded object 'UserIdentity' in ['identities'] at position 0 ) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Mutating object 'UserIdentity' with path 'UserMetadata[ObjKey(1)]['identities'][FIRST]') I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Set 'id' to "qLPEL4ucHJhejdP6R9xqHbF8dqL2") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: Set 'provider_type' to "custom-token") I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Initiate commit version: 369) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.debug, message: DB: 33852 Thread 126018660109552: Commit of size 1760 done in 4669 us ref 7824) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126020586753264: writemutex released) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 33852 Thread 126018660109552: End transaction 20391) I/flutter (18441): (category: Realm.Storage, level: LogLevel.detail, message: DB: 33852 Thread 126018660109552: DB closed) I/flutter (18441): Starting open a synced realm I/flutter (18441): Starting wait for synchronization I/flutter (18441): subscription state SubscriptionSetState.pending I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Start read 19691: 884 ref 36336) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: End transaction 19691) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Start read 19691: 884 ref 36336) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: End transaction 19691) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Start read 19691: 884 ref 36336) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Start read 21141: 884 ref 36336) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query find all: '(state == 3 or state == 6)', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query found: 1, Duration: 53 us) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query find all: 'state == 6', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query found: 0, Duration: 10 us) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: End transaction 21141) I/flutter (18441): 1.0 I/flutter (18441): ConnectivityResult.wifi I/flutter (18441): We have internet back, lets reconnect I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Start frozen 11991: 884 ref 36336) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query find all: '(state == 3 or state == 6)', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query found: 1, Duration: 102 us) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: End transaction 11991) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: acquire writemutex) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: writemutex acquired) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Start write 11991: 884 ref 36336) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Create object 'flx_subscription_sets' with primary key 146) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query count: 'ownerId == "66706c37bed5a1ff2f5e29ab"', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query matches: 0, Duration: 11 us) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query count: 'ownerId == "66706c37bed5a1ff2f5e29ab"', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query matches: 0, Duration: 15 us) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query count: 'ownerId == "66706c37bed5a1ff2f5e29ab"', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query matches: 0, Duration: 10 us) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query count: 'ownerId == "66706c37bed5a1ff2f5e29ab"', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query matches: 0, Duration: 9 us) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query count: 'ownerId == "66706c37bed5a1ff2f5e29ab"', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query matches: 0, Duration: 9 us) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query count: 'ownerId == "66706c37bed5a1ff2f5e29ab"', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query matches: 0, Duration: 8 us) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query count: 'ownerId == "66706c37bed5a1ff2f5e29ab"', limit = -1) I/flutter (18441): (category: Realm.Storage.Query, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Query matches: 0, Duration: 51 us) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Mutating object 'flx_subscription_sets' with primary key 146) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'snapshot_version' to 884) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Insert embedded object 'flx_subscriptions' in ['subscriptions'] at position 0 ) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Mutating object 'flx_subscriptions' with path 'flx_subscription_sets[146]['subscriptions'][FIRST]') I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'id' to oid(667449cbf1088a04a40b982a)) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'created_at' to 2024-06-20 15:24:59.028539000) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'updated_at' to 2024-06-20 15:24:59.028539000) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'object_class' to "RealmConfig") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'query' to "ownerId == "66706c37bed5a1ff2f5e29ab" ") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Mutating object 'flx_subscription_sets' with primary key 146) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Insert embedded object 'flx_subscriptions' in ['subscriptions'] at position 1 ) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Mutating object 'flx_subscriptions' with path 'flx_subscription_sets[146]['subscriptions'][1]') I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'id' to oid(667449cbf1088a04a40b982b)) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'created_at' to 2024-06-20 15:24:59.028930000) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'updated_at' to 2024-06-20 15:24:59.028930000) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'object_class' to "RealmNote") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'query' to "ownerId == "66706c37bed5a1ff2f5e29ab" ") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Mutating object 'flx_subscription_sets' with primary key 146) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Insert embedded object 'flx_subscriptions' in ['subscriptions'] at position 2 ) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Mutating object 'flx_subscriptions' with path 'flx_subscription_sets[146]['subscriptions'][2]') I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'id' to oid(667449cbf1088a04a40b982c)) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'created_at' to 2024-06-20 15:24:59.029210000) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'updated_at' to 2024-06-20 15:24:59.029210000) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'object_class' to "RealmPage") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'query' to "ownerId == "66706c37bed5a1ff2f5e29ab" ") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Mutating object 'flx_subscription_sets' with primary key 146) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Insert embedded object 'flx_subscriptions' in ['subscriptions'] at position 3 ) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Mutating object 'flx_subscriptions' with path 'flx_subscription_sets[146]['subscriptions'][3]') I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'id' to oid(667449cbf1088a04a40b982d)) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'created_at' to 2024-06-20 15:24:59.029443000) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'updated_at' to 2024-06-20 15:24:59.029443000) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'object_class' to "RealmTaskLine") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'query' to "ownerId == "66706c37bed5a1ff2f5e29ab" ") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Mutating object 'flx_subscription_sets' with primary key 146) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Insert embedded object 'flx_subscriptions' in ['subscriptions'] at position 4 ) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Mutating object 'flx_subscriptions' with path 'flx_subscription_sets[146]['subscriptions'][4]') I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'id' to oid(667449cbf1088a04a40b982e)) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'created_at' to 2024-06-20 15:24:59.029975000) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'updated_at' to 2024-06-20 15:24:59.029975000) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'object_class' to "RealmReminder") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'query' to "ownerId == "66706c37bed5a1ff2f5e29ab" ") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Mutating object 'flx_subscription_sets' with primary key 146) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Insert embedded object 'flx_subscriptions' in ['subscriptions'] at position 5 ) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Mutating object 'flx_subscriptions' with path 'flx_subscription_sets[146]['subscriptions'][5]') I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'id' to oid(667449cbf1088a04a40b982f)) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'created_at' to 2024-06-20 15:24:59.030410000) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'updated_at' to 2024-06-20 15:24:59.030410000) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'object_class' to "RealmSticker") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'query' to "ownerId == "66706c37bed5a1ff2f5e29ab" ") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Mutating object 'flx_subscription_sets' with primary key 146) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Insert embedded object 'flx_subscriptions' in ['subscriptions'] at position 6 ) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Mutating object 'flx_subscriptions' with path 'flx_subscription_sets[146]['subscriptions'][6]') I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'id' to oid(667449cbf1088a04a40b9830)) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'created_at' to 2024-06-20 15:24:59.030681000) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'updated_at' to 2024-06-20 15:24:59.030681000) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'object_class' to "RealmTask") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'query' to "ownerId == "66706c37bed5a1ff2f5e29ab" ") I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Mutating object 'flx_subscription_sets' with primary key 146) I/flutter (18441): (category: Realm.Storage.Object, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Set 'state' to 1) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Initiate commit version: 885) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.debug, message: DB: 9338 Thread 126018660109552: Commit of size 5696 done in 5261 us ref 22736) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: writemutex released) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Start frozen 19491: 885 ref 22736) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: End transaction 19491) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: End transaction 11991) I/flutter (18441): (category: Realm.Storage.Transaction, level: LogLevel.trace, message: DB: 9338 Thread 126018660109552: Tr 19691: Advance read: 884 -> 885 ref 22736) I/flutter (18441): (category: Realm.Sync.Client.Session, level: LogLevel.detail, message: Connection[1] Linger time expired) I/flutter (18441): (category: Realm.Sync.Client.Session, level: LogLevel.info, message: Connection[1] Disconnected) I/flutter (18441): (category: Realm.Sync.Client.Session, level: LogLevel.debug, message: Connection[1] Destroying connection object)
Okay, I can see the problem - you should be seeing User mismatch for client file identifier (IDENT) (ProtocolErrorCode=223)
error in your server logs. This is because you can't use the same file with two different users - are you by any chance explicitly setting the file path for the Realm you're opening?
Awesome, that is exactly what I did, after removing the path specified in my code, everything works great now. Thank you for your support
What happened?
Calling waitForSynchronization never resolved after logout and then log in a different realm user
Repro steps
Version
Dart 3.4.3 / Flutter 3.22.2
What Atlas Services are you using?
Atlas Device Sync
What type of application is this?
Flutter Application
Client OS and version
Window 11
Code snippets
No response
Stacktrace of the exception/crash you're getting
No response
Relevant log output
No response