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

[Bug] When re-entering Fenix, occasionally toolbar UI is missing #4529

Closed
nyanpasu64 opened this issue Aug 4, 2019 · 10 comments
Closed

[Bug] When re-entering Fenix, occasionally toolbar UI is missing #4529

nyanpasu64 opened this issue Aug 4, 2019 · 10 comments
Assignees
Labels
🐞 bug Crashes, Something isn't working, .. E5 Estimation Point: about 5 days eng:qa:verified QA Verified P1 Current sprint
Milestone

Comments

@nyanpasu64
Copy link

nyanpasu64 commented Aug 4, 2019

Steps to reproduce

  • Install Firefox Preview (I built from source).
  • Switch to another app which uses lots of RAM, so Android unloads Firefox.
  • Reopen Firefox Preview.

Expected behavior

Upon trying to replicate this bug, I end up on the tab list, with all tabs intact, and the UI functional. I feel this provides a "clean slate" so I can enter a new search term instead of reading old tabs.

Alternatively (to match Firefox Android), the page and toolbar would be present, and I can enter a new URL and switch tabs.

Actual behavior

One time, I ended up on the webpage I was reading (either back one history entry, or on the page I was reading), but with the toolbar missing, replaced by a black/gray void at the bottom of the page. Page scrolling did not work at first, but later started working. I had to restart Firefox Preview by swiping from Recent Apps and relaunching (which brought me to the tab list) to make the toolbar come back.

I took some Android Studio layout captures of Fenix in the no-toolbar state, as well as the normal state after restarting.

Comparing the layout captures, in the bugged layout, id/toolbar is missing and id/nestedScrollQuickAction has no children.

Device information

  • Android device: Moto G5 Plus, stock 7.0 with Magisk
  • Fenix version: master bfd4849 (with gradle.properties org.gradle.jvmargs edited to reduce memory consumption)

Possibly related to #4461 '[Bug] When re-entering Fenix, open tabs all change to "about:blank"'? This time, my tabs were still there and not replaced with about:blank. In the past, I experienced this issue.

┆Issue is synchronized with this Jira Task

@nyanpasu64 nyanpasu64 added the 🐞 bug Crashes, Something isn't working, .. label Aug 4, 2019
@rituraj22
Copy link

The same happened on Nightly 190802 18:05 (Build #12141932) build in my Android 9.0 phone

@jacktose
Copy link

jacktose commented Aug 5, 2019

Confirmed on Nightly 190802 18:05 (Build #12141931), Android 8.1.0, Moto G5+.
It's been happening occasionally for a few days, possibly since the 190802 build.

I'm also experiencing #4461, but that's been going on a long time and this is new.

@ekager
Copy link
Contributor

ekager commented Aug 5, 2019

IIUC this should be fixed by #4412
Is that right @csadilek ?

@nyanpasu64
Copy link
Author

#4412 was closed 5 days ago. I think my master checkout was from 2 days ago.

@colintheshots
Copy link
Contributor

I can't find steps to reproduce, but I can determine why the toolbar and quick action sheet both might go uninflated. That should be enough to produce a fix, but I'm not certain how to test the fix yet.

@colintheshots colintheshots self-assigned this Aug 5, 2019
@colintheshots colintheshots added the E2 Estimation Point: easy, half a day to 2 days label Aug 5, 2019
@colintheshots colintheshots added this to To be Triaged in Fenix Sprint Kanban via automation Aug 5, 2019
@colintheshots colintheshots added the P1 Current sprint label Aug 5, 2019
@colintheshots colintheshots moved this from To be Triaged to Prioritized Bug Backlog in Fenix Sprint Kanban Aug 5, 2019
@colintheshots colintheshots moved this from Prioritized Bug Backlog to In Progress in Fenix Sprint Kanban Aug 5, 2019
@colintheshots colintheshots added E5 Estimation Point: about 5 days and removed E2 Estimation Point: easy, half a day to 2 days labels Aug 5, 2019
@csadilek
Copy link
Contributor

csadilek commented Aug 5, 2019

IIUC this should be fixed by #4412
Is that right @csadilek ?

@ekager This looks like it could be related (caused by the same problem) I described in #4427. It's possible for the BrowserFragment to be created before the sessions have been restored. Without a sessionId we're not creating the UI properly.

colintheshots added a commit to colintheshots/fenix that referenced this issue Aug 6, 2019
colintheshots added a commit to colintheshots/fenix that referenced this issue Aug 6, 2019
colintheshots added a commit to colintheshots/fenix that referenced this issue Aug 6, 2019
colintheshots added a commit to colintheshots/fenix that referenced this issue Aug 7, 2019
colintheshots added a commit to colintheshots/fenix that referenced this issue Aug 8, 2019
colintheshots added a commit that referenced this issue Aug 8, 2019
…4571)

* For #4529, #4427: Resuming after restoring instance state breaks UI

* Clear up warnings
@colintheshots colintheshots added the eng:qa:needed QA Needed label Aug 8, 2019
@project-bot project-bot bot moved this from In Progress to Ready for QA in Fenix Sprint Kanban Aug 8, 2019
colintheshots added a commit to colintheshots/fenix that referenced this issue Aug 8, 2019
@abodea abodea added eng:qa:verified QA Verified and removed eng:qa:needed QA Needed labels Aug 14, 2019
@project-bot project-bot bot moved this from Ready for QA to In Progress in Fenix Sprint Kanban Aug 14, 2019
@abodea
Copy link
Member

abodea commented Aug 14, 2019

Verified as fixed using latest debug build(from the master) 1.0.1933(build #1) 8/14 with Samsung Galaxy s10+(Android 9), Huawei P9 Lite(Android 6), Samsung Galaxy S7(Android 7).
Please note that I tried to reproduce this issue following the steps from the description but the issue cannot be reproduced.

Also, I tried the following:

  1. Start the download of few big apps from Play Store.
  2. Open more apps that are using a lot of RAM.
  3. Launch Fenix.
  4. Open few tabs.
  5. Switch between apps.
  6. Re-open Fenix.

But everything worked as expected. I will close this issue and re-open it in case we will be able to reproduce/see this bug in the future.

@abodea abodea closed this as completed Aug 14, 2019
Fenix Sprint Kanban automation moved this from In Progress to Done Aug 14, 2019
@ekager ekager added this to the v1.3 milestone Aug 14, 2019
@nyanpasu64
Copy link
Author

nyanpasu64 commented Sep 2, 2019

Happened twice to me after this issue was supposedly fixed. I think it's less frequent but still happens. First time an older build, with no tabs open. Second time on a build from 2019-08-15, with tabs open.

Interestingly, both times, I got a white screen with "pull to refresh" enabled. Otherwise, "pull to refresh" is not enabled.

@jacktose
Copy link

jacktose commented Sep 3, 2019

I've also had this a few times since the fix, on 1.3.1.

@nyanpasu64
Copy link
Author

I think this is the same issue as #12490, and I just hit it again on Nightly 200830, but was unable to take a layout capture.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, .. E5 Estimation Point: about 5 days eng:qa:verified QA Verified P1 Current sprint
Projects
None yet
Development

No branches or pull requests

7 participants