ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
5.69k stars 1.83k forks source link

Kernel Panic: Chromium Streaming Youtube Video on Jammy/Bullseye with kernel 5.15.40/41-flippy-73+o #319

Closed JFLim1 closed 2 years ago

JFLim1 commented 2 years ago

Hi @ophub and other users,

I have been experiencing system freeze/kernel panic when streaming Youtube on Chromium on Jammy or Bullseye with kernel 5.15.40-flippy-73+o and kernel 5.15.41-flippy-73+o.

The system freeze can be random in the sense that sometimes after 10 minutes or 20 minutes of streaming Youtube video and other times I can stream for more than 60 minutes without any system freeze/kernel panic. This happen on both Jammy with kernel 5.15.40-flippy-73+o and kernel 5.15.41-flippy-73+o. and Bullseye with kernel 5.15.40-flippy-73+o.

The last system freeze/kernel panic have happen 30 minutes ago on Jammy-5.15.41-flippy-73+o

jfl@armbian:~$ cat /etc/ophub-release
VERSION_CODEID='ubuntu'
VERSION_CODENAME='jammy'
FDTFILE='meson-g12b-gtking-pro.dtb'
UBOOT_OVERLOAD='u-boot-gtkingpro-rev-a.bin'
MAINLINE_UBOOT='/usr/lib/u-boot/'
ANDROID_UBOOT='/usr/lib/u-boot/'
SOC='s922x-reva'
PACKAGED_DATE='2022-04-30'
KERNEL_VERSION='5.15.41'
K510='0'

I am wondering any other users on kernel 5.15.y experiencing system freeze while streaming video on Chromium?

ophub commented 2 years ago

You can update the kernels of 5.10/5.15/5.17/5.4 series and choose the one that suits you better.

I recently provided the /usr/sbin/armbian-kernel file in the firmware to support compiling the kernel in armbian. You can download this file to use. The kernel's selection configuration is further adjusted and optimized.

https://github.com/ophub/amlogic-s9xxx-armbian/blob/main/build-armbian/common-files/rootfs/usr/sbin/armbian-kernel

JFLim1 commented 2 years ago

Hi @ophub,

Just a feedback and also wonder whether other users or yourself had experience this when streaming video using chromium (Bullseye) or chromium-browser (Jammy).

The advantage of using kernel 5.15.y-flippy is that I can boot on any of the USB Port on GT King Pro and it boot even when a HDD is also attached on the GT King Pro. With kernel 5.10 or 5.17 using u-boot.ext it can only boot on USB OTG Port and NO other drive attached. The downside with kernel 5.15 (without u-boot.ext) is the reported available RAM is 3.26GB instead of 3.70GB.

This system freeze/kernel panic when streaming video on Chromium is quite random but today it happen 3 times and yet right now I am streaming the same Youtube Video on Jammy-5.15.41-flippy-73+o -- now running for 1hr 22 minutes and still streaming.

Earlier it system freeze/kernel panic after 15 minutes. Not sure whether it is kernel issue or Chromium issue or just my particular Bullseye/Jammy installation issue. Since it happened 3 times today, I thought it might be a good idea to share.

Will test with kernel-5.17.7-flippy-73+ on Bullseye as I have installed this few days ago.

ophub commented 2 years ago

Post this log and some of the previous content

JFLim1 commented 2 years ago

Hi @ophub

Update on Kernel Panic when Chromium stream video Bullseye-5.15..y-flippy-73+o. Date: 2022-05-20 Test video: https://www.youtube.com/watch?v=DQuhA5ZCV9M -- Duration: 3:00:37 (hr)


Bullseye-5.15.40-flippy-73+o dtb from kernel-5.15.40-flippy-73+o
Kernel Panic 2 times
-- First time happened around 20 minutes into streaming video
-- Secon time happened around 25 minutes into streaming video

Bullseye-5.15.41-flippy-73+o  dtb from kernel-5.15.41-flippy-73+o
Kernel Panic 2 times
-- First time happened around 32 minutes into streaming video
-- Secon time happened around 60 minutes into streaming video

Bullseye-5.15.41-flippy-73+o dtb from kernel-5.17.7-flippy-73+
Kernel Panic 2 time
-- First time happened around 14 minutes into streaming video
-- Secon time happened around 46 minutes into streaming video

Also Run same video on Bullseye-5.17.7-flippy-73+o using dtb from kernel-5.17.7-flippy-73+ Chromium can stream the whole video without issue (3:00:37 hr). This just one try so it might not be conclusive.

Based on this unscientific trial/test it looks like the kernel panic is repeatable and there could be an issue/conflict between Chromium and kernel-5.15.y-flippy-73+o.


I notice this on dmesg:
kernel-5.15.y-flippy-73+o
[    0.000000] Reserved memory: created CMA memory pool at 0x00000000c8000000, size 256 MiB

kernel-5.17.7-flippy-73+
[    0.000000] Reserved memory: created CMA memory pool at 0x00000000b8400000, size 896 MiB

I used the dtb from kernel-5.17.7-flippy-73+ on kernel-5.15.41-flippy-73+o and as highlighted above still kernel panic while streaming video on Chromium.

For the record, did not experience any kernel panic/system freeze on Bullseye/Jammy using kernel-5.15.40-flippy-73+o with Chromium on Web Surfing. Kernel Panic occur only when Chromium is streaming video.

Edit: 2022-05-21 Update Bullseye-5.17.7-flippy-73+o using Chromium to stream another 3hr+ video -- No system freeze issue.

JFLim1 commented 2 years ago

Hi @ophub

Additional update: Bullseye-5.15.41-flippy-73+o Kernel Panic at 81 minutes while Chromium streaming video

Bullseye-5.15.41-flippy-73+o "sudo armbian-update 5.17.9" Bullseye-5.17.9-flippy-73+ So far no issue with Chromium streaming the same video over 170 minute.

Looks like there conflict (or cache issue?)between Chromium streaming video and kernel-5.15.y-flippy-73+o

Edit: Jammy-5.15.41-flippy-73+o Kernel Panic at 61 minutes while Chromium streaming video (Chromium Flags "--ozone-platform-hint=auto" enabled)

ophub commented 2 years ago

Ok, then you can use the 5.17 kernel for the time being. Yesterday, 5.18 was also released. Try it in a few days. In theory, the newer the kernel, the better the performance.

JFLim1 commented 2 years ago

Ok, then you can use the 5.17 kernel for the time being. Yesterday, 5.18 was also released. Try it in a few days. In theory, the newer the kernel, the better the performance.

Thanks. Await and looking forward to the new kernel-5.18.

Looking forward to kernel-5.15.y-flippy being resolved to support Chromium Streaming Video.