Closed
Bug 1193641
Opened 9 years ago
Closed 9 years ago
(canvas?) text rendering fundamentally broken in latest Developer Edition
Categories
(Core :: Graphics: Text, defect)
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
firefox42 | --- | unaffected |
firefox43 | --- | fixed |
People
(Reporter: kael, Assigned: dvander)
Details
(Whiteboard: [gfx-noted])
Attachments
(4 files, 2 obsolete files)
39.33 KB,
image/png
|
Details | |
133.25 KB,
image/png
|
Details | |
1.43 KB,
patch
|
milan
:
review+
ritu
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
2.60 KB,
patch
|
milan
:
review+
|
Details | Diff | Splinter Review |
As of the latest Developer Edition update, text rendering (in canvas? maybe elsewhere) is completely broken. PDFs in pdf.js have no text, and the same is true for the github network view.
Text in the Firefox UI also looks different (tabs, address bar, etc). Thinner strokes. Looks like the rendering mode changed or something?
Normal DOM text in pages seems to render fine and look the same as it did before the update.
-----------------------
Application Basics
------------------
Name: Firefox
Version: 41.0a2
Build ID: 20150810004008
Update Channel: aurora
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:41.0) Gecko/20100101 Firefox/41.0
Multiprocess Windows: 0/2 (default: false)
Crash Reports for the Last 3 Days
---------------------------------
All Crash Reports
Extensions
----------
Name: Rikaichan
Version: 2.09.1-signed
Enabled: true
ID: {0AA9101C-D3C1-4129-A9B7-D778C6A17F82}
Name: Rikaichan Japanese-English Dictionary File
Version: 2.01.130701.1-signed
Enabled: true
ID: rikaichan-jpen@polarcloud.com
Name: uBlock Origin
Version: 1.0.0.1
Enabled: true
ID: uBlock0@raymondhill.net
Name: User Style Manager
Version: 1.1.1.1-signed
Enabled: true
ID: UserStyleManager@girishsharma
Graphics
--------
Adapter Description: NVIDIA GeForce GTX 970
Adapter Drivers: nvd3dumx,nvwgf2umx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um,nvwgf2um
Adapter RAM: 4095
Asynchronous Pan/Zoom: none
Device ID: 0x13c2
Direct2D Enabled: Blocked for your graphics driver version.
DirectWrite Enabled: true (10.0.10240.16390)
Driver Date: 7-22-2015
Driver Version: 10.18.13.5362
GPU #2 Active: false
GPU Accelerated Windows: 2/2 Direct3D 11 (OMTC)
Subsys ID: 39753842
Supports Hardware H264 Decoding: true
Vendor ID: 0x10de
WebGL Renderer: Google Inc. -- ANGLE (NVIDIA GeForce GTX 970 Direct3D11 vs_5_0 ps_5_0)
windowLayerManagerRemote: true
AzureCanvasBackend: skia
AzureContentBackend: cairo
AzureFallbackCanvasBackend: cairo
AzureSkiaAccelerated: 0
Important Modified Preferences
------------------------------
accessibility.typeaheadfind.flashBar: 0
browser.cache.disk.capacity: 358400
browser.cache.disk.filesystem_reported: 1
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.smart_size.use_old_max: false
browser.cache.frecency_experiment: 4
browser.download.importedFromSqlite: true
browser.download.manager.alertOnEXEOpen: false
browser.fixup.domainwhitelist.firehomie: true
browser.fixup.domainwhitelist.rv325: true
browser.places.smartBookmarksVersion: 7
browser.sessionstore.upgradeBackup.latestBuildID: 20150810004008
browser.startup.homepage_override.buildID: 20150810004008
browser.startup.homepage_override.mstone: 41.0a2
browser.tabs.warnOnClose: false
browser.tabs.warnOnOpen: false
dom.apps.reset-permissions: true
dom.mozApps.used: true
extensions.lastAppVersion: 41.0a2
font.internaluseonly.changed: false
font.name.monospace.x-western: Consolas
font.name.sans-serif.x-western: Calibri
font.name.serif.x-western: Cambria
font.size.fixed.x-western: 15
font.size.variable.x-western: 18
gfx.blacklist.direct2d: 3
gfx.blacklist.layers.direct3d11: 3
gfx.direct3d.last_used_feature_level_idx: 0
gfx.driver-init.appVersion: 41.0a2
gfx.driver-init.deviceID: 0x13c2
gfx.driver-init.driverVersion: 10.18.13.5362
gfx.driver-init.feature-d2d: true
gfx.driver-init.feature-d3d11: true
gfx.driver-init.status: 2
gfx.font_rendering.cleartype_params.cleartype_level: 40
gfx.font_rendering.cleartype_params.force_gdi_classic_for_families:
gfx.font_rendering.cleartype.always_use_for_content: true
gfx.font_rendering.directwrite.enabled: true
media.gmp-gmpopenh264.lastUpdate: 1430793755
media.gmp-gmpopenh264.version: 1.4
media.gmp-manager.buildID: 20150810004008
media.gmp-manager.lastCheck: 1439347809
media.hardware-video-decoding.failed: false
network.cookie.prefsMigrated: true
network.predictor.cleaned-up: true
network.prefetch-next: false
places.database.lastMaintenance: 1439126586
places.history.expiration.transient_current_max_pages: 104858
plugin.disable_full_page_plugin_for_types: application/pdf
plugin.importedState: true
plugin.state.flash: 1
plugin.state.npctrl: 2
plugin.state.npgoogleupdate: 0
plugin.state.npnv3dv: 0
plugin.state.npnv3dvstreaming: 0
privacy.cpd.cookies: false
privacy.cpd.downloads: false
privacy.cpd.formdata: false
privacy.cpd.history: false
privacy.cpd.sessions: false
privacy.donottrackheader.enabled: true
privacy.sanitize.migrateFx3Prefs: true
privacy.sanitize.timeSpan: 0
privacy.trackingprotection.enabled: true
security.disable_button.openCertManager: false
storage.vacuum.last.index: 1
storage.vacuum.last.places.sqlite: 1438073345
Important Locked Preferences
----------------------------
JavaScript
----------
Incremental GC: true
Accessibility
-------------
Activated: false
Prevent Accessibility: 0
Library Versions
----------------
NSPR
Expected minimum version: 4.10.8
Version in use: 4.10.8
NSS
Expected minimum version: 3.19.2 Basic ECC
Version in use: 3.19.2 Basic ECC
NSSSMIME
Expected minimum version: 3.19.2 Basic ECC
Version in use: 3.19.2 Basic ECC
NSSSSL
Expected minimum version: 3.19.2 Basic ECC
Version in use: 3.19.2 Basic ECC
NSSUTIL
Expected minimum version: 3.19.2
Version in use: 3.19.2
Experimental Features
---------------------
Reporter | ||
Comment 1•9 years ago
|
||
gfx.font_rendering.directwrite.enabled appears to be the 'problem' pref here. I've had it set for multiple versions, but if I 'reset' it, it switches to false and text in the github network view reappears.
Unfortunately this makes text look positively atrocious compared to how it used to look. The UI chrome text still looks weird (thinner strokes).
I cannot reproduce this issue.
1) Please attach a screenshot and any relevant URLs exhibiting this problem
2) Please test Aurora with a new profile
3) Please test with the latest Nightly build from https://nightly.mozilla.org/
If the problem continues to reproduce I'll need to you work on a regression range. I'll provide further instructions after you've reported back on the above.
Status: NEW → UNCONFIRMED
Ever confirmed: false
Reporter | ||
Comment 3•9 years ago
|
||
https://github.com/sq/JSIL/network has no text. This also completely breaks pdf.js for all PDFs.
This won't reproduce with a new profile because it's caused by directwrite being enabled. I mentioned this in one of the comments already and called out the specific pref.
Reporter | ||
Comment 4•9 years ago
|
||
Whatever bug caused this doesn't reproduce in 42.0a1 (2015-08-11).
Reporter | ||
Comment 5•9 years ago
|
||
Mozregression hung while bisecting nightlies, but here's how far it got.
It was unable to find a range where the feature broke, but it found a range where it was fixed (which is why it works in nightly).
Maybe this is caused by a windows update? I know my graphics drivers haven't changed, but Win10 did install updates recently.
Reporter | ||
Comment 6•9 years ago
|
||
My money's on https://hg.mozilla.org/mozilla-central/rev/b7b4f7c13d92 .
Reporter | ||
Comment 7•9 years ago
|
||
In aurora, about:support shows 'Direct2D Enabled Blocked for your graphics driver version.' but nightly shows 'Direct2D Enabled true'.
The acceleration mode is different too:
Aurora's is 'GPU Accelerated Windows 2/2 Direct3D 11 WARP (OMTC)'
Nightly's is 'GPU Accelerated Windows 1/1 Direct3D 11 (OMTC)'
Do the driver/device blacklists update separately from builds? That would explain why I couldn't find a regression range for this breaking, only for the fix.
Reporter | ||
Comment 8•9 years ago
|
||
My video card/driver/OS configuration isn't in the list on https://wiki.mozilla.org/Blocklisting/Blocked_Graphics_Drivers , but it looks outdated. Despite the guidance on that page, setting gfx.direct2d.force-enabled and layers.acceleration.force-enabled does not actually bypass the driver blacklist.
Spoofing the device info also doesn't bypass it, it just changes the message:
'Blocked for your graphics card because of unresolved driver issues.'
I think your mozregression results are not necessarily reliable given the troubles you had. Best try to bisect this manually by installing and testing Nightly builds from archive.mozilla.org. You can match up the versions in Nightly to the dates here: https://wiki.mozilla.org/RapidRelease/Calendar
In the meantime, David, do you have any leads as to what might be happening here? I wonder if the recent blocklisting we pushed out might be giving :kael variable results.
Flags: needinfo?(dvander)
Comment 10•9 years ago
|
||
As an aside, Milan, I'm wondering if you can get a NVIDIA GeForce GTX 970 in the Toronto lab for testing to see if we can get this reproduced. It might help to narrow this down.
Flags: needinfo?(milan)
Assignee | ||
Comment 11•9 years ago
|
||
I would believe bug 1183910 fixed this. Previously, D2D (and dwrite) were initialized separately from D3D11, so if D3D11 was blocked for driver issues you could still end up using it for content rendering. bug 1183910 changed this to make D2D/DWrite dependent on having a D3D11 compositor.
:kael, do you still get this problem on the current Developer Edition, which should be Firefox 42? (there was an uplift on 8/10, I can't tell but it looks like your build was right before that.)
Milan, it looks like :kael's adapter falls under the Windows 10 blacklist for nVidia. If we're going to keep that, should we uplift a minimal change to beta to fix this?
Flags: needinfo?(dvander) → needinfo?(kg)
Reporter | ||
Comment 12•9 years ago
|
||
For some reason Developer Edition isn't offering me an update past 41.0a2 (2015-08-10). It says it's up to date. I'll try updating manually...
Flags: needinfo?(kg)
Reporter | ||
Comment 13•9 years ago
|
||
I downloaded the latest x86-64 developer edition build and installed it. It's still 41.0a2 (2015-08-10), but this (temporarily, probably?) cleared the blacklist status on my GPU so I have fully accelerated D3D11 - so everything is fast and text looks right in pdf.js and the github network view, etc.
I assume this will break again once the blacklist kicks in :-)
Updated•9 years ago
|
Assignee: nobody → dvander
Whiteboard: [gfx-noted]
(In reply to David Anderson [:dvander] from comment #11)
> I would believe bug 1183910 fixed this. Previously, D2D (and dwrite) were
> initialized separately from D3D11, so if D3D11 was blocked for driver issues
> you could still end up using it for content rendering. bug 1183910 changed
> this to make D2D/DWrite dependent on having a D3D11 compositor.
>
> :kael, do you still get this problem on the current Developer Edition, which
> should be Firefox 42? (there was an uplift on 8/10, I can't tell but it
> looks like your build was right before that.)
>
> Milan, it looks like :kael's adapter falls under the Windows 10 blacklist
> for nVidia. If we're going to keep that, should we uplift a minimal change
> to beta to fix this?
Are we talking about the change from bug 1183910? Doesn't that only help e10s, and we don't have to worry about that for the beta/release?
Flags: needinfo?(milan)
We'll grab a GeForce GT card that's on the list in bug 1189940, probably a 620, 630 or a 640.
Assignee | ||
Comment 16•9 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #14)
> (In reply to David Anderson [:dvander] from comment #11)
> > I would believe bug 1183910 fixed this. Previously, D2D (and dwrite) were
> > initialized separately from D3D11, so if D3D11 was blocked for driver issues
> > you could still end up using it for content rendering. bug 1183910 changed
> > this to make D2D/DWrite dependent on having a D3D11 compositor.
> >
> > :kael, do you still get this problem on the current Developer Edition, which
> > should be Firefox 42? (there was an uplift on 8/10, I can't tell but it
> > looks like your build was right before that.)
> >
> > Milan, it looks like :kael's adapter falls under the Windows 10 blacklist
> > for nVidia. If we're going to keep that, should we uplift a minimal change
> > to beta to fix this?
>
> Are we talking about the change from bug 1183910? Doesn't that only help
> e10s, and we don't have to worry about that for the beta/release?
That bug also stopped using DWrite when D3D11 was blocked.
(In reply to David Anderson [:dvander] from comment #16)
> ...
> >
> > Are we talking about the change from bug 1183910? Doesn't that only help
> > e10s, and we don't have to worry about that for the beta/release?
>
> That bug also stopped using DWrite when D3D11 was blocked.
I'd be interested in seeing if we can get that approved for beta. Let's put together a patch and try it, either on a new bug or here or on the original 1183910.
Flags: needinfo?(dvander)
Assignee | ||
Comment 18•9 years ago
|
||
Looking again, this was only a problem because the directwrite pref is really a "force enable" pref, not a soft enable. The gfxWindowsPlatform refactoring on aurora/nightly just removed the pref.
So if we want we can remove it on beta too, seems harmless.
Flags: needinfo?(dvander)
Attachment #8652896 -
Flags: review?(milan)
Comment on attachment 8652896 [details] [diff] [review]
remove pref
Review of attachment 8652896 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/thebes/gfxWindowsPlatform.cpp
@@ -507,5 @@
> mRenderMode = RENDER_GDI;
>
> bool isVistaOrHigher = IsVistaOrLater();
>
> - mUseDirectWrite = Preferences::GetBool("gfx.font_rendering.directwrite.enabled", false);
Is it removing, or is it replacing it with:
mUseDirectWrite = false;
Updated•9 years ago
|
Flags: needinfo?(dvander)
Assignee | ||
Comment 20•9 years ago
|
||
It's just removing the confusing pref. Normally DWrite is pinned to whether or not we're using D2D. The pref really is for force-enabling DWrite which seems unnecessary, and is not allowed anymore on Aurora/Nightly.
Though I just realized this member variable is not initialized in the gfxWindowsPlatform constructor, this patch fixes that.
Attachment #8652896 -
Attachment is obsolete: true
Attachment #8652896 -
Flags: review?(milan)
Flags: needinfo?(dvander)
Attachment #8653037 -
Flags: review?(milan)
Assignee | ||
Comment 21•9 years ago
|
||
Milan pointed out that we need to reset DWrite in UpdateRenderMode().
Attachment #8653037 -
Attachment is obsolete: true
Attachment #8653037 -
Flags: review?(milan)
Attachment #8653079 -
Flags: review?(milan)
Updated•9 years ago
|
Attachment #8653079 -
Flags: review?(milan) → review+
Assignee | ||
Comment 22•9 years ago
|
||
On nightly/aurora this pref doesn't do anything anymore, so we might as well just remove it.
Attachment #8653547 -
Flags: review?(milan)
Comment on attachment 8653547 [details] [diff] [review]
nightly patch
Review of attachment 8653547 [details] [diff] [review]:
-----------------------------------------------------------------
Removing a pref - do we need a release note for this? I don't think it was heavily used, so perhaps not, but thought I'd ask.
Attachment #8653547 -
Flags: review?(milan) → review+
Comment 24•9 years ago
|
||
Comment 25•9 years ago
|
||
Assignee | ||
Comment 26•9 years ago
|
||
(First comment from pulsebot was wrong bug number.)
(In reply to Milan Sreckovic [:milan] from comment #23)
> Removing a pref - do we need a release note for this? I don't think it was
> heavily used, so perhaps not, but thought I'd ask.
Probably not, this should be an obscure pref.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee | ||
Comment 27•9 years ago
|
||
Comment on attachment 8653079 [details] [diff] [review]
beta patch
Approval Request Comment
[Feature/regressing bug #]: None
[User impact if declined]: If the user sets this pref, they may get broken text rendering on blocked Graphics drivers.
[Describe test coverage new/current, TreeHerder]: Aurora/Nightly removed logic behind this pref already.
[Risks and why]: This patch simply hardcodes the value of the pref that we were shipping, so there is no risk. Users who did change the pref from its default value may get unsupported/buggy graphics behavior.
[String/UUID change made/needed]: None
Attachment #8653079 -
Flags: approval-mozilla-beta?
Comment 28•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
David, if this bug is only an issue with Dev Edition do we still need to uplift to Beta? Please confirm.
Flags: needinfo?(dvander)
Assignee | ||
Comment 30•9 years ago
|
||
(In reply to Ritu Kothari (:ritu) from comment #29)
> David, if this bug is only an issue with Dev Edition do we still need to
> uplift to Beta? Please confirm.
It's not specific to dev edition, sorry if that wasn't clear. This is a patch specifically for beta.
Flags: needinfo?(dvander)
David, Milan, another thing I noticed when comparing the Nightly and Beta patch is that the nightly patch removes the pref where as the Beta patch doesn't use/query the pref value? Does that mean Beta users will still see this as a pref but changing it will be a no-op. Is the Beta patch intentionally different than Nightly?
Flags: needinfo?(milan)
Flags: needinfo?(dvander)
Assignee | ||
Comment 32•9 years ago
|
||
(In reply to Ritu Kothari (:ritu) from comment #31)
> David, Milan, another thing I noticed when comparing the Nightly and Beta
> patch is that the nightly patch removes the pref where as the Beta patch
> doesn't use/query the pref value? Does that mean Beta users will still see
> this as a pref but changing it will be a no-op. Is the Beta patch
> intentionally different than Nightly?
Yes, it is intentionally different. The nightly patch is cleanup of dead code. The actual pref functionality was neutered in bug 1183910. The beta patch is just a minimal backport of that change.
Flags: needinfo?(dvander)
Updated•9 years ago
|
Flags: needinfo?(milan)
We have not removed the pref for 41 as far as I can tell. David mentioned that a very small percentage of our end-users use this pref setting so leaving the pref in for 41 should have minimal negative impact.
This pref has been removed in FF42 and onwards.
Comment on attachment 8653079 [details] [diff] [review]
beta patch
This pref has been removed in 42 on wards. For Beta41, to minimize the risk we are just removing the code to read this pref. Let's uplift to Beta41.
Attachment #8653079 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
status-firefox41:
--- → affected
Setting status42 to unaffected to get it out of my uplift queries, and since this doesn't need to land to 42.
status-firefox42:
--- → unaffected
You need to log in
before you can comment on or make changes to this bug.
Description
•