tchapgouv / tchap-android

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

Crash - Exception: java.lang.RuntimeException: Unable to start activity #508

Closed JDixmier closed 2 years ago

JDixmier commented 2 years ago

crash call stack --------------------------------- Element Build : 40200032 Element Version : 2.0.3 [40200032] (G-836a1462-2022-03-07 12:38:20 +0100) SDK Version : 1.3.12 (836a1462) Phone : ANE-LX1 (9.1.0.355C109 9 REL) Memory statuses usedSize 10 MB freeSize 0 MB totalSize 11 MB Thread: main, Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.gouv.tchap.a/im.vector.app.features.settings.VectorSettingsActivity}: java.lang.IllegalStateException: You should authenticate before using this at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3430) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3614) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:86) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2199) at android.os.Handler.dispatchMessage(Handler.java:112) at android.os.Looper.loop(Looper.java:216) at android.app.ActivityThread.main(ActivityThread.java:7625) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit..java:524) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987) Caused by: java.lang.IllegalStateException: You should authenticate before using this at im.vector.app.core.di.ActiveSessionHolder.getActiveSession(ActiveSessionHolder.kt:2) at im.vector.app.DaggerVectorApplication_HiltComponents_SingletonC.-$$Nest$msession(DaggerVectorApplication_HiltComponents_SingletonC.java:3) at im.vector.app.DaggerVectorApplication_HiltComponents_SingletonC$ActivityCImpl.injectVectorSettingsActivity(DaggerVectorApplication_HiltComponents_SingletonC.java:3) at im.vector.app.features.settings.Hilt_VectorSettingsActivity.inject(Hilt_VectorSettingsActivity.java:3) at im.vector.app.features.settings.Hilt_VectorSettingsActivity$1.onContextAvailable(Hilt_VectorSettingsActivity.java:1) at androidx.activity.ComponentActivity.onCreate(ComponentActivity.java:5) at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:1) at im.vector.app.core.platform.VectorBaseActivity.onCreate(VectorBaseActivity.kt:9) at android.app.Activity.performCreate(Activity.java:7458) at android.app.Activity.performCreate(Activity.java:7448) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1286) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3409) ... 11 more

User-Agent: "Tchap/2.0.3 (Linux; U; Android 9; ANE-LX1 Build/HUAWEIANE-L0; Flavour GooglePlay; MatrixAndroidSdk2 1.3.12)" Version: "2.0.3 [40200032] (G-836a1462-2022-03-07 12:38:20 +0100)" app_language: "fr_FR" branch_name: "main" can_contact: "false" default_app_language: "fr_FR" device: "ANE-LX1" device_id: "undefined" locale: "fr_FR" matrix_sdk_version: "1.3.12 (836a1462)" multi_window: "OFF" olm_version: "undefined" os: "9 (API 28) 9.1.0.355C109-REL" server_version: "undefined" theme: "system" user_id: "undefined" verbose_log: "OFF"

Claire1817 commented 2 years ago

Issue opened in Element: https://github.com/vector-im/element-android/issues/2564

Claire1817 commented 2 years ago

We don't find the stacktrace in the google playStore.

giomfo commented 2 years ago

To reproduce :

TODO:

giomfo commented 2 years ago

would be fixed by https://github.com/vector-im/element-android/issues/4445

giomfo commented 2 years ago

would be fixed after rebase: https://github.com/tchapgouv/tchap-android/issues/541