Closed Bug 1101685 Opened 10 years ago Closed 10 years ago

Graphics error/warning logging - the sequel

Categories

(Core :: Graphics, defect)

x86
All
defect
Not set
normal

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.
Maybe even log to console (e.g., LogStringMessage) for the critical errors?
Assignee: nobody → milan
Attachment #8530392 - Flags: review?(bas) → review+
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)".
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.
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?
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)
Attachment #8535761 - Flags: review?(nical.bugzilla) → review+
yeah 8k makes more sense.
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
Conflicts in gfx/2d/DrawTargetCairo.cpp
Keywords: checkin-needed
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
(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
https://hg.mozilla.org/mozilla-central/rev/dcd53978a8c0
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Depends on: 1153724
Depends on: 1281702
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: