Closed
Bug 1101685
Opened 10 years ago
Closed 10 years ago
Graphics error/warning logging - the sequel
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: milan, Assigned: milan)
References
Details
Attachments
(1 file, 4 obsolete files)
We need to sort out a few things as a follow up to bug 1074952. At least the doxygen documentation, but also whether we assert with gfxCriticalError, etc.
Assignee | ||
Comment 1•10 years ago
|
||
Maybe even log to console (e.g., LogStringMessage) for the critical errors?
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → milan
Assignee | ||
Comment 2•10 years ago
|
||
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=3b2f1728766e
Attachment #8530392 -
Flags: review?(bas)
Updated•10 years ago
|
Attachment #8530392 -
Flags: review?(bas) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Motherlode! Critical errors during the test run: Linux & Windows 7, dom/canvas/test/test_bug866575.html triggers http://dxr.mozilla.org/mozilla-central/source/gfx/2d/DrawTargetCairo.cpp#1488 with "Failed to create similar cairo surface! Size: Size(306368,150) Status: 32" message. Linux & OS X 10.6 & Android 4.0, reftest/tests/image/test/crashtests/681190.html triggers: http://dxr.mozilla.org/mozilla-central/source/gfx/2d/Factory.cpp#818 with "CreateDataSourceSurfaceWithStride failed to initialize" OS X 10.6, mochitests/content/browser/browser/base/content/test/newtab/browser_newtab_drag_drop.js triggers: http://dxr.mozilla.org/mozilla-central/source/gfx/2d/Factory.cpp#340 with "Failed to create DrawTarget, Type: 2 Size: Size(800,0)". Windows XP & Windows 8 64-bit, reftest/tests/dom/canvas/crashtests/789933-1.html triggers: http://dxr.mozilla.org/mozilla-central/source/gfx/2d/Factory.cpp#340 with "Failed to create DrawTarget, Type: 5 Size: Size(5000,20000)" Windows XP, reftest/tests/layout/reftests/bugs/632781-verybig.html triggers: http://dxr.mozilla.org/mozilla-central/source/gfx/2d/Factory.cpp#340 with "Failed to create DrawTarget, Type: 5 Size: Size(10000,10000)". Windows 7, reftest/tests/dom/canvas/crashtests/780392-1.html triggers: http://dxr.mozilla.org/mozilla-central/source/gfx/2d/DrawTargetD2D.cpp#1364with "Failed to init Direct2D DrawTarget. Size: Size(10000,10000) Code: 0x80070057" Windows 7, layout/reftests/backgrounds/vector/wide--cover--nonpercent-width-omitted-height-viewbox.html triggers: http://dxr.mozilla.org/mozilla-central/source/gfx/2d/DrawTargetD2D.cpp#1364 with "Failed to init Direct2D DrawTarget. Size: Size(768,12288) Code: 0x80070057". Windows 8 64-bit, reftest/tests/layout/reftests/canvas/size-1.html, triggers: http://dxr.mozilla.org/mozilla-central/source/gfx/2d/Factory.cpp#340 with "Failed to create DrawTarget, Type: 7 Size: Size(100,30000)".
Comment 4•10 years ago
|
||
This patch does the same thing but makes it possible for a gfxCriticalError to not assert with a syntax like: gfxCriticalError() << " OH NOES!"; // this will assert gfxCriticalError(ShouldAssert(aSize)) << " OH NOES! " << aSize; // this will assert only if ShouldAssert(aSize) returns true. It doesn't fix all of the test failures but should fix some of them.
Assignee | ||
Comment 5•10 years ago
|
||
I'll take a look. Not sure about 5000, seems like 8k is a nicer number and would still fail majority of the ones above?
Assignee | ||
Comment 6•10 years ago
|
||
Bas reviewed the doc changes in Logging.h and off-line <= change at the top of CheckSurfaceSize().
Attachment #8530392 -
Attachment is obsolete: true
Attachment #8531811 -
Attachment is obsolete: true
Attachment #8535761 -
Flags: review?(nical.bugzilla)
Updated•10 years ago
|
Attachment #8535761 -
Flags: review?(nical.bugzilla) → review+
Comment 7•10 years ago
|
||
yeah 8k makes more sense.
Assignee | ||
Comment 8•10 years ago
|
||
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=5fe5cdfe989a followed by https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=6b45350cf8dd I don't think this should clash with bug 946069 in Logging.h, but I did have this one applied first if it makes a difference.
Keywords: checkin-needed
Assignee | ||
Comment 10•10 years ago
|
||
Rebase
Attachment #8535761 -
Attachment is obsolete: true
Attachment #8537315 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 11•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/8b751f12a3ad
Keywords: checkin-needed
Comment 12•10 years ago
|
||
sorry had to back this out for crashes on windows 7 debug like https://treeherder.mozilla.org/logviewer.html#?job_id=4717651&repo=mozilla-inbound
Assignee | ||
Comment 13•10 years ago
|
||
Thanks for the backout. Moving target, let's see: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=1cd965f29766
Assignee | ||
Comment 14•10 years ago
|
||
Attachment #8537315 -
Attachment is obsolete: true
Attachment #8538530 -
Flags: review+
Assignee | ||
Comment 15•10 years ago
|
||
(In reply to Carsten Book [:Tomcat] from comment #12) > sorry had to back this out for crashes on windows 7 debug like > https://treeherder.mozilla.org/logviewer.html#?job_id=4717651&repo=mozilla- > inbound Better now: https://treeherder.mozilla.org/#/jobs?repo=try&revision=828b1037113c
Keywords: checkin-needed
Comment 16•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/dcd53978a8c0
Keywords: checkin-needed
Comment 17•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/dcd53978a8c0
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in
before you can comment on or make changes to this bug.
Description
•