Closed Bug 1376812 Opened 7 years ago Closed 7 years ago

Crash during snapshot of screen with slimerjs

Categories

(Firefox :: Headless, defect)

All
Windows
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 56
Tracking Status
firefox56 --- fixed

People

(Reporter: bdahl, Assigned: bdahl)

Details

Attachments

(1 file)

Running:

var webpage = require('webpage').create();
webpage
  .open('about:mozilla')
  .then(function () {
    webpage.viewportSize = { width: 650, height: 320 };
    webpage.render('page_snapshot.png',
                   { onlyViewport: true });
    slimer.exit();
  });

Causes:

0:11.34 PROCESS_OUTPUT: Thread-5 (pid:1428) "Assertion failure: aSurface->GetFormat() != SurfaceFormat::B8G8R8X8, at c:/Users/brend/projects/gecko/gfx/2d/DrawTargetD2D1.cpp:216"
Defining the default draw target avoids the previous mix of cairo
and d2d layers, which would trigger an assertion when capturing
a page with the widget layers.
Attachment #8881801 - Flags: review?(jmuizelaar)
Attachment #8881801 - Flags: review?(jmuizelaar) → review+
Pushed by bdahl@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f1f96310ee1f
Create default headless draw target. r=jrmuizel
https://hg.mozilla.org/mozilla-central/rev/f1f96310ee1f
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: