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

Setting LogLevel.ALL with Sync crash on Android #1536

Open
nhachicha opened this issue Oct 4, 2023 · 3 comments
Open

Setting LogLevel.ALL with Sync crash on Android #1536

nhachicha opened this issue Oct 4, 2023 · 3 comments

Comments

@nhachicha
Copy link
Collaborator

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

@cmelchior
Copy link
Contributor

cmelchior commented Oct 9, 2023

This can be reproduced using SyncedRealmTests.canSync(). It doesn't happen on JVM.

@cmelchior
Copy link
Contributor

@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?

@cmelchior cmelchior removed their assignment Nov 27, 2023
@cmelchior
Copy link
Contributor

We can also try to run our test suite locally with LogLevel.ALL for all tests in an attempt to trigger this.

@cmelchior cmelchior self-assigned this Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants