chromium-ubuntu-build icon indicating copy to clipboard operation
chromium-ubuntu-build copied to clipboard

headless env ?

Open hugomallet opened this issue 4 years ago • 4 comments

Hi,

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

hugomallet avatar Apr 08 '20 13:04 hugomallet

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.

saiarcot895 avatar Apr 08 '20 14:04 saiarcot895

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 ?

hugomallet avatar Apr 08 '20 15:04 hugomallet

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?

saiarcot895 avatar Apr 09 '20 16:04 saiarcot895

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

Harleyzheng avatar Dec 12 '21 11:12 Harleyzheng