Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRed screen on launch #26356
Red screen on launch #26356
Comments
|
Could this line where we set Line 435 in 343f249 |
|
Nope. I tried changing it to |
|
@jdm Do you think this is an issue with Servo or with WebRender? |
|
I'm pretty sure it's an issue with Servo. |
|
Okay, thanks. I've been looking through the code in this repo and in surfman's, but I'm having trouble finding where surfaces are created. Could you point me to the spot(s) in Servo where they're created? Thanks! |
|
https://github.com/servo/servo/blob/master/components/webrender_surfman/lib.rs#L56 is called from servo/ports/glutin/headed_window.rs Lines 147 to 158 in 343f249 |
|
Cool, thanks! |
|
Maybe related to #26353. |
|
Although it seems in that one that nothing ever rendered, whereas this issue is that on startup there's a red screen and then the page is rendered. |
|
Tried adding the code from to Line 374 in d08c4ff at @asajeffrey's recommendation, but still the red screen. EDIT: GitHub doesn't seem to render two snippets in the same comment, so here's the first snippet copied-and-pasted: gl.clear_color(0.6, 0.6, 0.6, 1.0);
gl.clear(gl::COLOR_BUFFER_BIT);
gl.finish(); |
|
@jdm is this an issue only on macOS or on Linux/Windows too? |
|
I do not see this issue using Windows 10. |
|
Huh, interesting. Thanks for the info! @asajeffrey Perhaps this is an issue with surfman's platform-specific APIs then? |
|
I just tried a prebuilt Servo binary on my Ubuntu VM and it worked fine without the red screen. |
|
Likely an issue with the platform specific background code, e.g. surfman, winit. Needs more experimentation. |
|
I tried running the I'm guessing the red screen is either caused by winit or the way servo calls winit or surfman. |
For every site, when I load it, a red screen is shown for several seconds. (Same with local test HTML files.)
Here's what it looks like:
@jdm thinks this is because of #25853 and at some point the OpenGL surface is cleared to red.