radxa / debos-radxa

This repo is deprecated, please use https://github.com/radxa-repo/rbuild instead
https://github.com/radxa-repo/rbuild
131 stars 46 forks source link

Chromium segfaults when playing youtube videos, this disables high resoluition (>720p) videos #63

Open redfast00 opened 1 year ago

redfast00 commented 1 year ago

Our company is evaluating the Rock 5B. We're currently trying to get hardware accelerated video working. When playing a youtube video (https://www.youtube.com/watch?v=LXb3EKWsInQ), the tab remains white and shows the following crash. Subsequent video's don't offer more than 720p in the interface. This is with chromium-x11 (Chromium 91.0.4472.164 stable) on rock-5b-debian-bullseye-xfce4-arm64-20221031-1558-gpt.img.

Is there a linux distro for the Rock 5B that has hardware acceleration for video working? I've seen https://github.com/radxa/meta-rockchip/tree/kirkstone-radxa/dynamic-layers/recipes-browser/chromium, which even has a newer version of chromium available, but haven't found a build that has this newer chromium.

Note that this does work (albeit also with an older version of chromium) on the Mekotronics R58X, which is also based on the RK3588 chipset, so it should be possible.

[1665:1665:0329/123830.013519:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is egl
Failed to query video capabilities: Inappropriate ioctl for device
Failed to query video capabilities: Inappropriate ioctl for device
Failed to query video capabilities: Inappropriate ioctl for device
Failed to query video capabilities: Inappropriate ioctl for device
[1637:1733:0329/123830.191256:ERROR:object_proxy.cc(622)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[1637:1733:0329/123830.191824:ERROR:object_proxy.cc(622)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[1637:1733:0329/123830.192245:ERROR:object_proxy.cc(622)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
Failed to query video capabilities: Inappropriate ioctl for device
Failed to query video capabilities: Inappropriate ioctl for device
Received signal 11 SEGV_MAPERR 000000000000
#0 0x005560430500 (/usr/lib/chromium/chromium-bin+0x58c84ff)
#1 0x00556039db70 (/usr/lib/chromium/chromium-bin+0x5835b6f)
#2 0x0055604304cc (/usr/lib/chromium/chromium-bin+0x58c84cb)
#3 0x007faa6307a0 ([vdso]+0x79f)
#4 0x007fa61f4618 (/usr/lib/aarch64-linux-gnu/libc-2.31.so+0x85617)
#5 0x00555e3f9930 (/usr/lib/chromium/chromium-bin+0x389192f)
#6 0x00555e3f99e8 (/usr/lib/chromium/chromium-bin+0x38919e7)
#7 0x00555e3f9178 (/usr/lib/chromium/chromium-bin+0x3891177)
#8 0x0055603ef4e4 (/usr/lib/chromium/chromium-bin+0x58874e3)
#9 0x005560400a6c (/usr/lib/chromium/chromium-bin+0x5898a6b)
#10 0x0055604007ac (/usr/lib/chromium/chromium-bin+0x58987ab)
#11 0x0055603b4af8 (/usr/lib/chromium/chromium-bin+0x584caf7)
#12 0x005560401230 (/usr/lib/chromium/chromium-bin+0x589922f)
#13 0x0055603d6a70 (/usr/lib/chromium/chromium-bin+0x586ea6f)
#14 0x005560419128 (/usr/lib/chromium/chromium-bin+0x58b1127)
#15 0x0055604192e4 (/usr/lib/chromium/chromium-bin+0x58b12e3)
#16 0x005560440808 (/usr/lib/chromium/chromium-bin+0x58d8807)
#17 0x007faa58c648 start_thread
#18 0x007fa6241c1c (/usr/lib/aarch64-linux-gnu/libc-2.31.so+0xd2c1b)
[end of stack trace]
Calling _exit(1). Core file will not be generated.
[1637:1651:0329/123839.200383:ERROR:gpu_process_host.cc(1002)] GPU process exited unexpectedly: exit_code=256
[1789:1789:0329/123839.219610:ERROR:command_buffer_proxy_impl.cc(123)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
[1836:1836:0329/123839.239791:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is egl
Failed to query video capabilities: Inappropriate ioctl for device
Failed to query video capabilities: Inappropriate ioctl for device
Failed to query video capabilities: Inappropriate ioctl for device
Failed to query video capabilities: Inappropriate ioctl for device
Failed to query video capabilities: Inappropriate ioctl for device
Failed to query video capabilities: Inappropriate ioctl for device
Using mplane plugin for capture 
redfast00 commented 1 year ago

Maybe this could be updated in https://github.com/radxa/debos-radxa/blob/main/rootfs/recipes/21_packages_web.yaml