Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Bug] Crash when tapping on "Retry" when the tab wasn't sent #7726

Closed
sflorean opened this issue Jan 15, 2020 · 4 comments
Closed

[Bug] Crash when tapping on "Retry" when the tab wasn't sent #7726

sflorean opened this issue Jan 15, 2020 · 4 comments
Assignees
Labels
b:crash Crashes Fenix: should link to Sentry, Crash-Stats or GPlay info 🐞 bug Crashes, Something isn't working, .. S1 Blocks development/testing, may impact more than 25% of users, causes data loss, potential chemspill

Comments

@sflorean
Copy link
Contributor

sflorean commented Jan 15, 2020

Prerequisites

Sign in with the same account on Desktop and on Firefox Preview.

Steps to reproduce

  1. On Android, open a webpage and tap Share from the main menu (don't tap on the account displayed).
  2. On Desktop - your account - Manage account and change the password.
  3. Immediately after the password is changed, go to Android and tap on the desktop account (displayed at step 1).
  4. Tap on "Retry" from the snackbar.

Expected behavior

"Unable to send RETRY" toast is presented. Same as for step 3.

Actual behavior

Firefox Preview crashes.

Note

On Nightly, after performing step 4, no error is displayed again.

Device information

  • Android device: Xiaomi MiPad 2 (Android 5.1), OnePlus 5T (Android 9).
  • Fenix version: 3.1.0 - beta 3

retrycrash.txt

┆Issue is synchronized with this Jira Task

@sflorean sflorean added 🐞 bug Crashes, Something isn't working, .. b:crash Crashes Fenix: should link to Sentry, Crash-Stats or GPlay info S1 Blocks development/testing, may impact more than 25% of users, causes data loss, potential chemspill labels Jan 15, 2020
@github-actions github-actions bot added the needs:triage Issue needs triage label Jan 15, 2020
@boek boek added this to Triage in Fenix Crashes Feb 4, 2020
@Mugurell Mugurell self-assigned this Mar 11, 2020
@Mugurell
Copy link
Contributor

Could not reproduce the crash but I see another issue on various devices:
After pressing retry the current snackbar is dismissed but another new one isn't shown.
Trying to track this issue down was a rabbit hole but with enough logs in our code and in the com.google.android.material.snackbar package I got to see that

This seems to be a bug in the material.snackbar lib that we can't overcome. Indeed it's because of the method calls not being properly synchronized and can be avoided if for example the server action takes a longer time to execute and ultimately fail so that there is enough time for the initial snackbar to be fully dismissed so the call to show a new one will succeed but in our usecase it's very easy to have it reproduced.

Using a new instance of a FenixSnackbar seems to come with it's own share of issues. Will update this comment after investigating a bit more.

@Mugurell Mugurell added this to ready for review in 4.2 Mar 23, 2020
@Mugurell
Copy link
Contributor

@sflorean Does the crash still reproduces for you?
I tried to but I can't reproduce. I think the issue causing the crash was fixed following some other work.

@sflorean
Copy link
Contributor Author

@Mugurell the crash is not reproducible on Beta build - 4.2.0-beta.3 and the "Unable to send RETRY" snackbar is displayed again if it is tapped. However, on Nightly the snackbar is not displayed anymore after being displayed 3 times.

@Mugurell
Copy link
Contributor

@sflorean Then maybe we can close this and based on Chenxia's comment we should think again about supporting consecutive snackbars if there are other scenarios also for this particular issue?

Fenix Crashes automation moved this from Backlog to Done Mar 30, 2020
@liuche liuche removed this from ready for review in 4.2 Apr 1, 2020
@ekager ekager removed the needs:triage Issue needs triage label Apr 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
b:crash Crashes Fenix: should link to Sentry, Crash-Stats or GPlay info 🐞 bug Crashes, Something isn't working, .. S1 Blocks development/testing, may impact more than 25% of users, causes data loss, potential chemspill
Projects
No open projects
Fenix Crashes
  
Done
Development

No branches or pull requests

3 participants