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

[Bug] Flash of black when leaving GV engine #1901

Closed
1 task
mcomella opened this issue Apr 22, 2019 · 20 comments
Closed
1 task

[Bug] Flash of black when leaving GV engine #1901

mcomella opened this issue Apr 22, 2019 · 20 comments
Assignees
Labels
🐞 bug Crashes, Something isn't working, .. E5 Estimation Point: about 5 days eng:qa:verified QA Verified Feature:HomeScreen needs:gv GeckoView bug required to fix the issue. See bugzilla.mozilla.org P2 Upcoming release

Comments

@mcomella
Copy link
Contributor

mcomella commented Apr 22, 2019

Dependencies

Steps to reproduce

  • Load a page
  • Press tabs button

Expected behavior

Tabs screen appears smoothly (with animation?)

Actual behavior

There's a flash of black (or white, depending on Light/Dark mode) and the tabs screen suddenly appears

This also happens when creating a new tab from an open tab (i.e. load page, click 3-dot, select "New tab")

Next steps

GV doesn't think this is a Gecko problem, but rather a problem in Fenix not destroying the SurfaceView in time. So the next steps here are to verify that we're handling the SurfaceView correctly.

I'm not convinced the black flash when navigating away is graphics' fault. We set everything inactive in GeckoView.Display.onSurfaceDestroyed(), which I presume happens when the SurfaceView is destroyed by navigating away from the browser fragment. No rendering can occur after this point. I'm not sure what we could do, when we don't have a surface to render in to. Isn't the problem that there is a delay between the SurfaceView being destroyed and the TabsFragment being created and shown? So the android UI displays black during this time.

Device information

  • Android device: Pixel 2
  • Fenix version: 1.0.1917

Edit by @sblatz

Acceptance Criteria

  • I do not see a black/white flash when moving from browser -> Settings
  • I do not see a black/white flash when moving from browser -> Library
  • I do not see a black/white flash when moving from browser -> Fenix Home
    (black/white flash depending on if user is in Dark/Light Mode)

┆Issue is synchronized with this Jira Task

@mcomella mcomella added the 🐞 bug Crashes, Something isn't working, .. label Apr 22, 2019
@vesta0 vesta0 added the P2 Upcoming release label Apr 23, 2019
@vesta0 vesta0 added this to the Bugs milestone Apr 23, 2019
@yoasif
Copy link
Contributor

yoasif commented Apr 27, 2019

I noticed this on a Moto G today. Screencast attached.

recording_20190426_232847.zip

@sv-ohorvath
Copy link
Contributor

Still reproducing on 5/23 build. Pixel and Galaxy Note 8.

@boek boek removed this from the Bugs and Polish milestone Jul 17, 2019
@vesta0 vesta0 removed this from the Bugs and Polish milestone Jul 24, 2019
@sblatz
Copy link
Contributor

sblatz commented Sep 27, 2019

The only way for us to handle this is to "screenshot" the GV and animate with that.
We should consider handling the bugs surrounding this all at one time since there's a few mentioning it.

@sblatz sblatz added this to To be Triaged in Fenix Sprint Kanban via automation Sep 27, 2019
@sblatz sblatz moved this from To be Triaged to Prioritized Bug Backlog in Fenix Sprint Kanban Sep 27, 2019
@sblatz
Copy link
Contributor

sblatz commented Oct 1, 2019

Demo of the behavior:

flash 2019-10-01 12_54_31

I will link to the other related issues since it will be the same underlying fix 😄

@sblatz sblatz added E5 Estimation Point: about 5 days and removed needs:group-triage labels Oct 1, 2019
@sblatz
Copy link
Contributor

sblatz commented Oct 1, 2019

Basically the same issue as #4708 but lets make sure that animation looks good too (navigate from browser -> home).

