Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 23, 2022

Bumps realm-gradle-plugin from 10.9.0 to 10.11.0.

Changelog

Sourced from realm-gradle-plugin's changelog.

10.11.0 (2022-05-20)

Enhancements

  • Throw a more comprehensive error when initializing Realm on an Instant App.

Fixed

  • Fixed various corruption bugs when encryption is used. (Realm Core issue #5360, since 10.10.0)
  • Fixed imprecise conversion from double/float to Decimal128. (Realm Core issue #5191)
  • Fixed RealmQuery.distinct when it receives three or more arguments. (Issue #7639)
  • Fix issues resolving class information for copyToRealmOrUpdate for already managed objects in multi module projects. (Issue #7650)

Compatibility

  • File format: Generates Realms with format v22. Unsynced Realms will be upgraded from Realm Java 2.0 and later. Synced Realms can only be read and upgraded if created with Realm Java v10.0.0-BETA.1.
  • APIs are backwards compatible with all previous release of realm-java in the 10.6.y series.
  • Realm Studio 11.0.0-alpha.0 or above is required to open Realms created by this version.

Internal

  • Update to Realm Core 11.14.0, commit: db7ca86cf7ff8c9c3da6c7e742ecd46315ddc280.

Credits

10.10.1 (2022-01-26)

Enhancements

  • [RealmApp] Add support for setting the filename on Flexible and Partition Sync configurations.

Fixed

  • [RealmApp] Creating multiple anonymous subscriptions for a Realm would throw an exception.

Compatibility

  • File format: Generates Realms with format v22. Unsynced Realms will be upgraded from Realm Java 2.0 and later. Synced Realms can only be read and upgraded if created with Realm Java v10.0.0-BETA.1.
  • APIs are backwards compatible with all previous release of realm-java in the 10.6.y series.
  • Realm Studio 11.0.0-alpha.0 or above is required to open Realms created by this version.

Internal

  • Updated to Android Gradle Plugin 7.1.0
  • Updated to Gradle 7.3.3.

10.10.0 (2022-01-18)

Enhancements

  • [RealmApp] Add support for a new mode for synchronized realms: Flexible Sync that only synchronizes selective parts of the backend data. The following classes have been added to support this: Subscription, SubscriptionSet and MutableSubscriptionSet. This mode and all APIs are marked as Beta.

Fixed

  • [RealmApp] The sync client will now drain the receive queue when send fails with ECONNRESET - ensuring that any error message from the server gets received and processed. (Realm Core issue #5078)

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels May 23, 2022
@dependabot dependabot bot requested review from a team, mnaturel and ouchadam and removed request for a team May 23, 2022 23:18
@ouchadam
Copy link
Contributor

historically upgrades from realm 10.9.0+ have introduced runtime crashes, this may however have been a side effect of the android plugin version, it's worth rebasing and double checking after #6141 is merged

@bmarty
Copy link
Member

bmarty commented May 24, 2022

@ouchadam Maybe with this upgrade, #6141 will not be necessary? Assuming that upgrading Realm does not cause us some trouble.

Bumps [realm-gradle-plugin](https://github.com/realm/realm-java) from 10.9.0 to 10.11.0.
- [Release notes](https://github.com/realm/realm-java/releases)
- [Changelog](https://github.com/realm/realm-java/blob/v10.11.0/CHANGELOG.md)
- [Commits](realm/realm-java@v10.9.0...v10.11.0)

---
updated-dependencies:
- dependency-name: io.realm:realm-gradle-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@mnaturel mnaturel force-pushed the dependabot/gradle/io.realm-realm-gradle-plugin-10.11.0 branch from 0cdb95f to 2d654da Compare June 10, 2022 11:39
Copy link
Contributor

@mnaturel mnaturel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After rebase on develop, I have done some tests. No crash but the decryption of messages is very slow or sometimes seems not done at all (not happening with current version of develop). Maybe related to Realm performances?

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@ouchadam
Copy link
Contributor

rebased on the current develop the app feels a little faster? I haven't noticed any issues either, have done multiple sign in/sign out and clearing cache

doing the same tests with 10.10.1 encounters the native database crashes almost instantly

E  jni: ThrowingException 7, Failure when converting short string to UTF-16 error_code = 2; retcode = 0; StringData.size = 44; StringData.data = 
   Exception backtrace:
   <backtrace not supported on this platform> in /tmp/realm-java/realm/realm-library/src/main/cpp/io_realm_internal_UncheckedRow.cpp line 178, .
E  Exception has been thrown: Failure when converting short string to UTF-16 error_code = 2; retcode = 0; StringData.size = 44; StringData.data = 
   Exception backtrace:
   <backtrace not supported on this platform> in /tmp/realm-java/realm/realm-library/src/main/cpp/io_realm_internal_UncheckedRow.cpp line 178
V  openAround(eventId: null) finished
V  Post snapshot of 1 events

upgrading form 10.10.1 to 10.11.0 crashes with


java.lang.RuntimeException: No object with key '52640' in 'class_ReadReceiptsSummaryEntity' in /tmp/realm-java/realm/realm-library/src/main/cpp/io_realm_internal_Table.cpp line 290
	at io.realm.internal.Table.nativeClear(Native Method)
	at io.realm.internal.Table.clear(Table.java:317)
	at io.realm.BaseRealm.deleteAll(BaseRealm.java:782)
	at io.realm.Realm.deleteAll(Realm.java:138)
	at org.matrix.android.sdk.internal.session.cache.RealmClearCacheTask$execute$2.invokeSuspend(ClearCacheTask.kt:30)
	at org.matrix.android.sdk.internal.session.cache.RealmClearCacheTask$execute$2.invoke(Unknown Source:8)
	at org.matrix.android.sdk.internal.session.cache.RealmClearCacheTask$execute$2.invoke(Unknown Source:4)
	at org.matrix.android.sdk.internal.database.AsyncTransactionKt$awaitTransaction$2.invokeSuspend(AsyncTransaction.kt:46)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:919)
	Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@86e8353, Dispatchers.Main.immediate]

with no apparent way to fix the broken database

Copy link
Contributor

@ouchadam ouchadam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should merge this after the next release in case we need to revert

@mnaturel
Copy link
Contributor

@dependabot rebase

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 24, 2022

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@mnaturel
Copy link
Contributor

mnaturel commented Jun 24, 2022

After rebase on develop, I have done some new tests on my side as well: update a version using 10.9.0 to the one using 10.11.0, install a version from scratch using 10.11.0. I didn't have any crash or unexpected behavior.

@ouchadam ouchadam merged commit 054c043 into develop Jun 30, 2022
@ouchadam ouchadam deleted the dependabot/gradle/io.realm-realm-gradle-plugin-10.11.0 branch June 30, 2022 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants