realm-kotlin
realm-kotlin copied to clipboard
Setting LogLevel.ALL with Sync crash on Android
How frequently does the bug occur?
Always
Description
Using Sync with loglevel LogLevel.ALL (ex via app = TestApp(this::class.simpleName, logLevel = LogLevel.ALL))
will crash on Android with an invalid UTF16 string
Abort message: 'terminating with uncaught exception of type realm::RuntimeError: Failure when converting long string to UTF-16 error_code = 2; retcode = 0; StringData.size = 11760; StringData.data = Connection[2]: Session[2]: Changeset (parsed):
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
No response
Version
1.11
What Atlas App Services are you using?
-- select --
Are you using encryption?
No
Platform OS and version(s)
macOS 13.5.2
Build environment
Core 13.22.0
This can be reproduced using SyncedRealmTests.canSync(). It doesn't happen on JVM.
@nhachicha I tested this on an Android Emulator with SDK 34. Realm Kotlin commit 0cc98c0e87bfeec6199a0339e6fe661cbb3131b3, BAAS commit 0b7562d0401d72c909369030dc29332542614ba3 without being able to reproduce on the above method using LogLevel.ALL. Can you post the exact versions you are seeing this on?
We can also try to run our test suite locally with LogLevel.ALL for all tests in an attempt to trigger this.