@sblatz sblatz changed the title [Bug] Flash of black when opening tabs [Bug] Flash of black when leaving GV engine Oct 1, 2019
@ekager ekager self-assigned this Oct 7, 2019
@ekager ekager moved this from Prioritized Bug Backlog to In Dev Review in Fenix Sprint Kanban Oct 8, 2019
sblatz added a commit to sblatz/fenix that referenced this issue Feb 19, 2020
Co-authored-by: ekager ekager@mozilla.com
sblatz added a commit to sblatz/fenix that referenced this issue Feb 19, 2020
Co-authored-by: ekager <ekager@mozilla.com>
sblatz added a commit to sblatz/fenix that referenced this issue Feb 19, 2020
Co-authored-by: ekager <ekager@mozilla.com>
sblatz added a commit to sblatz/fenix that referenced this issue Feb 19, 2020
Co-authored-by: ekager <ekager@mozilla.com>
sblatz added a commit to sblatz/fenix that referenced this issue Feb 20, 2020
Co-authored-by: ekager <ekager@mozilla.com>
sblatz added a commit to sblatz/fenix that referenced this issue Feb 20, 2020
Co-authored-by: ekager <ekager@mozilla.com>
@sblatz sblatz moved this from In Progress to In Dev Review in Fenix Sprint Kanban Feb 20, 2020
@sblatz sblatz removed the 🙅 waiting Issues that are blocked or has dependencies that are not ready label Feb 20, 2020
sblatz added a commit to sblatz/fenix that referenced this issue Feb 20, 2020
Co-authored-by: ekager <ekager@mozilla.com>
sblatz added a commit that referenced this issue Feb 21, 2020
Co-authored-by: ekager <ekager@mozilla.com>
@sblatz sblatz added the eng:qa:needed QA Needed label Feb 21, 2020
@project-bot project-bot bot moved this from In Dev Review to Ready for QA in Fenix Sprint Kanban Feb 21, 2020
@AndiAJ
Copy link
Collaborator

AndiAJ commented Feb 25, 2020

Hi, verified as fixed on the latest Nightly Build #20560606 from 02/25 using the following devices:
• Google Pixel 3a XL (Android 10)
• Google Pixel 3a (Android 9)
• Huawei Mate 20 Lite (Android 8.1.0)
• Samsung Galaxy S7 (Android 7)
• OnePlus A3 (Android 6.0.1)
• LG Nexus 4 (Android 5.1.1)

Dark theme time lapsed videos (Dropdown)

► Moving from browser -> Fenix Home
20200225-121346

► Moving from browser -> Library
20200225-121457

► Moving from browser -> Settings
20200225-121612

Light theme time lapsed videos (Dropdown)

► Moving from browser -> Fenix Home
20200225-122056

► Moving from browser -> Library
20200225-122146

► Moving from browser -> Settings
20200225-122219

@AndiAJ AndiAJ closed this as completed Feb 25, 2020
@project-bot project-bot bot moved this from Ready for QA to Sprint 20.4 Done in Fenix Sprint Kanban Feb 25, 2020
@AndiAJ AndiAJ added eng:qa:verified QA Verified and removed eng:qa:needed QA Needed labels Feb 25, 2020
@project-bot project-bot bot moved this from Sprint 20.4 Done to Sprint Backlog in Fenix Sprint Kanban Feb 25, 2020
@project-bot project-bot bot moved this from Sprint Backlog to Sprint 20.4 Done in Fenix Sprint Kanban Feb 25, 2020
@fluffyemily fluffyemily moved this from In Progress to In GV Nightly in Fenix: GeckoView Feb 27, 2020
@fluffyemily fluffyemily moved this from In GV Nightly to Done in Fenix: GeckoView Feb 27, 2020
@data-sync-user data-sync-user changed the title [Bug] Flash of black when leaving GV engine FNX2-17492 ⁃ [Bug] Flash of black when leaving GV engine Aug 4, 2020
@data-sync-user data-sync-user changed the title FNX2-17492 ⁃ [Bug] Flash of black when leaving GV engine FNX3-15902 ⁃ [Bug] Flash of black when leaving GV engine Aug 11, 2020
Fenix: GeckoView automation moved this from Done to Triage Aug 11, 2020
@data-sync-user data-sync-user changed the title FNX3-15902 ⁃ [Bug] Flash of black when leaving GV engine FNX-487 ⁃ [Bug] Flash of black when leaving GV engine Aug 11, 2020
@amedyne amedyne moved this from Triage to Done in Fenix: GeckoView Sep 1, 2020
@data-sync-user data-sync-user changed the title FNX-487 ⁃ [Bug] Flash of black when leaving GV engine [Bug] Flash of black when leaving GV engine May 19, 2022
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 Feature:HomeScreen needs:gv GeckoView bug required to fix the issue. See bugzilla.mozilla.org P2 Upcoming release
Projects
No open projects
Development

No branches or pull requests