saiarcot895 / chromium-ubuntu-build

Packaging files for building Chromium on Ubuntu
137 stars 32 forks source link

headless env ? #79

Open hugomallet opened 4 years ago

hugomallet commented 4 years ago

Hi,

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

saiarcot895 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 2 years ago

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