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

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

Closed
JDixmier opened this issue Mar 22, 2022 · 5 comments
Closed
Assignees
Labels
android bug Something isn't working

Comments

@JDixmier
Copy link

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 (836a146)
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 (836a146)"
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"

@JDixmier JDixmier added bug Something isn't working android labels Mar 22, 2022
@Claire1817
Copy link
Contributor

Issue opened in Element: element-hq/element-android#2564

@Claire1817
Copy link
Contributor

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

@giomfo
Copy link
Contributor

giomfo commented Mar 28, 2022

To reproduce :

  • Rageshake on welcome screen
  • Select "Parameters" on the rageshake dialog
  • Crash because the settings screen is not available ("You should authenticate before using this")

TODO:

  • hide " Parameters" option from the rageshake dialog when there is no session

@giomfo giomfo reopened this Mar 28, 2022
@giomfo
Copy link
Contributor

giomfo commented Mar 28, 2022

would be fixed by element-hq/element-android#4445

@giomfo
Copy link
Contributor

giomfo commented Apr 27, 2022

would be fixed after rebase: #541

@giomfo giomfo closed this as completed May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants