Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

headless env ? #79

Open
hugomallet opened this issue Apr 8, 2020 · 4 comments
Open

headless env ? #79

hugomallet opened this issue Apr 8, 2020 · 4 comments

Comments

@hugomallet
Copy link

Hi,

Do you manage to enable chromium hardware acceleration in headless mode on a headless linux ?

@saiarcot895
Copy link
Owner

I haven't heard any reports of anyone testing this, and I haven't tested this, but the current implementation assumes there's an X11 server running, so I guess in a fully headless mode, hardware video acceleration won't be possible.

@hugomallet
Copy link
Author

I get the following error :

> chromium-browser --headless --ignore-gpu-blacklist --screenshot about://gpu
[0408/135018.062819:ERROR:vaapi_wrapper.cc(469)] Could not get a valid VA display
[0408/135018.073614:WARNING:ipc_message_attachment_set.cc(49)] MessageAttachmentSet destroyed with unconsumed attachments: 0/1
[0408/135018.073628:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.

Also, as an extra issue :) , the screenshot of the page about://gpu is always a white screen in headless mode. Do you know any other solution to print the hardware acceleration information on a headless environment ?

@saiarcot895
Copy link
Owner

So the hardware acceleration enabled in this PPA is for playing videos, which implies there's a display the video is playing to. If there's no display, then there's no need for hardware acceleration, since it's not being played. Is this correct?

@Harleyzheng
Copy link

hi,@hugomallet i've had the same issue. has this issue been resolved by you? if so, how?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants