Open Bug 1589978 Opened 5 years ago Updated 1 year ago

Taking a screenshot in headless CLI hangs on Linux

Categories

(Firefox :: Headless, defect, P3)

69 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: alex, Unassigned)

References

Details

(Keywords: hang)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0

Steps to reproduce:

On Ubuntu 18.04.3 x64, in an X-Server session.

Reproduced with 69.0.2 from official Ubuntu repos, and also with 70.0b14.

Run firefox --screenshot file:///path/to/file.html to reproduce.

Actual results:

Outputs:

*** You are running in headless mode.

Firefox then hangs and the screenshot is not generated. Firefox has to be killed with ctrl + c.

Expected results:

A file named screenshot.png should have generated in the cwd.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Headless
Severity: normal → critical
Keywords: hang

The priority flag is not set for this bug.
:bdahl, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(bdahl)
Flags: needinfo?(bdahl)
Priority: -- → P3

Reproducible at Nightly 83

Is "Always ask where to save files" set at Preferences?

(In reply to guest271314 from comment #5)

Is "Always ask where to save files" set at Preferences?

No, it is not set.

Worked momentarily when removing then reinstalling firefox as .deb https://bugzilla.mozilla.org/show_bug.cgi?id=1412061#c12. Then the results resume to be consistently hanging. The error message when CTRL+C is pressed appears to be from https://searchfox.org/mozilla-central/source/ipc/glue/MessageChannel.cpp#2526, see https://bugzilla.mozilla.org/show_bug.cgi?id=1674584. I have also filed https://bugzilla.mozilla.org/show_bug.cgi?id=1674289.

See Also: → 1674289

In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.

Severity: critical → --

The severity field is not set for this bug.
:mpohle, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(mpohle)

Because there is a workaround available (the web console can be used) I can only vote for a severity of S3, but I also think that this can make the setup of custom browser automation more difficult, e.g. a bash script to compare a screenshot against a known-good one. Please vote for this bug if you think that this bug is between you and your automation attempts or comment if you have further use cases, which could justify a re-estimation. To get all voices in one place, I will also close the Bug 1674289, because it is a duplicate of this one and not yet prioritized.

Severity: -- → S2
Flags: needinfo?(mpohle)
Severity: S2 → S3
Duplicate of this bug: 1674289

Bash script automation and screenshot comparison is the exact use case that made me discover this bug. We want to use FF to generate screenshots of HTML files in a Git repo, to see if a commit introduced an unexpected rendering change.

You need to log in before you can comment on or make changes to this bug.