Skip to content

[BUG] Crash from Google Play Store #4333

Closed

Description

@jesmrec

It was reported, sent a first solution in v4.2.1 but unfortunately, it didn't work and there are still appearances.

It might need another look

NOTE: check more updated info in Play console (line numbers might change)

Exception java.lang.NullPointerException:
  at com.owncloud.android.datamodel.FileDataStorageManager.<init>
  at com.owncloud.android.ui.activity.BaseActivity.getStorageManager (BaseActivity.java:216)
  at com.owncloud.android.ui.activity.FileDisplayActivity.navigateTo (FileDisplayActivity.kt:1634)
  at com.owncloud.android.ui.activity.FileDisplayActivity.navigateTo$default (FileDisplayActivity.kt:1610)
  at com.owncloud.android.ui.activity.FileDisplayActivity.navigateToOption (FileDisplayActivity.kt:1661)
  at com.owncloud.android.ui.activity.DrawerActivity.bottomBarNavigationTo (DrawerActivity.kt:278)
  at com.owncloud.android.ui.activity.DrawerActivity.setupNavigationBottomBar$lambda$7 (DrawerActivity.kt:248)
  at com.owncloud.android.ui.activity.DrawerActivity.$r8$lambda$D_YMO0EvQvgnxMxwdaUwNHSdh-w
  at com.owncloud.android.ui.activity.DrawerActivity$$ExternalSyntheticLambda5.onNavigationItemSelected
  at com.google.android.material.navigation.NavigationBarView$1.onMenuItemSelected (NavigationBarView.java:291)
  at androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected (MenuBuilder.java:836)
  at androidx.appcompat.view.menu.MenuItemImpl.invoke (MenuItemImpl.java:159)
  at androidx.appcompat.view.menu.MenuBuilder.performItemAction (MenuBuilder.java:987)
  at com.google.android.material.navigation.NavigationBarMenuView$1.onClick (NavigationBarMenuView.java:139)
  at android.view.View.performClick (View.java:7892)
  at android.view.View.performClickInternal (View.java:7869)
  at android.view.View.-$$Nest$mperformClickInternal
  at android.view.View$PerformClick.run (View.java:30891)
  at android.os.Handler.handleCallback (Handler.java:942)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:226)
  at android.os.Looper.loop (Looper.java:313)
  at android.app.ActivityThread.main (ActivityThread.java:8762)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:604)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)

Activity

  1. added this to the 4.3 - Future milestone on Feb 29, 2024
  2. self-assigned this
    on Jan 31, 2025
  3. joragua commented on Feb 6, 2025

    @joragua
    Member

    This crash was reported in this issue: #4318 but it is still happening. As a second round, we've decided to update androidx-appcompat dependency to 1.6.1 (with 1.7.0 we have some problems that are out of the scope of this issue). We have seen that the problem maybe is related with synchrony (the constructor of FileStorageManager when the account is null) and in that version (1.6.1) some nullability bugs were fixed. We will see if this crash will appear again after this change.

  4. linked a pull request that will close this issue[FIX] Crash from Google Play Store #4542on Feb 6, 2025
  5. JuancaG05 commented on Mar 25, 2025

    @JuancaG05
    Contributor

    This is still reproducible in 4.5.0 in spite of the fixes. As we could see in a video provided by the Play Console, this seems to be reproduced when the user gets to the FileDisplayActivity and performs some actions with no account attached. Due to the navigation we have right now (go to FileDisplayActivity, and if no account is attached, redirect to LoginActivity), it could be possible to do it in very slow devices or with low performance, or with some hacky actions.

    Since this is reproduced when the user gets to this "illegal" state of the app, and it's not a relatively very frequent crash, we will consider it as a won't fix for the moment. Closing the issue, if there are any new ideas in the future we can discuss again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions