Closed Bug 1355047 Opened 3 years ago Closed 2 years ago

Marionette doesn't work with new headless mode

Categories

(Testing :: Marionette, enhancement)

Version 3
enhancement
Not set

Tracking

(firefox56 fixed)

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: whimboo, Assigned: bdahl)

References

Details

With bug 1338004 we got a new headless mode for Firefox. When using Marionette with this mode it fails to run. Means in the case of OS X I see that Firefox gets closed immediately after start, and Marionette hangs.

There is no helpful Gecko log which I could paste here.

To see this problem run Marionette the following way:

> MOZ_HEADLESS=1 mach marionette-test
No longer blocks: 1338004
Depends on: 1355147
I can confirm it does not work on Windows too, it crashes Firefox (tried today's Nightly), I've sent a report using Mozilla Crash Reporter.
Alexei, it would be good if you could paste the crash id (can be found under about:crashes) so we can see what it is about. If it is a problem in Firefox a new bug might be good which blocks bug 1355150. Thanks.
Depends on: 1355150
Report ID 	Date Submitted
bp-b777d22d-074b-42f9-95b4-ad5e12170417
	4/17/2017	11:40 AM
bp-f352e10d-e991-4a73-a90f-434be2170413
	4/13/2017	3:00 PM
bp-56dde8b7-6b1b-4a11-ac2a-f172c2170413
	4/13/2017	2:58 PM
Thank you Alexei. It's clearly a bug in Firefox. So I will file a new bug for that and will add you to CC.
Brendan, I assume that we can get this marked as fixed now with having support across all desktop platforms?
Flags: needinfo?(bdahl)
I can confirm it works on Windows. But there are warnings about DXGI adapter, that don't appear in "regular" mode:

1501590738221	geckodriver	INFO	geckodriver 0.18.0
1501590738234	geckodriver	INFO	Listening on 127.0.0.1:11137
1501590738895	geckodriver::marionette	INFO	Starting browser C:/Program Files/Nightly/firefox.exe with args ["-marionette"]
*** You are running in headless mode.
1501590739890	Marionette	INFO	Enabled via --marionette
[GFX1-]: Could not get a DXGI adapter
Unable to read VR Path Registry from C:\Users\alexei\AppData\Local\openvr\openvrpaths.vrpath
[Parent 3684] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
Unable to read VR Path Registry from C:\Users\alexei\AppData\Local\openvr\openvrpaths.vrpath
[Child 12268] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[GFX1-]: Could not get a DXGI adapter
[GFX1-]: Could not get a DXGI adapter
1501590741367	Marionette	INFO	Listening on port 51886
(In reply to Henrik Skupin (:whimboo) from comment #5)
> Brendan, I assume that we can get this marked as fixed now with having
> support across all desktop platforms?

Yup!

@Alexei
For DXGI adapter warning, please file a bug in Firefox::Headless component.
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(bdahl)
Resolution: --- → FIXED
Assignee: nobody → bdahl
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.