White Flash on Window Open

331 views
Skip to first unread message

forbiddenera

unread,
May 10, 2021, 5:18:55 PM5/10/21
to Chromium-dev
Hi,

Using Chromium on an arm64 rpi in kiosk mode for an hmi/tablet interface thingy.

When opening a new window (kiosk or not), the entire window flashes white before anything shows (including the title bar, etc). I've tried using the GTK+ theme,
the classic theme and also tried the "Bits + Pieces" theme.

When enabling "use system title bar and borders", the title bar and borders do immediately show while the window area is white before anything renders.

The flash also happens when opening a new window. I do not get a flash when opening a new tab.

I went through a lot of the command line arguments looking for a fix, using --gpu-sandbox-start made the flash disappear MUCH quicker, however this also completely killed GPU acceleration with:

[15303:15303:0510/085557.017928:ERROR:gl_implementation.cc(286)] Failed to load libGL.so.1: libGL.so.1: cannot open shared object file: Operation not permitted
[15303:15303:0510/085557.041601:ERROR:viz_main_impl.cc(152)] Exiting GPU process due to errors during initialization

This seems to be the default background color of the window before Chromium renders anything.

This behaviour also happens on my Windows machine with Chrome (current). Even with Windows & Chromium both set to dark mode, also tried the Just Black theme, the window flashes white before any of Chrome's UI displays. Edge maybe sort of does the same, however, the title bar comes in so quick it's not as noticeable. vscode, as an example of a Chromium-based app, does not do this, by the time the window first paints, the background is dark and already has the menu, sidebar and status bar background colors also shown.

System is Raspberry Pi 4B using custom Ubuntu with openbox/ligthdm, Chromium is currently v83.

Mike Frysinger

unread,
May 10, 2021, 6:22:58 PM5/10/21
to ja...@shaped.ca, Chromium-dev
this happens on CrOS, and Linux/x86_64 too.  it's quite unfortunate.
-mike

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/55419456-5639-444c-8a7e-4d8cb848aa22n%40chromium.org.

Kevin Marshall

unread,
May 11, 2021, 7:25:08 PM5/11/21
to Chromium-dev, Mike Frysinger, Chromium-dev, forbiddenera
Hello, would you either of you mind filing a bug on crbug.com and provide some repro steps? 

The quicker/simpler the repro is, the easier it will be to isolate the culprit CL that introduced the regression. Please also provide your args.gn so that we can reproduce your build exactly, along with an approximate date for when you started noticing the white flashes.

You can share a link to the bug in this thread.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.

forbiddenera

unread,
May 24, 2021, 7:42:52 PM5/24/21
to Chromium-dev, Kevin Marshall, Mike Frysinger, Chromium-dev, forbiddenera
Will do! thanks

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

forbiddenera

unread,
May 24, 2021, 7:44:37 PM5/24/21
to Chromium-dev, forbiddenera, Kevin Marshall, Mike Frysinger, Chromium-dev
Not sure how to grab my build args (assuming thats what you meant by args.gn?) as I didn't build this particular package, it's in the repo for the distro I'm using - though I've been seriously considering compiling my own, this seems to happen elsewhere - in fact, also happens in Win64 for me.

forbiddenera

unread,
May 24, 2021, 9:29:48 PM5/24/21
to Chromium-dev, forbiddenera, Kevin Marshall, Mike Frysinger, Chromium-dev

video by the way. also posted to bugs.
Reply all
Reply to author
Forward
0 new messages