Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank white screen at launch on Windows 10 #13257

Closed
aochagavia opened this issue Sep 13, 2016 · 8 comments
Closed

Blank white screen at launch on Windows 10 #13257

aochagavia opened this issue Sep 13, 2016 · 8 comments

Comments

@aochagavia
Copy link
Contributor

@aochagavia aochagavia commented Sep 13, 2016

Cause

EDIT: This is caused by #13371 (font rendering is not implemented for the MSVC toolchain on Windows)

Reproducing

Run mach.bat run -d https://www.mozilla.org/en-US/

Screenshot

Screenshot

@Coder206
Copy link
Contributor

@Coder206 Coder206 commented Sep 15, 2016

@aochagavia Another fact I noticed is that you can reproduce simply with mach.bat run -d

@gaby2300
Copy link

@gaby2300 gaby2300 commented Sep 16, 2016

I have a similar issue. I get a white blank window that includes blue related to servo links for a few seconds and then goes white again. The title is Servo, the parallel browser engine

@CAfromCA
Copy link

@CAfromCA CAfromCA commented Sep 21, 2016

Some of these may be issues rendering the servo.org home page, which I am also seeing. The page renders for a split second, then appears to go white.

If I scroll far enough, though, the "Contributing" section appears as does the rest of the page below that. I can also move my mouse around in the blank area until the pointer changes to find and click on invisible links like the download button.

@gaby2300: What happens if you use your mouse wheel or arrow keys to scroll down?

@gaby2300
Copy link

@gaby2300 gaby2300 commented Sep 21, 2016

@CAfromCA I get the same results as you. Clicking the Start Contributing button leads me to a Servo Starters site and a list of open issues. Clicking an invisible link at the top where the pointer changes to a hand lead me to a screenshot titled "browser.html - Servo". "Servo, the parallel browser" and a blue download button to for a Servo nightly build inside are part of the screenshot's content.

In all cases there was no way to go back: no tabs, no context menu.

@larsbergstrom
Copy link
Contributor

@larsbergstrom larsbergstrom commented Sep 22, 2016

The problem is that, with the MSVC toolchain, we are by default currently not able to find the fonts:

C:\Users\lars\servo>target\debug\servo.exe
Unable to find any fonts that match (do you have fallback fonts installed?) (thread FontCacheThread, at C:\Users\lars\servo\components\gfx\font_cache_thread.rs:393)
ERROR:servo: Unable to find any fonts that match (do you have fallback fonts installed?)
failed to receive response to font request: IoError(Error { repr: Custom(Custom { kind: BrokenPipe, error: StringError("MPSC channel closed") }) }) (thread LayoutWorker worker 1/3, at ../src/libcore\result.rs:799)
failed to receive response to font request: IoError(Error { repr: Custom(Custom { kind: BrokenPipe, error: StringError("MPSC channel closed") }) }) (thread LayoutWorker worker 2/3, at ../src/libcore\result.rs:799)
ERROR:servo: failed to receive response to font request: IoError(Error { repr: Custom(Custom { kind: BrokenPipe, error: StringError("MPSC channel closed") }) })
ERROR:servo: failed to receive response to font request: IoError(Error { repr: Custom(Custom { kind: BrokenPipe, error: StringError("MPSC channel closed") }) })
failed to receive response to font request: IoError(Error { repr: Custom(Custom { kind: BrokenPipe, error: StringError("MPSC channel closed") }) }) (thread LayoutWorker worker 3/3, at ../src/libcore\result.rs:799)
ERROR:servo: failed to receive response to font request: IoError(Error { repr: Custom(Custom { kind: BrokenPipe, error: StringError("MPSC channel closed") }) })
called `Result::unwrap()` on an `Err` value: "SendError(..)" (thread LayoutThread PipelineId { namespace_id: PipelineNamespaceId(0), index: PipelineIndex(0) }, at ../src/libcore\result.rs:799)
ERROR:servo: called `Result::unwrap()` on an `Err` value: "SendError(..)"
called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }" (thread ScriptThread PipelineId { namespace_id: PipelineNamespaceId(0), index: PipelineIndex(0) }, at ../src/libcore\result.rs:799)
ERROR:servo: called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"
failed to send message to font cache thread: Error { repr: Custom(Custom { kind: BrokenPipe, error: StringError("MPSC channel closed") }) } (thread LayoutWorker worker 1/3, at ../src/libcore\result.rs:799)
ERROR:servo: failed to send message to font cache thread: Error { repr: Custom(Custom { kind: BrokenPipe, error: StringError("MPSC channel closed") }) }

In order to get errors in the console, of course, after doing a build you need to do editbin /SUBSYSTEM:CONSOLE target\debug\servo.exe

cc @metajack

@aochagavia
Copy link
Contributor Author

@aochagavia aochagavia commented Sep 22, 2016

The problem is in components/gfx/platform/mod.rs

#[cfg(all(target_os = "windows", target_env = "msvc"))]
pub use platform::dummy::{font, font_context, font_list, font_template};
@CAfromCA
Copy link

@CAfromCA CAfromCA commented Sep 29, 2016

Should this be closed as a duplicate of #13371, since the lack of font rendering on Windows seems to be the underlying cause for the reports of blank Servo windows?

@mbrubeck
Copy link
Contributor

@mbrubeck mbrubeck commented Oct 4, 2016

Closing as duplicate.

@mbrubeck mbrubeck closed this Oct 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.