servo: Cannot open servo.org on windows

/c/g/servo ❯❯❯ ./mach run --dev  
Servo exited with return value -1073741795
[1]    32688 illegal hardware instruction  ./mach run --dev

On latest TOT of master / Windows 10 / VS2017, tried with 2 different machines.

Interestingly, other pages like google.com or mozilla.org opens fine, but immediately crash on servo.org.

About this issue

  • Original URL
  • State: open
  • Created 8 years ago
  • Comments: 31 (31 by maintainers)

Most upvoted comments

Fyi for minimal reproducible code:

extern crate dwrote;
use dwrote::{FontCollection};

fn main() {
    let system_fc = FontCollection::system();

    if let Some(family) = system_fc.get_font_family_by_name("Microsoft YaHei") {
        let count = family.get_font_count();
        println!("fount count: {}", count);

        for i in 0..count {
            let font = family.get_font(i);
            {
                let descriptor = font.to_descriptor();

                let font = FontCollection::system().get_font_from_descriptor(&descriptor).unwrap();
                println!("reading [{}] {}: {}", i, font.family_name(), font.face_name());

                let style = font.style();
                let weight = font.weight();
                let stretch = font.stretch();
                if font.face_name().starts_with("Light") {
                    println!("\t read style: {:?}, stretch: {:?}", style, stretch);
                    //println!("{:?}", weight); //This will blow up
                } else {
                    println!("\t read style: {:?}, weight: {:?}, stretch: {:?}", style, weight, stretch);
                }

            }
        }
    }
}

reading weight for Yahei Light* will blow up exception, came to think this is somewhat upstream related in dwrote.

I finally got in front of a windows machine where I could replicate this. So that’s progress, even if I still don’t understand what’s going on!