Skip to content

White flash during new instance launch #93869

Closed

Description

@deadmeu

Version: 1.43.2
Commit: 0ba0ca5
Date: 2020-03-25T01:43:18.461Z
Electron: 7.1.14
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.5.13-1-MANJARO
DE: XFCE4

Steps to Reproduce:

  1. Launch an instance of VS Code
  2. Observe the blinding white flash just before the window fully renders

Does this issue occur when all extensions are disabled?: Yes

Using --disable-gpu does not help either.

Here is a GIF of the effect in action:
vscode-flash-disabled-extensions
I have a laptop also running Manjaro XFCE4, which did not exhibit this behaviour (no flash of white) with the following version information:
Version: 1.42.1
Commit: c47d83b
Date: 2020-02-17T09:32:31.598Z
Electron: 6.1.9
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Linux x64 5.5.8-1-MANJARO

However, after updating the machine, the same issue (white flash on launch) presents itself. The version information for the updated machine (identical to the first version listed at the beginning of the ticket) is now :
Version: 1.43.2
Commit: 0ba0ca5
Date: 2020-03-25T01:43:18.461Z
Electron: 7.1.14
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.5.8-1-MANJARO

Activity

  1. bpasero commented on Mar 31, 2020

    @bpasero
    Contributor

    Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

  2. added
    info-needed
    on Mar 31, 2020
  3. deadmeu commented on Mar 31, 2020

    @deadmeu
    Author

    I've just tested master and the issue is still present.

  4. bpasero commented on Mar 31, 2020

    @bpasero
    Contributor

    Can you try with disabling the custom menu, via "window.titleBarStyle": "native"

  5. deadmeu commented on Mar 31, 2020

    @deadmeu
    Author

    Both native and custom options are causing the issue. Interestingly, when switched to native, I'm finding the context menu when clicking on the settings icon to also briefly flash white. This does not happen when the window.titleBarStyle property is set to custom:
    vscode-dev-flashing

  6. removed
    info-needed
    on Mar 31, 2020
  7. bpasero commented on Mar 31, 2020

    @bpasero
    Contributor

    Ok, this sounds Electron specific to me. Does it reproduce if you run "code --disable-gpu"?

  8. added
    info-needed
    on Mar 31, 2020
  9. deadmeu commented on Mar 31, 2020

    @deadmeu
    Author

    Yep, still happens with the --disable-gpu option set.

  10. bpasero commented on Mar 31, 2020

    @bpasero
    Contributor

    Robo (@deepak1556) does this ring any bell?

  11. deadmeu commented on Mar 31, 2020

    @deadmeu
    Author

    I think I may have been experiencing similar effects in some of my other programs running electron 7. Should I close this ticket and open one with the electron team instead?

  12. 12 remaining items

  13. deadmeu commented on Apr 1, 2020

    @deadmeu
    Author

    Hi Robo (@deepak1556), I've just tried out your build, and I can confirm that I am no longer seeing the startup flash. I am also not seeing any of the menu widget flashes:
    vscode-flash-fixed2

  14. deepak1556 commented on Apr 1, 2020

    @deepak1556
    Collaborator

    Thanks for testing!

    I am also not seeing any of the menu widget flashes:

    Did you also try with "window.titleBarStyle": "native" ?

  15. deadmeu commented on Apr 1, 2020

    @deadmeu
    Author

    Yes, the GIF I posted is using the native title bars.

  16. deepak1556 commented on Apr 1, 2020

    @deepak1556
    Collaborator

    I can still repro in exploration build the white flash in menu navigation with native titlebar on Ubuntu 18.04 parallels vm. I am tracking this in #80798.

    Not sure which electron commit fixed the launch issue, but good to know its fixed.

  17. deadmeu commented on Apr 1, 2020

    @deadmeu
    Author

    Interesting. I'm finding the issue is also fixed when targeting electron 8.0.0, which seems to contradict some of the comments people have left in the upstream ticket.

    Also, thanks for your work getting this issue figured out, and in developing vscode 😄

  18. jerry-sky commented on Jun 30, 2020

    @jerry-sky

    The issue was resolved at some point in one of the insider builds of version 1.47. Unfortunately, it got borked again in latest two builds (1.47.0-1593508000 and 1.47.0-1593495868).

    In the build 1.47.0-1593413883 everything is fine – no flashing whatsoever, the program respects the global system settings. Instead of flashing white, the background of not yet fully loaded elements (new window instance, menu/ right-click popup) is the same as in the rest of the system.

  19. added this to the July 2020 milestone on Jul 21, 2020
  20. deepak1556 commented on Aug 28, 2020

    @deepak1556
    Collaborator

    Should be fixed in latest insiders.

  21. added
    insiders-released
    on Aug 28, 2020
  22. locked and limited conversation to collaborators on Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

electroninsiders-releasedlinuxupstream

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions