Closed Bug 668344 Opened 14 years ago Closed 13 years ago

crash _cairo_d2d_surface_init

Categories

(Core :: Graphics: Canvas2D, defect)

x86
Windows 7
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla13
Tracking Status
firefox8 - ---
firefox11 + verified
firefox12 --- unaffected

People

(Reporter: cjones, Assigned: bas.schouten)

Details

(Keywords: crash, topcrash, Whiteboard: [qa+])

Crash Data

Attachments

(1 file)

This bug was filed from the Socorro interface and is report bp-7503175d-6152-43a2-abce-f3a942110629 . ============================================================= I triggered the crash with the following steps (1) Load pdf.js with d2d enabled. (I loaded latest trunk, but [1] ought not to be different wrt this bug.) (2) Disable d2d in Options menu (3) Ctrl-r to reload I haven't tried to repro. [1] http://andreasgal.github.com/pdf.js/multi-page-viewer.html#1
Comments Panorama click item Submitted: 2011-07-08 00:23:41-07
We should really start forcing a reboot after switching D2D on/off. But I guess we could still end up in a situation where it is unusable after a driver uninstall or something. I wonder what we should do about it.
(In reply to Bas Schouten (:bas) from comment #4) > We should really start forcing a reboot after switching D2D on/off. But I > guess we could still end up in a situation where it is unusable after a > driver uninstall or something. I wonder what we should do about it. I meant restart, obviously.
This bug deals with the Direct2D device going AWOL for Azure surfaces. The behavior is now similar (i.e. the canvas becomes white/invisible) as without Azure.
Assignee: nobody → bas.schouten
Status: NEW → ASSIGNED
Attachment #569701 - Flags: review?(jmuizelaar)
(In reply to Bas Schouten (:bas) from comment #6) > Created attachment 569701 [details] [diff] [review] [diff] [details] [review] > Deal with Direct2D device going missing in Azure. > > This bug deals with the Direct2D device going AWOL for Azure surfaces. The > behavior is now similar (i.e. the canvas becomes white/invisible) as without > Azure. Can we test for this? i.e. Force device lost and make sure things don't blow up?
Comment on attachment 569701 [details] [diff] [review] Deal with Direct2D device going missing in Azure. I'm not really thrilled with this patch. It feels a bit like "avoid the crash" instead of prevent it. Can you sell me on it better?
(In reply to Jeff Muizelaar [:jrmuizel] from comment #7) > (In reply to Bas Schouten (:bas) from comment #6) > > Created attachment 569701 [details] [diff] [review] [diff] [details] [review] [diff] [details] [review] > > Deal with Direct2D device going missing in Azure. > > > > This bug deals with the Direct2D device going AWOL for Azure surfaces. The > > behavior is now similar (i.e. the canvas becomes white/invisible) as without > > Azure. > > Can we test for this? i.e. Force device lost and make sure things don't blow > up? I don't think we can but I'm open to suggestions, the Firefox process can't do it anyway, you'd need something privileged. If the Firefox process did it (for example by a shader that hangs the GPU) it would be recovered and get D3D10/D2D again. Also a nasty situation, but different from this one where we switch back to basic layers.
This can ride the trains for now, isn't release specific and there's no way this patch (even if it is the correct one) will make it in Firefox 8. Ask for approval if warranted when you have a patch.
(In reply to [:Cww] from comment #10) > This can ride the trains for now, isn't release specific and there's no way > this patch (even if it is the correct one) will make it in Firefox 8. Unfortunately this crash is still rising on 8, it's topcrash #30 on 8.0b4 in the last 3 days.
(In reply to Robert Kaiser (:kairo@mozilla.com) from comment #11) > (In reply to [:Cww] from comment #10) > > This can ride the trains for now, isn't release specific and there's no way > > this patch (even if it is the correct one) will make it in Firefox 8. > > Unfortunately this crash is still rising on 8, it's topcrash #30 on 8.0b4 in > the last 3 days. I wonder what's happening that trigger's this rise. It shouldn't be too common for people to be using Canvas and then switching off hardware acceleration while using it. Unless there's a lot of people doing performance comparisons or something.
(In reply to Bas Schouten (:bas) from comment #12) > I wonder what's happening that trigger's this rise. The comments in the page linked in comment #3 suggest that it happens for some of those people when a graphics driver is updating, others seem to not know a reason, just changing tabs or stuff like that, others mention that they disabled graphics acceleration.
(In reply to Robert Kaiser (:kairo@mozilla.com) from comment #13) > (In reply to Bas Schouten (:bas) from comment #12) > > I wonder what's happening that trigger's this rise. > > The comments in the page linked in comment #3 suggest that it happens for > some of those people when a graphics driver is updating, others seem to not > know a reason, just changing tabs or stuff like that, others mention that > they disabled graphics acceleration. Yeah, a driver update would certainly do it. I'm not sure why the frequency of those would increase though! Jeff, could you reply to my comments here? :) Or r+ of course.
Severity: normal → critical
Keywords: crash
This has been spiking in yesterday's trunk data, is the patch here something to go forward with? Or is the spike related to bug 704143?
I am going to add the top crash keyword since it seems to have spiked up. If it goes down, we can remove it.
Keywords: topcrash
It's #17 top browser crasher in 11.0a2 and #44 in 12.0a1.
It's #5 top crasher in 11.0b1.
Top crasher in FF11, rising since FF8, tracking.
Comment on attachment 569701 [details] [diff] [review] Deal with Direct2D device going missing in Azure. ok... Crashes are bad.
Attachment #569701 - Flags: review?(jmuizelaar) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
If this topcrash fix is sufficiently low-risk for Aurora/Beta consideration, please nominate. Thanks!
[Triage Comment] What's the risk assessment for this? Is there a nomination coming for Aurora/Beta?
So if we don't know what fixed this then we can't really do anything on aurora and beta. I guess we let it ride the trains? Should we untrack it?
I've sent email to Bas about whether we should consider fixing for FF11.
Jeff, a lot of those graphics patches are yours, any idea which might've accidentally adressed this issue if Scoobidiver is correct? Possibly that we're now getting the old, stored ThebesSurface and no longer trying to create one? (i.e. it's not actually giving a working surface, just not creating a broken one)
Comment on attachment 569701 [details] [diff] [review] Deal with Direct2D device going missing in Azure. [Approval Request Comment] Regression caused by (bug #651858): - Since turning on D2D Azure. User impact if declined: - Crash. Testing completed (on m-c, etc.): - Standard nightly & Aurora coverage, no reported issues. Risk to taking this patch (and alternatives if risky): - Drawing artifacts as opposed to crash. - Not 100% sure it resolves the crash, as the crash was resolved by riskier patches. Highly likely though. String changes made by this patch: - None
Attachment #569701 - Flags: approval-mozilla-beta?
Attachment #569701 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
[Triage Comment] fixes #5 topcrasher, has baked enough - taking for beta
Trying to help cleanup the landing-queue for approvals, got rejects: Justin@ORION /d/sources/mozilla-beta $ hg qpush applying bug668344 patching file content/canvas/src/nsCanvasRenderingContext2DAzure.cpp Hunk #1 FAILED at 3075 1 out of 1 hunks FAILED -- saving rejects to file content/canvas/src/nsCanvasRenderingContext2DAzure .cpp.rej patching file gfx/layers/basic/BasicLayers.cpp Hunk #1 FAILED at 1183 1 out of 1 hunks FAILED -- saving rejects to file gfx/layers/basic/BasicLayers.cpp.rej patching file gfx/thebes/gfxWindowsPlatform.cpp Hunk #1 FAILED at 491 1 out of 1 hunks FAILED -- saving rejects to file gfx/thebes/gfxWindowsPlatform.cpp.rej patch failed, unable to continue (try -v) patch failed, rejects left in working dir errors during apply, please fix and refresh bug668344
I already pushed this to beta. I suspect that's why it didn't work.
(In reply to Bas Schouten (:bas) from comment #32) > I already pushed this to beta. I suspect that's why it didn't work. status-11:fixed (though would be good to have the cset added to this bug for bookkeeping
(In reply to Justin Wood (:Callek) from comment #33) > status-11:fixed (though would be good to have the cset added to this bug for > bookkeeping http://hg.mozilla.org/releases/mozilla-beta/rev/64c6bafaebf6
Whiteboard: [qa+]
Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20100101 Firefox/11.0 Verified with following steps on Windows 7: 1. Install pdf.js in Firefox 11 Beta 6 2. Load http://andreasgal.github.com/pdf.js/web/viewer.html 3. Disable hardware acceleration. 4. Re-load the webpage. No crash with 11Beta6. Could previously reproduce on Firefox 8. There are also no reports for 11beta in Socorro for this crash signature. http://bit.ly/y9msWv
For the record, another easy way to crash FF10: 1) Open http://people.mozilla.org/~jdaggett/tests/subpixelexplorer.html 2) Disable HWA FF10 crashes.
Loic, are you saying that that crash still occurs in FF>10, or that the crash is not reproducible in more recent versions?
(In reply to Josh Matthews [:jdm] from comment #37) > Loic, are you saying that that crash still occurs in FF>10, or that the > crash is not reproducible in more recent versions? 1) Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120313 Firefox/13.0a1 Result: no crash 2) Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0a2) Gecko/20120313 Firefox/12.0a2 Result: crash after disabling HWA and clicking on "redraw" button CR: https://crash-stats.mozilla.com/report/index/bp-4a0257a7-ef05-405f-8968-db02e2120313
I have just updated to FF11: 3) Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0 Result: no crash
(In reply to Loic from comment #38) > 2) Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0a2) Gecko/20120313 > Firefox/12.0a2 > Result: crash after disabling HWA and clicking on "redraw" button > CR: > https://crash-stats.mozilla.com/report/index/bp-4a0257a7-ef05-405f-8968- > db02e2120313 This has a different signature than this bug - can you file a new bug? Thanks.
Blocks: 737279
(In reply to Alex Keybl [:akeybl] from comment #40) > This has a different signature than this bug - can you file a new bug? > Thanks. Done. See bug 737279.
No longer blocks: 737279
Depends on: 744043
No longer depends on: 744043
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: