element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.34k stars 711 forks source link

Crash when clicking on ViewEvent source actions #4279

Closed bmarty closed 2 years ago

bmarty commented 2 years ago

Probably due to the migration to MvRx2, see the stack trace:

    java.lang.NoSuchMethodError: No direct method <init>(Landroidx/lifecycle/LifecycleOwner;Lkotlin/jvm/functions/Function0;)V in class Lcom/airbnb/mvrx/lifecycleAwareLazy; or its super classes (declaration of 'com.airbnb.mvrx.lifecycleAwareLazy' appears in /data/app/im.vector.app.debug-czukF-LVif-ZqSrtYwRdEw==/base.apk)
        at org.billcarsonfr.jsonviewer.JSonViewerFragment.<init>(JSonViewerFragment.kt:88)
        at org.billcarsonfr.jsonviewer.JSonViewerFragment$Companion.newInstance(JSonViewerFragment.kt:71)
        at org.billcarsonfr.jsonviewer.JSonViewerDialog.onActivityCreated(JSonViewerDialog.kt:29)
        at androidx.fragment.app.Fragment.performActivityCreated(Fragment.java:2996)
bmarty commented 2 years ago

@BillCarsonFr will update his lib org.billcarsonfr.jsonviewer

bmarty commented 2 years ago

First point done on https://github.com/BillCarsonFr/JsonViewer/commit/a8fa35d6f1e7e449d29e2a8ab93a237c0f096006 @ganfra to create a PR on this project.

ganfra commented 2 years ago

Adding test will be done on another PR, along fixing the localhost issue for synapse config.

bmarty commented 2 years ago

Crash fixed on 1.3.5

Remaining point converted to a dedicated issue