Closed Bug 1294789 Opened 4 years ago Closed 4 years ago

Assertion failure: aData[topLeft] == 0xFF in [@mozilla::gfx::VerifyRGBXCorners]

Categories

(Core :: Canvas: 2D, defect)

defect
Not set

Tracking

()

RESOLVED DUPLICATE of bug 1293759
Tracking Status
firefox51 --- affected

People

(Reporter: tsmith, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: assertion, testcase, Whiteboard: [gfx-noted])

Attachments

(2 files)

Attached file log.txt
Found with debug build.

Assertion failure: aData[topLeft] == 0xFF, at /builds/slave/m-cen-l64-asan-d-0000000000000/build/src/gfx/2d/DrawTargetSkia.cpp:188

==8644==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f32de81cb06 bp 0x7f32bd3f7b90 sp 0x7f32bd3f7b70 T33)
    #0 0x7f32de81cb05 in mozilla::gfx::VerifyRGBXCorners(unsigned char*, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits> const&, int, mozilla::gfx::SurfaceFormat) /builds/slave/m-cen-l64-asan-d-0000000000000/build/src/gfx/2d/DrawTargetSkia.cpp:170:3
    #1 0x7f32de80e06f in mozilla::gfx::GetBitmapForSurface(mozilla::gfx::SourceSurface*) /builds/slave/m-cen-l64-asan-d-0000000000000/build/src/gfx/2d/DrawTargetSkia.cpp:226:3
    #2 0x7f32de811785 in mozilla::gfx::SetPaintPattern(SkPaint&, mozilla::gfx::Pattern const&, float) /builds/slave/m-cen-l64-asan-d-0000000000000/build/src/gfx/2d/DrawTargetSkia.cpp:374:25
    #3 0x7f32de80f30a in mozilla::gfx::DrawTargetSkia::FillRect(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const&, mozilla::gfx::Pattern const&, mozilla::gfx::DrawOptions const&) /builds/slave/m-cen-l64-asan-d-0000000000000/build/src/gfx/2d/DrawTargetSkia.cpp:611:18
    #4 0x7f32deb7ca94 in mozilla::layers::FillRectWithMask(mozilla::gfx::DrawTarget*, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const&, mozilla::gfx::SourceSurface*, mozilla::gfx::SamplingFilter, mozilla::gfx::DrawOptions const&, mozilla::gfx::ExtendMode, mozilla::gfx::SourceSurface*, mozilla::gfx::Matrix const*, mozilla::gfx::Matrix const*) /builds/slave/m-cen-l64-asan-d-0000000000000/build/src/gfx/layers/basic/BasicLayersImpl.cpp:146:3
    #5 0x7f32deb63547 in mozilla::layers::DrawSurfaceWithTextureCoords(mozilla::gfx::DrawTarget*, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const&, mozilla::gfx::SourceSurface*, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const&, mozilla::gfx::SamplingFilter, mozilla::gfx::DrawOptions const&, mozilla::gfx::SourceSurface*, mozilla::gfx::Matrix const*) /builds/slave/m-cen-l64-asan-d-0000000000000/build/src/gfx/layers/basic/BasicCompositor.cpp:371:3
    #6 0x7f32deb60bc9 in mozilla::layers::BasicCompositor::DrawQuad(mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const&, mozilla::gfx::IntRectTyped<mozilla::gfx::UnknownUnits> const&, mozilla::layers::EffectChain const&, float, mozilla::gfx::Matrix4x4Typed<mozilla::gfx::UnknownUnits, mozilla::gfx::UnknownUnits> const&, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const&) /builds/slave/m-cen-l64-asan-d-0000000000000/build/src/gfx/layers/basic/BasicCompositor.cpp:562:11
...
see log.txt for full log.
Attached file test_case.html
Flags: in-testsuite?
Mason, is this your recent work?

Turning off acceleration on the mac crashes on startup for me:

Assertion failure: aData[bottomRight] == 0xFF, at /Users/msreckovic/Repos/mozilla-central/gfx/2d/DrawTargetSkia.cpp:190
#01: mozilla::gfx::VerifyRGBXCorners(unsigned char*, mozilla::gfx::IntSizeTyped<mozilla::gfx::UnknownUnits> const&, int, mozilla::gfx::SurfaceFormat)[/Users/msreckovic/Repos/mozilla-central/obj-x86_64-apple-darwin15.6.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x1b6e1d1]
#02: mozilla::gfx::GetBitmapForSurface(mozilla::gfx::SourceSurface*)[/Users/msreckovic/Repos/mozilla-central/obj-x86_64-apple-darwin15.6.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x1b6658b]
#03: mozilla::gfx::SetPaintPattern(SkPaint&, mozilla::gfx::Pattern const&, float)[/Users/msreckovic/Repos/mozilla-central/obj-x86_64-apple-darwin15.6.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x1b6a0c4]
#04: mozilla::gfx::AutoPaintSetup::AutoPaintSetup(SkCanvas*, mozilla::gfx::DrawOptions const&, mozilla::gfx::Pattern const&, mozilla::gfx::RectTyped<mozilla::gfx::UnknownUnits, float> const*)[/Users/msreckovic/Repos/mozilla-central/obj-x86_64-apple-darwin15.6.0/dist/NightlyDebug.app/Contents/MacOS/XUL +0x1b7432b]
...
Flags: needinfo?(mchang)
Whiteboard: [gfx-noted]
Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(mchang)
Resolution: --- → DUPLICATE
Duplicate of bug: 1293759
You need to log in before you can comment on or make changes to this bug.