bbc / chromium

BBC fork of the Chromium source
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

VideoDecoderTest.ResetAfterInitialize fails #14

Open EwanRoycroft opened 4 years ago

EwanRoycroft commented 4 years ago

Description

ResetAfterInitialize fails when testing the VideoDecoder pipeline with video_decode_accelerator_tests.

More information

Attribute Value
Version 84+
Build Release
Platform Ozone-GBM
Target video_decode_accelerator_tests
Device Raspberry Pi 4B (4GB)
OS Raspbian 10 "buster"
Kernel 5.4.51-v7l+

Steps to reproduce

Run video_decode_accelerator_tests for the VideoDecoder pipeline.

GN arguments

use_ozone = true
ozone_platform_x11 = false
ozone_platform_gbm = true
ozone_platform_headless = false
use_vc4_minigbm = true

ffmpeg_branding = "Chrome"
proprietary_codecs = true
use_v4l2_codec = true
use_v4l2_non_standard = false
use_v4l2_stateless_decoder = false

target_os = "chromeos"
target_cpu = "arm"
use_sysroot = true
target_sysroot = "//build/linux/raspbian_arm-sysroot"

google_api_key = "no"
google_default_client_id = "no"
google_default_client_secret = "no"

is_debug = false
is_component_build = false
enable_nacl = false
symbol_level = 0
blink_symbol_level = 0

Command

