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 upText AA reftests failing on some linux configurations #1941
Comments
|
Could you check what FreeType version you have? |
|
2.7.1-9 |
|
I investigated this briefly today, as it's occurring on my Ubuntu 17.10 machine too. I confirmed that Freetype is 2.8.0 on my machine, and 2.6.5 on the build machines. My guess is it's related to https://www.freetype.org/freetype2/docs/subpixel-hinting.html, but I tried to disable that and it didn't seem to fix the problem. There might be something additional needed, or I may not have disabled it correctly. |
|
We've now switched off travis builds completely, meaning the TC machines are the only ones running CI tests. I propose that we update that system image to a more recent version of Freetype, possibly by just updating the distro, if that's easiest. We'd need to update the reference images, but it should be much simpler going forward (right now, I have an Ubuntu 16.04 VM that I use to generate reference images when needed). Thoughts @staktrace @kvark ? |
|
Would that be reasonably simple to do? |
|
I have no objections. It shouldn't be too hard to do either. We just need to generate a new docker image with the desired version of freetype. The steps involved would be:
I'm happy to do this since I already have docker installed and an account on docker hub where I can push images. However I need to know which version of freetype you want and where to get it. Upgrading the distro from 16.04 to a newer version is possible but carries more risk, so I'd prefer to just add an apt source or download a tarball from somewhere to install a new freetype. |
|
If you have the time to do the update, that would be great! Otherwise, I can look into it later this week. I'd suggest we update to FreeType 2.8. This looks like it has a PPA for Ubuntu with that version - http://ubuntuhandbook.org/index.php/2017/06/install-freetype-2-8-in-ubuntu-16-04-17-04/. |
|
@staktrace Did you have a chance to look into whether the PPA above is suitable for what we need? |
|
@glennw Ah sorry I missed your previous message with the versions you wanted. I'll give this a shot today or tomorrow. |
|
@glennw I made a new docker image which installs the freetype from the PPA as per the instructions you linked to. I'm not really sure how to confirm that the new freetype is actually being used, but when I run WR CI on it, there are 6 reftest failures, so I assume that's working as intended. The six reftest failures can be seen at https://tools.taskcluster.net/groups/R0_3fs2mRqWtAsDiKq6KAQ/tasks/R0_3fs2mRqWtAsDiKq6KAQ/runs/0/logs/public%2Flogs%2Flive.log
Can you take a look and make sure these differences are expected? If so I can make a patch that updates .taskcluster.yml and the six reference images. |
|
These are the exact 6 tests that fail on my local machine. I verified in the reftest analyzer that they look like the same differences I see visually. So let's update those references and land it, thanks! |
|
A new test was added today that also falls into this category - |
Switch Linux CI to a docker image with freetype2.8 Fixes #1941 r? @glennw or anybody else <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/webrender/2678) <!-- Reviewable:end -->
Reftests introduced by #1855 fail on my Fedora-26 machine:
Reftest log: wr-text-aa.zip
cc @glennw