Closed
Bug 668344
Opened 14 years ago
Closed 13 years ago
crash _cairo_d2d_surface_init
Categories
(Core :: Graphics: Canvas2D, defect)
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)
|
2.54 KB,
patch
|
jrmuizel
:
review+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
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
Comment 3•14 years ago
|
||
This has now risen up on all versions, see https://crash-stats.mozilla.com/report/list?signature=_cairo_d2d_surface_init%28_cairo_d2d_surface*%2C%20_cairo_d2d_device*%2C%20_cairo_format%29
tracking-firefox8:
--- → ?
| Assignee | ||
Comment 4•14 years ago
|
||
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.
| Assignee | ||
Comment 5•14 years ago
|
||
(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.
| Assignee | ||
Comment 6•14 years ago
|
||
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)
Comment 7•14 years ago
|
||
(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 8•14 years ago
|
||
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?
| Assignee | ||
Comment 9•14 years ago
|
||
(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.
Comment 10•14 years ago
|
||
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.
Comment 11•14 years ago
|
||
(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.
| Assignee | ||
Comment 12•14 years ago
|
||
(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.
Comment 13•14 years ago
|
||
(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.
| Assignee | ||
Comment 14•14 years ago
|
||
(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.
Comment 15•14 years ago
|
||
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?
Comment 16•14 years ago
|
||
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
Comment 17•13 years ago
|
||
It's #17 top browser crasher in 11.0a2 and #44 in 12.0a1.
Comment 20•13 years ago
|
||
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+
| Assignee | ||
Comment 21•13 years ago
|
||
Comment 22•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
Comment 23•13 years ago
|
||
If this topcrash fix is sufficiently low-risk for Aurora/Beta consideration, please nominate. Thanks!
Comment 24•13 years ago
|
||
[Triage Comment]
What's the risk assessment for this? Is there a nomination coming for Aurora/Beta?
Comment 25•13 years ago
|
||
Crashes are gone after 12.0a1/20120117, so before the patch landed:
https://crash-stats.mozilla.com/report/list?query_search=signature&query_type=contains&reason_type=contains&date=2012-01-31&version=Firefox:12.0a1&range_value=4&range_unit=weeks&hang_type=any&process_type=any&signature=_cairo_d2d_surface_init%28_cairo_d2d_surface*%2C%20_cairo_d2d_device*%2C%20_cairo_format%29
The working window is:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=34572943a3e4&tochange=f4049f65efc6
There is a bunch of graphic bugs in it. It's hard to determine which one has fixed this bug.
status-firefox11:
--- → affected
status-firefox12:
--- → unaffected
Comment 26•13 years ago
|
||
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?
Comment 27•13 years ago
|
||
I've sent email to Bas about whether we should consider fixing for FF11.
| Assignee | ||
Comment 28•13 years ago
|
||
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)
| Assignee | ||
Comment 29•13 years ago
|
||
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?
Updated•13 years ago
|
Attachment #569701 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 30•13 years ago
|
||
[Triage Comment]
fixes #5 topcrasher, has baked enough - taking for beta
Updated•13 years ago
|
Updated•13 years ago
|
Comment 31•13 years ago
|
||
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
| Assignee | ||
Comment 32•13 years ago
|
||
I already pushed this to beta. I suspect that's why it didn't work.
Comment 33•13 years ago
|
||
(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
Comment 34•13 years ago
|
||
(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
Comment 35•13 years ago
|
||
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
Comment 36•13 years ago
|
||
For the record, another easy way to crash FF10:
1) Open http://people.mozilla.org/~jdaggett/tests/subpixelexplorer.html
2) Disable HWA
FF10 crashes.
Comment 37•13 years ago
|
||
Loic, are you saying that that crash still occurs in FF>10, or that the crash is not reproducible in more recent versions?
Comment 38•13 years ago
|
||
(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
Comment 39•13 years ago
|
||
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
Comment 40•13 years ago
|
||
(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.
Comment 41•13 years ago
|
||
(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.
You need to log in
before you can comment on or make changes to this bug.
Description
•