./video_decode_accelerator_tests ../../media/test/data/test-25fps.h264 --use_vd [--vmodule=../../media/*=4]

Terminal output

[1102/174547.227368:ERROR:video_player.cc(205)] Timeout while waiting for 'FlushDone' event
../../media/gpu/video_decode_accelerator_tests.cc:165: Failure
Value of: tvp->WaitForFlushDone()
  Actual: false
Expected: true
Stack trace:
#0 0x000000609ccc media::test::VideoDecoderTest_ResetAfterInitialize_Test::TestBody()

../../media/gpu/video_decode_accelerator_tests.cc:168: Failure
Expected equality of these values:
  tvp->GetFlushDoneCount()
    Which is: 0
  1u
    Which is: 1
Stack trace:
#0 0x000000609dfc media::test::VideoDecoderTest_ResetAfterInitialize_Test::TestBody()

../../media/gpu/video_decode_accelerator_tests.cc:169: Failure
Expected equality of these values:
  tvp->GetFrameDecodedCount()
    Which is: 0
  g_env->Video()->NumFrames()
    Which is: 250
Stack trace:
#0 0x000000609e96 media::test::VideoDecoderTest_ResetAfterInitialize_Test::TestBody()
EwanRoycroft commented 3 years ago

Test passes in kernel v5.9.2-v7l+.

EwanRoycroft commented 3 years ago

Test fails in Chromium 91.0.4435.0 due to kernel errors:

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.145264] Internal error: Oops: a06 [#1] SMP ARM

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.191675] Process ThreadPoolSingl (pid: 955, stack limit = 0xcc5c48e4)

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.194899] Stack: (0xc3c21c80 to 0xc3c22000)

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.198128] 1c80: c3c21cbc c3c21c90 c0b91798 c0270160 c34d0000 c341fbe0 00000000 c1205048

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.201433] 1ca0: c34803f0 bf38e2c0 c341fbd8 c341f000 c3c21ce4 c3c21cc0 bf38a008 c0b91718

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.204790] 1cc0: c34803f0 00000000 c341f000 c37eec14 bf38e2c0 c3380840 c3c21d24 c3c21ce8

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.208171] 1ce0: bf38a420 bf389fcc c0b908cc c029bc88 c3c21d14 00000000 c0b93224 c37eebcc

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.211535] 1d00: c37eec14 c37eed14 bf1c5070 c3380be0 00000001 bf1dfd08 c3c21d44 c3c21d28

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.214910] 1d20: bf1a5180 bf38a364 c37eec14 c37eec00 00000000 bf1c5070 c3c21d5c c3c21d48

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.218271] 1d40: bf1a592c bf1a5120 00000009 c37eec00 c3c21d6c c3c21d60 bf273090 bf1a58a8

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.221625] 1d60: c3c21d8c c3c21d70 bf1090b8 bf273078 bf1090e8 40045612 00000000 bf1c5070

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.224976] 1d80: c3c21d9c c3c21d90 bf109108 bf109094 c3c21db4 c3c21da0 bf1c5098 bf1090f4

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.228327] 1da0: c33808a0 40045612 c3c21e1c c3c21db8 bf1ca140 bf1c507c 00000000 c03d401c

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.231694] 1dc0: bf1dfd08 00000001 c3c21e3c bf38c8fc 00000000 c341f000 bf1cad0c 00000000

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.235075] 1de0: 40045612 40045612 00000000 c1205048 c3c21e3c 00000000 40045612 40045612

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.238473] 1e00: 00000000 b3c744ec c3c21e3c c354ace8 c3c21eec c3c21e20 bf1cabf4 bf1c9f08

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.241891] 1e20: c3c21fb0 bf1c9efc c40a5a80 00000000 00000000 00000000 00000000 00000009

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.245340] 1e40: 00000009 00000000 00004000 00000000 00000000 00000000 00000000 00000000

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.248783] 1e60: 00000000 00000000 00000000 00000000 00000000 00000000 00000004 0287e754

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.252216] 1e80: 00000001 00000000 00000000 c021a270 f605a75f 00e00000 c3c21ecc c3c21ea8

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.255658] 1ea0: ffefe000 000003f8 f605a75f 00e00000 00000000 00000000 c33c0c98 c1205048

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.259149] 1ec0: 00000cc0 bf1cb01c 00000000 c40a5a81 b3c744ec c40a5a80 00000015 c354ace8

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.262635] 1ee0: c3c21efc c3c21ef0 bf1cb03c bf1caa7c c3c21f14 c3c21f00 bf1c31f4 bf1cb028

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.266137] 1f00: 40045612 00000000 c3c21fa4 c3c21f18 c0453e38 bf1c31b4 00000800 c0b968a4

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.269710] 1f20: c3c21f74 c3c21f30 c0b968a4 c40a5a80 00000000 00000001 ffffffff 30c5383d

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.273173] 1f40: 30c5387d 00000000 c3c21f8c c120af08 00000a07 c3c21fb0 c0b96748 0287f180

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.276568] 1f60: 02880000 026b0798 c3c21fac c3c21f78 c0214f2c c1205048 02880000 b3c744ec

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.279979] 1f80: 40045612 028ba190 00000036 c0200204 c3c20000 00000036 00000000 c3c21fa8

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.283413] 1fa0: c0200040 c0453d24 b3c744ec 40045612 00000015 40045612 b3c744ec 007ce647

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.286880] 1fc0: b3c744ec 40045612 028ba190 00000036 b3c74808 34363248 b3c7476c 02882de0

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.290374] 1fe0: 00b23cac b3c74424 007ce65b b6d7b51c 20000010 00000015 00000000 00000000

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.293898] Backtrace:

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.297413] [<c0270154>] (__prepare_to_swait) from [<c0b91798>] (wait_for_completion_timeout+0x8c/0x150)

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.301020] [<c0b9170c>] (wait_for_completion_timeout) from [<bf38a008>] (bcm2835_codec_flush_buffers+0x48/0xa8 [bcm2835_codec])

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.304658]  r7:c341f000 r6:c341fbd8 r5:bf38e2c0 r4:c34803f0

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.308347] [<bf389fc0>] (bcm2835_codec_flush_buffers [bcm2835_codec]) from [<bf38a420>] (bcm2835_codec_start_streaming+0xc8/0x330 [bcm2835_codec])

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.312103]  r9:c3380840 r8:bf38e2c0 r7:c37eec14 r6:c341f000 r5:00000000 r4:c34803f0

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.315923] [<bf38a358>] (bcm2835_codec_start_streaming [bcm2835_codec]) from [<bf1a5180>] (vb2_start_streaming+0x6c/0x17c [videobuf2_common])

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.319820]  r10:bf1dfd08 r9:00000001 r8:c3380be0 r7:bf1c5070 r6:c37eed14 r5:c37eec14

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.323755]  r4:c37eebcc

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.327704] [<bf1a5114>] (vb2_start_streaming [videobuf2_common]) from [<bf1a592c>] (vb2_core_streamon+0x90/0x180 [videobuf2_common])

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.331737]  r7:bf1c5070 r6:00000000 r5:c37eec00 r4:c37eec14

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.335736] [<bf1a589c>] (vb2_core_streamon [videobuf2_common]) from [<bf273090>] (vb2_streamon+0x24/0x64 [videobuf2_v4l2])

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.339819]  r5:c37eec00 r4:00000009

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.343844] [<bf27306c>] (vb2_streamon [videobuf2_v4l2]) from [<bf1090b8>] (v4l2_m2m_streamon+0x30/0x60 [v4l2_mem2mem])

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.347965] [<bf109088>] (v4l2_m2m_streamon [v4l2_mem2mem]) from [<bf109108>] (v4l2_m2m_ioctl_streamon+0x20/0x24 [v4l2_mem2mem])

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.352149]  r7:bf1c5070 r6:00000000 r5:40045612 r4:bf1090e8

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.356407] [<bf1090e8>] (v4l2_m2m_ioctl_streamon [v4l2_mem2mem]) from [<bf1c5098>] (v4l_streamon+0x28/0x2c [videodev])

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.360751] [<bf1c5070>] (v4l_streamon [videodev]) from [<bf1ca140>] (__video_do_ioctl+0x244/0x474 [videodev])

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.364987]  r5:40045612 r4:c33808a0

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.369387] [<bf1c9efc>] (__video_do_ioctl [videodev]) from [<bf1cabf4>] (video_usercopy+0x184/0x5ac [videodev])

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.373675]  r10:c354ace8 r9:c3c21e3c r8:b3c744ec r7:00000000 r6:40045612 r5:40045612

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.377969]  r4:00000000

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.382425] [<bf1caa70>] (video_usercopy [videodev]) from [<bf1cb03c>] (video_ioctl2+0x20/0x24 [videodev])

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.386666]  r10:c354ace8 r9:00000015 r8:c40a5a80 r7:b3c744ec r6:c40a5a81 r5:00000000

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.390792]  r4:bf1cb01c

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.394939] [<bf1cb01c>] (video_ioctl2 [videodev]) from [<bf1c31f4>] (v4l2_ioctl+0x4c/0x60 [videodev])

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.398988] [<bf1c31a8>] (v4l2_ioctl [videodev]) from [<c0453e38>] (sys_ioctl+0x120/0x934)

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.402954]  r5:00000000 r4:40045612

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.406954] [<c0453d18>] (sys_ioctl) from [<c0200040>] (ret_fast_syscall+0x0/0x28)

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.410967] Exception stack(0xc3c21fa8 to 0xc3c21ff0)

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.414990] 1fa0:                   b3c744ec 40045612 00000015 40045612 b3c744ec 007ce647

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.419028] 1fc0: b3c744ec 40045612 028ba190 00000036 b3c74808 34363248 b3c7476c 02882de0

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.423083] 1fe0: 00b23cac b3c74424 007ce65b b6d7b51c

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.427131]  r10:00000036 r9:c3c20000 r8:c0200204 r7:00000036 r6:028ba190 r5:40045612

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.431219]  r4:b3c744ec

Message from syslogd@rpi4-5-10 at Mar 30 12:16:30 ...
 kernel:[   53.435264] Code: e280c004 e5803008 e581c004 e5812008 (e5823000)
2021-03-30T11:16:57.727491Z ERROR video_decode_accelerator_tests: [video_player.cc(205)] Timeout while waiting for 'Initialized' event
2021-03-30T11:16:57.727603Z FATAL video_decode_accelerator_tests: [video_decode_accelerator_tests.cc(161)] Assert failed: video_player->Initialize(video).
#0 0x000000851e96 base::debug::CollectStackTrace()
#1 0x00000081a372 base::debug::StackTrace::StackTrace()
#2 0x000000821c56 logging::LogMessage::~LogMessage()
#3 0x0000005af3a8 media::test::(anonymous namespace)::VideoDecoderTest::CreateVideoPlayer()
#4 0x0000005af804 media::test::VideoDecoderTest_ResetAfterInitialize_Test::TestBody()
#5 0x0000005c147e testing::Test::Run()
#6 0x0000005c1910 testing::TestInfo::Run()
#7 0x0000005c1dd6 testing::TestSuite::Run()
#8 0x0000005c7c84 testing::internal::UnitTestImpl::RunAllTests()
#9 0x0000005c7a0a testing::UnitTest::Run()
#10 0x0000005b2bbe main
#11 0x0000b6cc3718 __libc_start_main

Aborted