tchapgouv / tchap-android

A matrix client for Android.
https://play.google.com/store/apps/details?id=fr.gouv.tchap.a
Apache License 2.0
20 stars 7 forks source link

Crash - Exception: java.lang.IllegalStateException: This Realm instance has already been closed, making it unusable. #556

Open Jonathan2051 opened 2 years ago

Jonathan2051 commented 2 years ago

Steps to reproduce

crash call stack --------------------------------- Element Build : 40200032 Element Version : 2.0.3 [40200032] (F-836a1462-2022-03-07 12:38:20 +0100) SDK Version : 1.3.12 (836a1462) Memory statuses usedSize 28 MB freeSize 0 MB totalSize 29 MB Thread: TIMELINE_DB_THREAD, Exception: java.lang.IllegalStateException: This Realm instance has already been closed, making it unusable. at io.realm.BaseRealm.checkIfValid(BaseRealm.java:4) at io.realm.RealmResults.isLoaded(RealmResults.java:1) at io.realm.OrderedRealmCollectionImpl.size(OrderedRealmCollectionImpl.java:1) at java.util.AbstractCollection.isEmpty(AbstractCollection.java:86) at kotlin.collections.CollectionsKt___CollectionsKt.firstOrNull(_Collections.kt:7) at org.matrix.android.sdk.internal.session.room.timeline.DefaultTimeline.getLiveChunk(DefaultTimeline.kt:1) at org.matrix.android.sdk.internal.session.room.timeline.DefaultTimeline.executePaginationTask(DefaultTimeline.kt:1) at org.matrix.android.sdk.internal.session.room.timeline.DefaultTimeline$$ExternalSyntheticLambda4.run(Unknown Source:3) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:223) at android.os.HandlerThread.run(HandlerThread.java:67)

User-Agent: "Tchap/2.0.3 (Linux; U; Android 11; Flavour FDroid; MatrixAndroidSdk2 1.3.12)" Version: "2.0.3 [40200032] (F-836a1462-2022-03-07 12:38:20 +0100)" app_language: "fr_FR" branch_name: "develop11" can_contact: "false" default_app_language: "fr_FR" locale: "fr_FR" matrix_sdk_version: "1.3.12 (836a1462)" multi_window: "OFF" olm_version: "3.2.7 - olm version (3.2.7) - 2dbeea2-2021-12-06 11:01:21 -0500" os: "11 (API 30)" server_version: "undefined" theme: "system" verbose_log: "OFF"

image

Outcome

What did you expect?

What happened instead?

Your phone model

Operating system version

Android 11

Application version and app store

olm_version: "3.2.7 - olm version (3.2.7)

Homeserver

No response

Will you send logs?

No

Nivann commented 2 years ago

Crash suite à une demande de partage de clef depuis un autre terminal

Claire1817 commented 2 years ago

Crash related to: https://github.com/vector-im/element-android/issues/3610